diff --git a/function/ui_compare_rh/uicompare/build-profile.json5 b/function/ui_compare_rh/uicompare/build-profile.json5 index 25255c09b22c8ee5c92dd996d086837b3ccb6982..921a8d34c5a32afc0f12e56042ad547544541932 100644 --- a/function/ui_compare_rh/uicompare/build-profile.json5 +++ b/function/ui_compare_rh/uicompare/build-profile.json5 @@ -1,29 +1,26 @@ { - "app": { - "signingConfigs": [ - ], - "products": [ + app: { + signingConfigs: [], + products: [ { - "name": "default", - "signingConfig": "default", - "compileSdkVersion": 12, - "compatibleSdkVersion": 12, - "runtimeOS": "OpenHarmony" - } - ] + name: "default", + signingConfig: "default", + compileSdkVersion: 12, + compatibleSdkVersion: 12, + runtimeOS: "OpenHarmony", + }, + ], }, - "modules": [ + modules: [ { - "name": "entry", - "srcPath": "./entry", - "targets": [ + name: "entry", + srcPath: "./entry", + targets: [ { - "name": "default", - "applyToProducts": [ - "default" - ] - } - ] - } - ] -} \ No newline at end of file + name: "default", + applyToProducts: ["default"], + }, + ], + }, + ], +} diff --git a/function/ui_compare_rh/uicompare/entry/build-profile.json5 b/function/ui_compare_rh/uicompare/entry/build-profile.json5 index f8f03407f77914b43168aeca6bb0929efd6700b4..7d7bfd39bb4be3df3569a09dc41be4c3856f3761 100644 --- a/function/ui_compare_rh/uicompare/entry/build-profile.json5 +++ b/function/ui_compare_rh/uicompare/entry/build-profile.json5 @@ -1,13 +1,13 @@ { - "apiType": 'stageMode', - "buildOption": { - }, - "targets": [ + apiType: "stageMode", + buildOption: {}, + targets: [ { - "name": "default" + name: "default", + runtimeOS: "OpenHarmony", }, { - "name": "ohosTest", - } - ] -} \ No newline at end of file + name: "ohosTest", + }, + ], +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/offIcon.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/offIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..4cc3288583304500745654f3cb33b9c52c288d9b Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/offIcon.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/onIcon.png b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/onIcon.png new file mode 100644 index 0000000000000000000000000000000000000000..f13599666fa6479839a066be980ed0a92363d403 Binary files /dev/null and b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/onIcon.png differ diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabScrollableTest/ArkUITabScrollable.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabScrollableTest/ArkUITabScrollable.test.ets deleted file mode 100644 index 11de16ebb3a3e455b798f2cddc14af0bb33dd4dc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabScrollableTest/ArkUITabScrollable.test.ets +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function ArkUITabScrollable() { - - describe('ArkUITabScrollable', () => { - - - /* -* @tc.number ArkUI_Tabs_scrollable_001 -* @tc.name ArkUI_Tabs_scrollable_001 -* @tc.desc 1 、启 动 应 用 - 2、 设置属性scrollable参数为正常值 - 3 、 重 新 设 置 正 常 值 后 重 复 步 骤 1 和2 -*/ - it('ArkUI_Tabs_scrollable_001', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_scrollable_001 start.`); - Settings.createWindow("testability/pages/ArkUITabScrollable/ArkUITabScrollable001") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - let button1 :Component = await driver.findComponent(ON.id('ArkUITabScrollable001_002')) - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_scrollable_001 finish.`); - done() - }) - - /* -* @tc.number ArkUI_Tabs_scrollable_002 -* @tc.name ArkUI_Tabs_scrollable_002 -* @tc.desc 1 、启 动 应 用 - 2、 设置属性scrollable参数为正常值 - 3 、 重 新 设 置 正 常 值 后 重 复 步 骤 1 和2 -*/ - it('ArkUI_Tabs_scrollable_002', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_scrollable_002 start.`); - Settings.createWindow("testability/pages/ArkUITabScrollable/ArkUITabScrollable002") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - let button1 :Component = await driver.findComponent(ON.id('ArkUITabScrollable002_002')) - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_scrollable_002 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsIconStyleSelectedColorTest/ArkUITabsIconStyleSelectedColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsIconStyleSelectedColorTest/ArkUITabsIconStyleSelectedColor.test.ets deleted file mode 100644 index 8c54c62e50087aef0663c201d92e3872ec5d61b6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsIconStyleSelectedColorTest/ArkUITabsIconStyleSelectedColor.test.ets +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 ArkUITabsIconStyleSelectedColor() { - - describe('ArkUITabsIconStyleSelectedColor', () => { - - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_027 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_027 - * @tc.desc selectedColor: 0xFFFFFFFFFFFFFFFF - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_027', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_027 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor027") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_027 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_029 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_029 - * @tc.desc selectedColor: null - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_029', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_029 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor029") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_029 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_028 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_028 - * @tc.desc selectedColor: undefined - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_028', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_028 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor028") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_028 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_024 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_024 - * @tc.desc selectedColor: "rgba(255,100,255,0.5)" - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_024', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_024 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor024") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_024 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_026 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_026 - * @tc.desc selectedColor:$r("sys.color.toast_outer_border_color") - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_026', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_026 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor026") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_026 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_025 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_025 - * @tc.desc selectedColor: $r("sys.color.titlebar_title_tertiary_color") - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_025', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_025 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor025") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_025 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_014 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_014 - * @tc.desc selectedColor: 0x808080 - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_014', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_014 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor014") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_014 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_013 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_013 - * @tc.desc selectedColor: 0xa52a2a - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_013', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_013 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor013") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_013 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_001 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_001 - * @tc.desc selectedColor: Color.Black - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_001', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_001 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor001") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_001 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_004 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_004 - * @tc.desc selectedColor: Color.Gray - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_004', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_004 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor004") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_004 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_008 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_008 - * @tc.desc selectedColor: Color.Red - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_008', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_008 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor008") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_008 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_022 - * @tc.name ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_022 - * @tc.desc selectedColor: “#ff000000" - */ - it('ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_022', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_022 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor022") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_SELECTEDCOLOR_022$ finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsIconStyleUnselectedColorTest/ArkUITabsIconStyleUnselectedColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsIconStyleUnselectedColorTest/ArkUITabsIconStyleUnselectedColor.test.ets deleted file mode 100644 index 5df21352c8310e8a539de155a98c44ffa69edaa4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsIconStyleUnselectedColorTest/ArkUITabsIconStyleUnselectedColor.test.ets +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 ArkUITabsIconStyleUnselectedColor() { - - describe('ArkUITabsIconStyleUnselectedColor', () => { - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_026 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_026 - * @tc.desc unselectedColor:0xFFFFFFFFFFFFFFFF - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_026', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_026 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor026") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_026 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_028 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_028 - * @tc.desc unselectedColor: null - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_028', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_028 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor028") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_028 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_027 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_027 - * @tc.desc unselectedColor: undefined - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_027', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_027 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor027") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_027 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_021 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_021 - * @tc.desc unselectedColor: "#ff000000" - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_021', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_021 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor021") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_021 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_022 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_022 - * @tc.desc unselectedColor: "rgb(255,100,255)" - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_022', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_022 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor022") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_022 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_024 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_024 - * @tc.desc unselectedColor: $r("sys.color.toast_outer_border_color") - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_024', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_024 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor024") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_024 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_014 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_014 - * @tc.desc unselectedColor: 0x008000 - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_014', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_014 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor014") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_014 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_016 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_016 - * @tc.desc unselectedColor: 0xffc0cb - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_016', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_016 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor016") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_016 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_029 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_029 - * @tc.desc unselectedColor: Color.Black - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_029', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_029 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor029") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_029 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_002 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_002 - * @tc.desc unselectedColor: Color.Brown - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_002', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_002 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor002") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_002 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_005 - * @tc.name ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_005 - * @tc.desc unselectedColor: Color.Orange - */ - it('ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_005', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_005 start.`); - Settings.createWindow("testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor005") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_ICONSTYLE_UNSELECTEDCOLOR_005 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleSelectedColorTest/ArkUITabsLabelStyleSelectedColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleSelectedColorTest/ArkUITabsLabelStyleSelectedColor.test.ets deleted file mode 100644 index 39aa137013fb9b01355f0d53bc35741995205ece..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleSelectedColorTest/ArkUITabsLabelStyleSelectedColor.test.ets +++ /dev/null @@ -1,469 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 ArkUITabsLabelStyleSelectedColor() { - - describe('ArkUITabsLabelStyleSelectedColor', () => { - - - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_027 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_027 - * @tc.desc 1、启动应用 - 2、设置属性font参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_selectedColor_027', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_027 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor027") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor027_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_027 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_029 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_029 - * @tc.desc 1、启动应用 - 2、设置属性font参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_selectedColor_029', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_029 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor029") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor029_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_029 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_013 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_013 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_selectedColor_013', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_013 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor013") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor013_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_013 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_017 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_017 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 -*/ - it('ArkUI_Tabs_LabelStyle_selectedColor_017', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_017 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor017") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor017_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_017 finish.`); - done() - }) - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_019 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_019 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 -*/ - it('ArkUI_Tabs_LabelStyle_selectedColor_019', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_019 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor019") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor019_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_019 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_001 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_001 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 -*/ - it('ArkUI_Tabs_LabelStyle_selectedColor_001', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_001 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor001") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor001_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_001 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_003 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_003 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_selectedColor_003', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_003 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor003") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor003_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_003 finish.`); - done() - }) - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_005 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_005 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_selectedColor_005', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_005 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor005") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor005_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_005 finish.`); - done() - }) - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_007 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_007 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_selectedColor_007', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_007 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor007") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor007_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_007 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_selectedColor_011 - * @tc.name ArkUI_Tabs_LabelStyle_selectedColor_011 - * @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_selectedColor_011', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_011 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor011") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor011_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_011 finish.`); - done() - }) - - /* -* @tc.number ArkUI_Tabs_LabelStyle_selectedColor_009 -* @tc.name ArkUI_Tabs_LabelStyle_selectedColor_009 -* @tc.desc 1、启动应用 - 2、设置属性selectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 -*/ - it('ArkUI_Tabs_LabelStyle_selectedColor_009', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_009 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor009") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleSelectedColor009_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_selectedColor_009 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_028 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_028 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_028', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_028 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor028") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor028_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_028 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_021 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_021 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_021', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_021 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor021") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor021_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_021 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_023 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_023 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_023', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_023 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor023") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor023_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_023 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_024 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_024 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_024', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_024 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor024") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor024_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_024 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_026 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_026 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_026', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_026 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor026") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor026_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_026 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_025 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_025 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_025', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_025 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor025") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor025_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_025 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_012 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_012 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_012', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_012 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor012") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor012_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_012 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_015 - * @tc.name ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_015 - * @tc.desc selectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_015', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_015 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor015") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleSelectedcolor015_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_SELECTEDCOLOR_015 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test.ets deleted file mode 100644 index d7dd0377579ace102aa8506ceea577bf63d48457..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test.ets +++ /dev/null @@ -1,349 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function ArkUITabsLabelStyleUnselectedColor() { - - describe('ArkUITabsLabelStyleUnselectedColor', () => { - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_026 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_026 - * @tc.desc 1、启动应用 - * 2、设置属性unbselectedColor参数为正常值 - 3、重新设置异常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_026', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_026 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor026") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor026_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_026 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_028 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_028 - * @tc.desc 1、启动应用 - * 2、设置属性unbselectedColor参数为正常值 - 3、重新设置异常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_028', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_028 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor028") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor028_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_028 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_027 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_027 - * @tc.desc 1、启动应用 - * 2、设置属性unbselectedColor参数为正常值 - 3、重新设置异常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_027', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_027 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor027") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor027_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_027 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_021 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_021 - * @tc.desc 1、启动应用 - * 2、设置属性unbselectedColor参数为正常值 - 3、重新设置异常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_021', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_021 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor021") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor021_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_021 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_022 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_022 - * @tc.desc 1、启动应用 - * 2、设置属性unbselectedColor参数为正常值 - 3、重新设置异常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_022', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_022 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor022") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor022_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_022 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_025 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_025 - * @tc.desc 1、启动应用 - * 2、设置属性unbselectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_025', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_025 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor025") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor025_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_025 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_011 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_011 - * @tc.desc 1、启动应用 - 2、设置属性unselectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_011', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_011 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor011") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor011_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_011 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_012 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_012 - * @tc.desc 1、启动应用 - 2、设置属性unselectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_012', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_012 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor012") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor012_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_012 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_017 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_017 - * @tc.desc 1、启动应用 - 2、设置属性unselectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_017', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_017 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor017") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor017_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_017 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_001 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_001 - * @tc.desc 1、启动应用 - 2、设置属性unselectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 -*/ - it('ArkUI_Tabs_LabelStyle_unselectedColor_001', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_001 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor001") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor001_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_001 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_005 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_005 - * @tc.desc 1、启动应用 - 2、设置属性unselectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_005', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_005 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor005") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor005_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_005 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_unselectedColor_008 - * @tc.name ArkUI_Tabs_LabelStyle_unselectedColor_008 - * @tc.desc 1、启动应用 - 2、设置属性unselectedColor参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_unselectedColor_008', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_005 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor008") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStyleUnselectedColor008_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_unselectedColor_008 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_UNSELECTEDCOLOR_024 - * @tc.name ARKUI_TABS_LABELSTYLE_UNSELECTEDCOLOR_024 - * @tc.desc unselectedColor: - */ - it('ARKUI_TABS_LABELSTYLE_UNSELECTEDCOLOR_024', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_UNSELECTEDCOLOR_024 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor024") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleUnselectedcolor024_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_UNSELECTEDCOLOR_024 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test.ets deleted file mode 100644 index 1279dfa79c2cf91afd023b941364d0ad5a29eda1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test.ets +++ /dev/null @@ -1,386 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function ArkUITabsLabelStylefont() { - - describe('ArkUITabsLabelStylefont', () => { - - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_005 - * @tc.name ArkUI_Tabs_LabelStyle_font_005 - * @tc.desc 1、创建tabs,设置SubTabBarStyle样式 - 2、设置镜像效果 - */ - it('ArkUI_Tabs_LabelStyle_font_005', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_005 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont005") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStylefont005_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_005 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_016 - * @tc.name ArkUI_Tabs_LabelStyle_font_016 - * @tc.desc 1、启动应用 - 2、设置属性font参数为异常值 - 3、重新设置正常值后重复步疆1和2 - */ - it('ArkUI_Tabs_LabelStyle_font_016', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_016 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont016") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStylefont016_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_016 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_015 - * @tc.name ArkUI_Tabs_LabelStyle_font_015 - * @tc.desc 1、启动应用 - 2、设置属性font参数为异常值 - 3、重新设置正常值后重复步疆1和2 - */ - it('ArkUI_Tabs_LabelStyle_font_015', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_015 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont015") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStylefont015_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_015 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_011 - * @tc.name ArkUI_Tabs_LabelStyle_font_011 - * @tc.desc 1、启动应用 - 2、设置属性font参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_font_011', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_011 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont011") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_011 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_007 - * @tc.name ArkUI_Tabs_LabelStyle_font_007 - * @tc.desc 1、启动应用 - 2、设置属性font参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_font_007', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_007 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont007") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_007 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_010 - * @tc.name ArkUI_Tabs_LabelStyle_font_010 - * @tc.desc 1、启动应用 - 2、设置属性font参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_font_010', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_010 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont010") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_010 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_008 - * @tc.name ArkUI_Tabs_LabelStyle_font_008 - * @tc.desc 1、启动应用 - 2、设置属性font参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_font_008', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_008 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont008") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_008 finish.`); - done() - }) - - /* - * @tc.number ArkUI_Tabs_LabelStyle_font_009 - * @tc.name ArkUI_Tabs_LabelStyle_font_009 - * @tc.desc 1、启动应用 - 2、设置属性font参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_LabelStyle_font_009', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_009 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont009") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_009 finish.`); - done() - }) - - /* -* @tc.number ArkUI_Tabs_LabelStyle_font_020 -* @tc.name ArkUI_Tabs_LabelStyle_font_020 -* @tc.desc 1、启动应用 - 2、设置属性font参数为异常值 - 3、重新设置正常值后重复步骤1和2 -*/ - it('ArkUI_Tabs_LabelStyle_font_020', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_020 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont020") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('ArkUITabsLabelStylefont020_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.error('TEST', `ArkUI_Tabs_LabelStyle_font_020 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_006 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_006 - * @tc.desc font: {size: -1} - */ - it('ARKUI_TABS_LABELSTYLE_FONT_006', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_006 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont006") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_006 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_019 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_019 - * @tc.desc font: undefined - */ - it('ARKUI_TABS_LABELSTYLE_FONT_019', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_019 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont019") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_019 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_001 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_001 - * @tc.desc font: {size: 20} - */ - it('ARKUI_TABS_LABELSTYLE_FONT_001', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_001 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont001") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleFont001_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_001 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_003 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_003 - * @tc.desc font: {size: 50%} - */ - it('ARKUI_TABS_LABELSTYLE_FONT_003', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_003 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont003") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleFont003_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_003 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_004 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_004 - * @tc.desc font: {size: 10} - */ - it('ARKUI_TABS_LABELSTYLE_FONT_004', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_004 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont004") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleFont004_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_004 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_018 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_018 - * @tc.desc font: {size: 10} - */ - it('ARKUI_TABS_LABELSTYLE_FONT_018', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_018 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont018") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleFont018_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_018 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_017 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_017 - * @tc.desc style:FontStyle.Normal - */ - it('ARKUI_TABS_LABELSTYLE_FONT_017', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_017 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont017") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleFont017_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_017 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_013 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_013 - * @tc.desc weight:200 - */ - it('ARKUI_TABS_LABELSTYLE_FONT_013', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_013 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont013") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleFont013_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_013 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_LABELSTYLE_FONT_012 - * @tc.name ARKUI_TABS_LABELSTYLE_FONT_012 - * @tc.desc weight: FontTeight.Bolder - */ - it('ARKUI_TABS_LABELSTYLE_FONT_012', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_012 start.`); - Settings.createWindow("testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont012") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('ArkUITabsLabelstyleFont012_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ARKUI_TABS_LABELSTYLE_FONT_012 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsSingleSelectedcolorTest/ArkUITabsSingleSelectedcolor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsSingleSelectedcolorTest/ArkUITabsSingleSelectedcolor.test.ets deleted file mode 100644 index 50df4505f457169bd9cb023f924b37aae115f956..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsSingleSelectedcolorTest/ArkUITabsSingleSelectedcolor.test.ets +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 ArkUITabsSingleSelectedcolor() { - - describe('ArkUITabsSingleSelectedcolor', () => { - /* - * @tc.number ARKUI_TABS_SINGLE_SELECTEDCOLOR_011 - * @tc.name ARKUI_TABS_SINGLE_SELECTEDCOLOR_011 - * @tc.desc selectedColor: "rgb(255,100,255)" - */ - it('ARKUI_TABS_SINGLE_SELECTEDCOLOR_011', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_011 start.`); - Settings.createWindow("testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor011") - await Utils.sleep(2000) - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_011 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_SINGLE_SELECTEDCOLOR_002 - * @tc.name ARKUI_TABS_SINGLE_SELECTEDCOLOR_002 - * @tc.desc selectedColor: Color.White - */ - it('ARKUI_TABS_SINGLE_SELECTEDCOLOR_002', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_002 start.`); - Settings.createWindow("testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor002") - await Utils.sleep(2000) - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_002 finish.`); - done() - }) - /* - * @tc.number ARKUI_TABS_SINGLE_SELECTEDCOLOR_005 - * @tc.name ARKUI_TABS_SINGLE_SELECTEDCOLOR_005 - * @tc.desc selectedColor: Color.Green - */ - it('ARKUI_TABS_SINGLE_SELECTEDCOLOR_005', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_005 start.`); - Settings.createWindow("testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor005") - await Utils.sleep(2000) - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_005 finish.`); - done() - }) /* - * @tc.number ARKUI_TABS_SINGLE_SELECTEDCOLOR_008 - * @tc.name ARKUI_TABS_SINGLE_SELECTEDCOLOR_008 - * @tc.desc selectedColor: 0xffffff - */ - it('ARKUI_TABS_SINGLE_SELECTEDCOLOR_008', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_008 start.`); - Settings.createWindow("testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor008") - await Utils.sleep(2000) - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `ARKUI_TABS_SINGLE_SELECTEDCOLOR_008 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsSingleUnselectedcolorTest/ArkUITabsSingleUnselectedcolor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsSingleUnselectedcolorTest/ArkUITabsSingleUnselectedcolor.test.ets deleted file mode 100644 index cb90a868a6f555e5f0c2f8ac4310ce9d9eb771ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsSingleUnselectedcolorTest/ArkUITabsSingleUnselectedcolor.test.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 ArkUITabsSingleUnselectedcolor() { - - describe('ArkUITabsSingleUnselectedcolor', () => { - /* - * @tc.number ARKUI_TABS_SINGLE_UNSELECTEDCOLOR_003 - * @tc.name ARKUI_TABS_SINGLE_UNSELECTEDCOLOR_003 - * @tc.desc selectedColor: Color.Transparent - */ - it('ARKUI_TABS_SINGLE_UNSELECTEDCOLOR_003', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_TABS_SINGLE_UNSELECTEDCOLOR_003 start.`); - Settings.createWindow("testability/pages/ArkUITabsSingleUnselectedcolor/ArkUITabsSingleUnselectedcolor003") - await Utils.sleep(2000) - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `ARKUI_TABS_SINGLE_UNSELECTEDCOLOR_003 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsVerticalTest/ArkUITabsVertical.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsVerticalTest/ArkUITabsVertical.test.ets deleted file mode 100644 index 60afbf12b9eabdc4f3d0fe3375a6ec0824d79360..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ArkUITabsVerticalTest/ArkUITabsVertical.test.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function ArkUITabsVertical() { - - describe('ArkUITabsVertical', () => { - - /* - * @tc.number ArkUI_Tabs_vertical_001 - * @tc.name ArkUI_Tabs_vertical_001 - * @tc.desc 1、启动应用 - 2、设置属性vertical参数为正常值 - 3、重新设置正常值后重复步骤1和2 - */ - it('ArkUI_Tabs_vertical_001', 0, async (done: Function) => { - Logger.error('TEST', `ArkUI_Tabs_vertical_001 start.`); - Settings.createWindow("testability/pages/ArkUITabsVertical/ArkUITabsVertical001") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - let button1 :Component = await driver.findComponent(ON.id('ArkUITabsVertical001_001')) - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `ArkUI_Tabs_vertical_001 finish.`); - done() - }) - - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier.test.ets deleted file mode 100644 index fb08934275a671425dda4118e6d454c7c05935b2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier.test.ets +++ /dev/null @@ -1,330 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver , On, ON } from '@ohos.UiTest' - -/* - * ComponentButtonSelectMenuItemContentModifier - * - * 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 ComponentButtonSelectMenuItemContentModifier() { - - describe('ComponentButtonSelectMenuItemContentModifier', () => { - - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0010 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0010 - * @tc.desc : Value is set to normal text. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0010 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0010") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0010_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0010_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0010 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0011 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0011 - * @tc.desc : Icon is set JPG type image. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0011 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0011") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0011_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0011_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0011 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0013 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0013 - * @tc.desc : Selected is set to number:1. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0013 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0013") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0013_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0013_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0013 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0015 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0015 - * @tc.desc : Value is set to very long text. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0015', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0015 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0015") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0015_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0015_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0015 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0016 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0016 - * @tc.desc : Does Builder take precedence over Select in property conflicts. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0016 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0016") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0016_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0016_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0016 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0017 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0017 - * @tc.desc : Verify if builder respects Select's min-width limit when optionWidth < 56vp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0017', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0017 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0017") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0017_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0017_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 500, y: 300}, {x: 500, y: 100}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0017 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0018 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0018 - * @tc.desc : Value is set to empty text. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0018', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0018 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0018") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0018_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0018_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0018 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0023 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0023 - * @tc.desc : Test scrolling with 20 SelectOption items. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0023', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0023 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0023") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0023_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0023_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0023 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0025 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0025 - * @tc.desc : Icon is set GIF type image. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0025', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0025 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0025") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0025_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0025_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0025 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0026 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0026 - * @tc.desc : Icon is set SVG type image. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0026', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0026 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0026") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0026_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0026_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0026 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0027 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0027 - * @tc.desc : builder里放置多个节点共存,验证自定义内容是否可以正常显示 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0027', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0027 start.`); - Settings.createWindow("testability/pages/ComponentButtonSelectMenuItemContentModifier/" + - "ComponentButtonSelectMenuItemContentModifier0027") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('ComponentButtonSelectMenuItemContentModifier0027_001')); - await button.click(); - await Utils.sleep(1000); - let selectBuilder: Component = await driver.findComponent(ON.id('' + - 'ComponentButtonSelectMenuItemContentModifier0027_002')); - await selectBuilder.click(); - await Utils.sleep(1000); - await driver.fling({x: 100, y: 1000}, {x: 100, y: 500}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_MENUITEMCONTENTMODIFIER_0027 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentFunctionLAdvancedComponentsPopupInterfaceTest/ComponentFunctionLAdvancedComponentsPopupInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentFunctionLAdvancedComponentsPopupInterfaceTest/ComponentFunctionLAdvancedComponentsPopupInterface.test.ets deleted file mode 100644 index 0af58cfb277aee2bfc0fc8dcfc3c40233943d15c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentFunctionLAdvancedComponentsPopupInterfaceTest/ComponentFunctionLAdvancedComponentsPopupInterface.test.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * 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 ComponentFunctionLAdvancedComponentsPopupInterface() { - - describe('ComponentFunctionLAdvancedComponentsPopupInterface', () => { - - - /* - * @tc.number ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_0178 - * @tc.name ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_0178 - * @tc.desc Verify PopupOptions for Popup with the width parameter Dimension(Percentage):100% - */ - it('ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_0178', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_0178 start.`); - Settings.createWindow("testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface0178"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("ComponentSpecialComponentsFormComponentTransparent0178")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot('ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_0178'); - await Utils.sleep(1000); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_0178 finish.`); - done(); - }) - - /* - * @tc.number ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_01780 - * @tc.name ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_01780 - * @tc.desc Verify CustomPopupOptions for Popup. width the width parameter Dimension(Percentage):100% - */ - it('ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_01780', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_01780 start.`); - Settings.createWindow("testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface01780"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("ComponentFunctionLAdvancedComponentsPopupInterface01781")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_ADVANCEDCOMPONENTS_POPUP_INTERFACE_01780 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorAITest/ComponentTextRicheditorAITests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorAITest/ComponentTextRicheditorAITests.test.ets deleted file mode 100644 index ccf64109a71855014aa23478caa9812a07ba94e9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorAITest/ComponentTextRicheditorAITests.test.ets +++ /dev/null @@ -1,864 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_RICHEDITOR_AI_0010:AI相关用例 - * - * 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 ComponentTextRicheditorAITests() { - - describe('ComponentTextRicheditorAITests', () => { - - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0010 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、点击蓝色识别信息,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0010 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0010"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0010')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorAI0010')); - await rich1.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0010.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0020 - *des:1、安装测试 demo - 2、输入混合文本,包含:邮箱、地址、电话 - 、网址这四个信息内容,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0020 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0020"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0020')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0020.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0030 - *des:"1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、点击“关闭AI分析”按钮(设置 - enableDataDetector为 false)" - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0030 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0030"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0030')); - await rich.click(); - await Utils.sleep(1000); - let open = await driver.findComponent(ON.id('open')); - await open.click(); - await Utils.sleep(1000); - let close = await driver.findComponent(ON.id('close')); - await close.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0030.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0040 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、点击“识别: 电话号码”按钮(设置 - dataDetector{ types: - [TextDataDetectorType. PHONE_NUMBER]}) - 3、点击“识别:网址”按钮(设置 - dataDetector{ types: - [TextDataDetectorType. URL]}) - 4、点击“识别:邮箱”按钮(设置 - dataDetector{ types: - [TextDataDetectorType. EMAIL]}) - 5、点击“识别: 地址”按钮(设置 - dataDetector{ types: - [TextDataDetectorType. ADDRESS]}) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0040 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0040"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0040')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let tel = await driver.findComponent(ON.id('tel')); - await tel.click(); - await Utils.sleep(1000); - let url = await driver.findComponent(ON.id('url')); - await url.click(); - await Utils.sleep(1000); - let email = await driver.findComponent(ON.id('email')); - await email.click(); - await Utils.sleep(1000); - let addr = await driver.findComponent(ON.id('addr')); - await addr.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0040.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0050 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、点击“识别: 电话号码、网址”按钮(设置 - dataDetector{ types: - [ToxtDataDetectorType. PHONE_NUNBER, - ToxtDataDetectorType. URL]}) - 3、点击“识别: 电话、网址、邮箱”按钮(设 - 置dataDetector{ types: - [TextDataDetectorType. PHONE_NUMBER, - TextDataDetectorType. URL, - TextDataDetectorType. EMAIL]}) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0050 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0050"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0050')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let url = await driver.findComponent(ON.id('url')); - await url.click(); - await Utils.sleep(1000); - let email = await driver.findComponent(ON.id('email')); - await email.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0050.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0060 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、点击“识别: 电话、网址、邮箱、地址”按钮(设置dataDetector{ types: - [TextDataDetectorType. PHONE_NUNBER, - TextDataDetectorType. URL, - TextDataDetectorType. EMAIL, - TextDataDetectorType. ADDRESS]}) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0060 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0060"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0060')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let url = await driver.findComponent(ON.id('url')); - await url.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0060.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0070 - *des:1、点击“关闭AI分析”按钮(设置 - enableDataDetector为 false). - 2、点击“识别: 电话、网址、邮箱、地址”按 - 钮(设置dataDetector{ types: - [TextDataDetectorType. PHONE_NUNBER, - TextDataDetectorType. URL, - TextDataDetectorType. EMAIL, - TextDataDetectorType. ADDRESS]}) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0070 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0070"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0070')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let url = await driver.findComponent(ON.id('url')); - await url.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0070.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0080 - *des:1、点击“识别: 电话、网址、邮箱、地址”按 - 钮(设置dataDetector{ types: - [ToxtDataDetectorType. PHONE_NUNBER, - TextDataDetectorType. URL, - TextDataDetectorType. EMAIL, - TextDataDetectorType. ADDRESS]}) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0080 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0080"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0080')); - await rich.click(); - await Utils.sleep(1000); - let url = await driver.findComponent(ON.id('url')); - await url.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0080.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0090 - *des:1、检查enableDataDetector和 - dataDetectorConfig接口文档说明 - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0090 start.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0090"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0090.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0100 - *des:1、点击“上划线”按钮(设置 decoration值为 - Overline) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0100 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0100"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0100')); - await rich.click(); - await Utils.sleep(1000); - let setStyle = await driver.findComponent(ON.id('setStyle')); - await setStyle.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0100.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0110 - *des:1、点击“上划线”按钮(设置 decoration值为 - LineThrough) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0110 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0110"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0110')); - await rich.click(); - await Utils.sleep(1000); - let setStyle = await driver.findComponent(ON.id('setStyle')); - await setStyle.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0110.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0120 - *des:1、点击“下划线”按钮(设置 decoration值为 - Underline) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0120 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0120"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0120')); - await rich.click(); - await Utils.sleep(1000); - let setStyle = await driver.findComponent(ON.id('setStyle')); - await setStyle.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0120.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0130 - *des:1、点击“字体颜色:红色”按钮(设置 - fontColor值为 Red). - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0130 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0130"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0130')); - await rich.click(); - await Utils.sleep(1000); - let setStyle = await driver.findComponent(ON.id('setStyle')); - await setStyle.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0130.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0140 - *des:1、点击“字体大小:30”按钮(设置fontSize| - 值为30) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0140 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0140"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0140')); - await rich.click(); - await Utils.sleep(1000); - let setStyle = await driver.findComponent(ON.id('setStyle')); - await setStyle.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0140.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0150 - *des:1、点击“字体样式:斜体”按钮(设置 - fontStyle值为 Italic) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0150 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0150"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0150')); - await rich.click(); - await Utils.sleep(1000); - let setStyle = await driver.findComponent(ON.id('setStyle')); - await setStyle.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0150.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0160 - *des:1、点击“字体宽度:细”按钮(设置 - fontVeight值为 Lighter) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true? - 3、点击“字体宽度: 正常”按钮(设置 - fontVeight值为 Normal) - 3、点击“字体宽度:粗”按钮(设置 - fontVeight值为 Bolder) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0160 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0160"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0160')); - await rich.click(); - await Utils.sleep(1000); - let setStyle = await driver.findComponent(ON.id('setStyle')); - await setStyle.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let setStyle1 = await driver.findComponent(ON.id('setStyle1')); - await setStyle1.click(); - await Utils.sleep(1000); - let setStyle2 = await driver.findComponent(ON.id('setStyle2')); - await setStyle2.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0160.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0170 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、输入文本 - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0170 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0170"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0170')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_9); - await Utils.sleep(100); - let close = await driver.findComponent(ON.id('close')); - await close.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0170.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0180 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、删除文本 - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0180 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0180"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0180')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - let close = await driver.findComponent(ON.id('close')); - await close.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0180.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0190 - *des:1、点击“插入 Span内容”(设置 Span内包含邮 - 箱、地址、电话、网址这四个信息内容) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0190 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0190"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0190')); - await rich.click(); - await Utils.sleep(1000); - let insert = await driver.findComponent(ON.id('insert')); - await insert.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0190.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0200 - *des:1、在邮箱、地址、电话、网址信息处点击“插 - 入图片”(设置InageSpan) - 2、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0200 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0200"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0200')); - await rich.click(); - await Utils.sleep(1000); - let insert = await driver.findComponent(ON.id('insert')); - await insert.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0200.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0210 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true? - 2、点击“减小文本框宽度”按钮(设置 vidth- - -) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0210 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0210"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0210')); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let setWidth = await driver.findComponent(ON.id('setWidth')); - await setWidth.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0210.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0220 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true? - 2、在邮箱、地址、电话、网址信息中手动换行 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0220 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0220"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0220')); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(2012); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0220.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0230 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、滑动页面 - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0230 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0230"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0230')); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let ponit = await rich.getBoundsCenter(); - await driver.mouseScroll({x:ponit.x, y:ponit.y}, false, 10, 2072,20) - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0230.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0240 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、滑动页面,使邮箱、地址、电话、网址等信 - 息在组件底部或顶部截断显示 - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0240 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0240"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0240')); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - let ponit = await rich.getBoundsCenter(); - await driver.mouseScroll({x:ponit.x, y:ponit.y}, false, 10, 2072,20) - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0240.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0250 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0250 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0250"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0250')); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0250.`); - done(); - }) - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0260 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、点击蓝色识别信息 - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0260 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0260"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0260')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - await Utils.sleep(1000); - await driver.triggerKey(2012); - await Utils.sleep(100); - await driver.triggerKey(2012); - await Utils.sleep(100); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorAI0260')); - await rich1.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0260.`); - done(); - }) - - /** - * NO.SUB_ACE_UI_RICHEDITOR_AI_0270 - *des:1、点击“开启AI分析”按钮(设置 - enableDataDetector为 true) - 2、点击“复制类型: NONE”按钮(设置 - CopyOptions为 None) - ,验证效果 - */ - it('SUB_ACE_UI_RICHEDITOR_AI_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0270 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0270"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorAI0270')); - await rich.click(); - await Utils.sleep(1000); - let AI = await driver.findComponent(ON.id('AI')); - await AI.click(); - let copy = await driver.findComponent(ON.id('copy')); - await copy.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_RICHEDITOR_AI_0270.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColors.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColors.test.ets deleted file mode 100644 index 52d51ef5aff767d6f265a10c68cc7dffa6e3376d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColors.test.ets +++ /dev/null @@ -1,891 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_CUSTOMCOLORS:Colors相关自定义 - * - * 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 ComponentTextRicheditorCustomColors() { - - describe('ComponentTextRicheditorCustomColors', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0001 - *des:1、添加RichEditor组件,不设置光标、手柄、文本选中背景颜色 - 2、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0001 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0001") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0001")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0001 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0002 - *des:1、添加RichEditor组件 - 2、设置光标、手柄颜色为 Color. Orange,文本选中背景颜色为Color. Red. - 3、输入文本、长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0002 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0002") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0002")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0002 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0003 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为0x0110ff - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0003 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0003") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0003")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0003 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0004 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为0xffffffeeeeee - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0004 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0004") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0004")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0004 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0005 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为10000 - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0005', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0005 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0005") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0005")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0005 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0006 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为10000.5 - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0006 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0006") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0006")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0006 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0007 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为-15 - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0007 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0007") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0007")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0007 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0008 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为'#00ffff' - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0008', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0008 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0008") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0008")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0008 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0009 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为'#ffffff00' - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0009', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0009 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0009") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0009")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0009 finish.`); - done(); - }) - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0010 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为' rgb(255,0,255)' - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0010 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0010") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0010")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0010 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0011 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为" rgba(0,0,255,0.5)" - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0011 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0011") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0011")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0011 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0012 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为'#0ccccoo' - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0012 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0012") - await Utils.sleep(1000) - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0012")); - await richeditor.click(); - await Utils.sleep(2000) - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0012 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0013 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为' rgba(255,0,255,2)' - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0013 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0013") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0013")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0013 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0014 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为' rgb(255,0,300)' - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0014', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0014 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0014") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0014")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0014 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0015 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为'#abcdefə' - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0015', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0015 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0015") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0015")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0015 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0016 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 - $r(' app. color. color') - 3、输入文本,长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0016 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0016") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0016")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0016 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0017 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 - $r(' app. media. startIcon') - 3、输入文本, 长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0017', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0017 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0017") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0017")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0017 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0018 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文字、图片、表情、特殊符号混合文本,长按文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0018', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0018 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0018") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0018")); - await richeditor.click(); - await Utils.sleep(2000); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0018 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0019 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、添加textSpan\symbolSpan\inageSpan\buildSpan,长按文本 - 内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0019 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0019") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0019")); - await richeditor.click(); - await Utils.sleep(2000); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0019 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0020 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文本,长按文本内容 - 4、改变字体大小,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0020 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0020") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0020")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0020finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0021 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文本, 长按文本内容 - 4、改变字体样式,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0021', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0021 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0021") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0021")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot() - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0021finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0022 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文本, 长按文本内容 - 4、改变行高和字符间距,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0022', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0022 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0022") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0022")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0022finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0023 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文本,长按文本内容 - 4、软键盘删除选中文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0023', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0020 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0023") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0023")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_DEL) - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0023finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0025 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文本,长按文本内容 - 4、切换横竖屏,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0025', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0025 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0025") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0025")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0025finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0026 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文本,鼠标点击 richeditor,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0026', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0026 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0026") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0026")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0026finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0028 - *des:1、添加RichEditor组件 - 2、设置光标、手柄、文本选中背景颜色为 Red - 3、输入文本 - 4、调用setSeleotion选中文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0028', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0028 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0028") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomColor0028")); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let select = await driver.findComponent(ON.id("set select")); - await select.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOB_CUSTOMCOLORS_0028finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnceTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnceTests.test.ets deleted file mode 100644 index b2d84b04a8397d09b63bff3a0dcb5dde53ac5934..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnceTests.test.ets +++ /dev/null @@ -1,393 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE:CustomkeyBoardAvoidAnce相关用例 - * - * 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 ComponentTextRicheditorCustomkeyBoardAvoidAnceTests() { - - describe('ComponentTextRicheditorCustomkeyBoardAvoidAnceTests', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0001 - *des:1、添加RichEditor组件位于页面底部 - 2、点击RichEditor组件, 激活自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0001 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0001") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0001")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0001.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0002 - *des:1、设置KeyboardOptions为 false - 2、添加RichEditor组件位于页面底部 - 3、点击RichEditor组件,激活自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0002 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0002") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0002")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0002.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0003 - *des:1、设置KeyboardOptions为 true,设置键盘避 - 让方式为OFFSET - 2、添加RichEditor组件,输入超长文本 - 3、分别点击文本不同位置,调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0003 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0003") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0003")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0003.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0004 - *des:1、设置KeyboardOptions为 true,设置键盘避 - 让方式为RESIZE - 2、添加RichEditor组件,输入超长文本 - 3、分别点击文本不同位置,调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0004 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0004") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0004")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0004.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0005 - *des:1、设置KeyboardOptions为 true, 设置键盘避 - 让方式为OFFSET - 2、页面添加 Row组件(固定宽高),添加 - RichEditor组件 - 3、点击RichEditor组件, 调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0005', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0005 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0005") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0005")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0005.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0006 - *des:1、设置KeyboardOptions为 true, 设置键盘避 - 让方式为OFFSET - 2、页面添加 Row组件(百分比宽高),添加 - RichEditor组件 - 2、点击RichEditor组件,调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0006 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0006") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0006")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0006.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0007 - *des:1、设置KeyboardOptions为 true, 设置键盘避 - 让方式为RESIZE - 2、页面添加 Row组件(固定宽高) ,添加 - RichEditor组件 - 3、点击RichEditor组件, 调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0007 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0007") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0007")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0007.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0008 - *des:1、设置KeyboardOptions为 true, 设置键盘避 - 让方式为RESIZE - 2、页面添加 Row组件(百分比宽高),添加 - RichEditor组件 - 3、点击RichEditor组件, 调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0008', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0008 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0008") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0008")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0008.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0009 - *des:1、添加RichEditor组件位于页面顶部 - 2、点击RichEditor组件,调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0009', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0009 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0009") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0009")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0009.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0010 - *des:1、设置KeyboardOptions为 true, 设置键盘避 - 让方式为OFFSET - 2、添加RichEditor组件, 在RichEditor上下 - 方添加 row组件 - 3、点击RichEditor组件, 调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0010 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0010") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0010")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0010.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0011 - *des:1、设置KeyboardOptions为 true, 设置键盘避 - 让方式为RESIZE - 2、添加RichEditor组件, 在RichEditor上下 - 方添加 row组件 - 3、点击RichEditor组件,调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0011 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0011") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0011")); - await richeditor.click(); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0011.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0012 - *des:1、设置KeyboardOptions为 true,设置键盘避 - 让方式为OFFSET - 2、页面添加多个RichEditor组件 - 3、分别点击不同RichEditor组件,调出自定义 - 键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0012 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0012") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0012")); - await richeditor.click(); - await Utils.sleep(1000); - let richeditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0012_01")); - await richeditor1.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0012.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0013 - *des:1、设置KeyboardOptions为 true, 设置键盘避 - 让方式为RESIZE - 2、添加RichEditor组件, 在RichEditor上下 - 方添加 row组件 - 3、点击RichEditor组件,调出自定义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0013 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0013") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0013")); - await richeditor.click(); - await Utils.sleep(1000); - let richeditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0013_01")); - await richeditor1.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0013.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0016 - *des:1、设置KeyboardOptions为 true,设置键盘避 - 让方式为OFFSET - 2、页面添加RichEditor组件 - 3、切换横屏, 点击RichEditor组件, 调出自定 - 义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0016 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0016") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0016")); - let change = await driver.findComponent(ON.id("changeScreen")); - await change.click(); - await Utils.sleep(2000); - let richeditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0016")); - await richeditor1.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0016.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0017 - *des:1、设置KeyboardOptions为 true,设置键盘避 - 让方式为RESIZE - 2、页面添加RichEditor组件 - 3、切换横屏, 点击RichEditor组件, 调出自定 - 义键盘,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0017', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0017 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0017") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0017")); - await Utils.sleep(1000); - let change = await driver.findComponent(ON.id("changeScreen")); - await change.click(); - await Utils.sleep(2000); - let richeditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0017")); - await richeditor1.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0017.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0019 - *des:1、设置KeyboardOptions为 true - 2、页面添加RichEditor组件 - 3、点击RichEditor组件,调出自定义键盘 - 4、改变自定义键盘高度,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0019 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0019") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorCustomkeyBoardAvoidAnce0019")); - await richeditor.click(); - await Utils.sleep(1000); - let change = await driver.findComponent(ON.id("changeScreen")); - await change.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_CUSTOMKEYBOARDAVOIDANCE_0019.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeatures.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeatures.test.ets deleted file mode 100644 index 43a5f58645bb47dee6b5c60aaf5e40835b81ad5d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeatures.test.ets +++ /dev/null @@ -1,943 +0,0 @@ - /* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@ohos.multimodalInput.keyCode' -import { MouseButton } from '@kit.TestKit' - -/* - * fontfeatures cases - * - * 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 ComponentTextRicheditorFontfeatures() { - - describe('ComponentTextRicheditorFontfeatures', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0001 - *des:设置fontStyle 属性为FontStyle.Normal,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0001 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0001") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0001 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0002 - *des:设置fontFeature 属性为“ sups ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0002 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0002") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0002 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0003 - *des:设置fontFeature 属性为“ sups ,0",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0003 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0003") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0003 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0004 - *des:设置fontFeature 属性为“ sups ,1",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0004 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0004") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0004 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0005 - *des:设置fontFeature 属性为“ sups ,0ff",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0005', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0005 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0005") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0005 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0006 - *des:设置fontFeature 属性为“ subs ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0006 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0006") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0006 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0007 - *des:设置fontFeature 属性为“ sinf ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0007 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0007") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0007 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0008 - *des:设置fontFeature 属性为“ numr ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0008', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0008 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0008") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0008 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0009 - *des:设置fontFeature 属性为“ dnom ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0009', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0009 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0009") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0009 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0010 - *des:设置fontFeature 属性为“ locl ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0010 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0010") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0010 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0011 - *des:设置fontFeature 属性为“ tnum ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0011 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0011") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0011 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0012 - *des:设置fontFeature 属性为“ pnum ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0012 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0012") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0012 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0013 - *des:设置fontFeature 属性为“ case ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0013 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0013") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0013 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0014 - *des:设置fontFeature 属性为“ frac ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0014', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0014 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0014") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0014 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0015 - *des:设置fontFeature 属性为“ ordn ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0015', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0015 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0015") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0015 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0016 - *des:设置fontFeature 属性为“ liga ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0016 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0016") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0016 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0017 - *des:设置fontFeature 属性为“ fwid ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0017', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0017 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0017") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0017 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0018 - *des:设置fontFeature 属性为“ hwid ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0018', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0018 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0018") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0018 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0019 - *des:设置fontFeature 属性为“ vert ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0019 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0019") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0019 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0020 - *des:设置fontFeature 属性为“ ss01 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0020 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0020") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0020 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0021 - *des:设置fontFeature 属性为“ ss02 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0021', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0021 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0021") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0021 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0022 - *des:设置fontFeature 属性为“ ss03 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0022', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0022 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0022") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0022 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0023 - *des:设置fontFeature 属性为“ ss04 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0023', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0023 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0023") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0023 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0024 - *des:设置fontFeature 属性为“ ss05 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0024', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0024 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0024") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0024 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0025 - *des:设置fontFeature 属性为“ ss06 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0025', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0025 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0025") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0025 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0026 - *des:设置fontFeature 属性为“ ss07 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0026', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0026 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0026") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0026 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0027 - *des:设置fontFeature 属性为“ ss08 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0027', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0027 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0027") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0027 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0028 - *des:设置fontFeature 属性为“ ss07 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0028', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0028 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0028") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0028 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0029 - *des:设置fontFeature 属性为“ ss09 and ss04 ,on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0029', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0029 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0029") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0029 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0030 - *des:设置fontFeature 属性为“ null",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0030 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0030") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0030 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0031 - *des:设置fontFeature 属性'\"abcdefgg&*\" on,\"ss04\" 12354hfnfn3',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0031', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0031 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0031") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0031 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0032 - *des:设置fontFeature 属性'\"ss04\" on,\"ss04\" off',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0032', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0032 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0032") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0032 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0033 - *des:输入纯文本,设置fontFeature 属性"\"ss04\" on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0033', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0033 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0033") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0033 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0034 - *des:输入纯文本+Symbol,设置fontFeature 属性"\"ss04\" on",Symbol无fontFeature属性(https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-symbolspan-V5),验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0034', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0034 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0034") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0034 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0035 - *des:输入纯文本+Image,设置fontFeature 属性"\"ss04\" on",Image无fontFeature属性(https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-imagespan-V5),验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0035', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0035 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0035") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0035 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0036 - *des:输入Emoji表情,通过updateSpanStyle设置fontFeature 属性"\"ss04\" on",验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0036', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0036 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0036") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0036 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0037 - *des:不同fontfeature效果的两个richEditor通过复制粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0037', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0037 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0037") - await Utils.sleep(1000) - let richEditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature003701")); - await richEditor1?.click() - await Utils.sleep(1000) - await richEditor1?.click() - await Utils.sleep(1000) - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click() - await Utils.sleep(500) - let copy = await driver.findComponent(ON.text('复制')) - await copy?.click() - await Utils.sleep(1000) - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature003702")); - await richEditor2?.click() - await Utils.sleep(1000) - await richEditor2?.click() - await Utils.sleep(1000) - let paste = await driver.findComponent(ON.text('粘贴')) - await paste?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0037 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0038 - *des:相同fontfeature效果的两个richEditor通过复制粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0038', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0038 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0038") - await Utils.sleep(1000) - let richEditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature003801")); - await richEditor1?.click() - await Utils.sleep(1000) - await richEditor1?.click() - await Utils.sleep(1000) - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click() - await Utils.sleep(500) - let copy = await driver.findComponent(ON.text('复制')) - await copy?.click() - await Utils.sleep(1000) - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature003802")); - await richEditor2?.click() - await Utils.sleep(1000) - await richEditor2?.click() - await Utils.sleep(1000) - let paste = await driver.findComponent(ON.text('粘贴')) - await paste?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0038 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0041 - *des:两次添加fontfeature 属性,,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0041', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0041 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0041") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0041 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0042 - *des:通过onIMEInputComplete获取fontfeature属性,,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0042', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0042 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0042") - await Utils.sleep(1000) - let richEditor = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0042")); - await richEditor?.click() - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_SPACE) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0042 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0043 - *des:添加多段span,通过aboutToDelete查询fontfearture属性,,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0043', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0043 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0043") - await Utils.sleep(1000) - let richEditor = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0043")); - await richEditor?.click() - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_DEL) - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_DEL) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0043 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0044 - *des:通过setTypingStyle设置fontFeature。通过getTypingStyle查询fontFeature,,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0044', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0044 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0044") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0044 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0045 - *des:通过updateSpanStyle设置部分文本fontFeature,另一部分保持原有设置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0045', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0045 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0045") - await Utils.sleep(1000) - let richEditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0045")); - await richEditor1?.click() - await Utils.sleep(1000) - let select = await driver.findComponent(ON.id("select")); - await select?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0045 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0046 - *des:通过getspans设置文本的fontFeature,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0046', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0046 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0046") - await Utils.sleep(1000) - let select = await driver.findComponent(ON.id("getspans")); - await select?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0046 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0047 - *des:通过getSelection获取多段span各个的fontFeature,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0047', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0047 start.`); - let driver = Driver.create(); - await Utils.sleep(1000) - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0047") - await Utils.sleep(1000) - let select = await driver.findComponent(ON.id("getselection")); - await select?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0047 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0048 - *des:通过模拟手指选取内容,获取fontFeature,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0048', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0048 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0048") - await Utils.sleep(1000); - let richEditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0048")); - await richEditor1.click(); - await Utils.sleep(1000); - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0048 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0049 - *des:设置 fontColor: Color.Orange,fontFeature: '\"sups\" on,,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0049', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0049 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0049") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0049 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0050 - *des:设置 fontStyle: FontStyle.Italic,fontFeature: '\"sups\" on,,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0050 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0050") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0050 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0051 - *des:设置 fontWeight: FontWeight.Bolder,fontFeature: '\"numr\" on',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0051', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0051 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0051") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0051 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0052 - *des:设置 fontFamily: 'HarmonyOS sans',fontFeature: '\"ss04\" on',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0052', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0052 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0052") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0052 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0053 - *des:设置 decoration: { type: TextDecorationType.Underline, color: Color.Black },fontFeature: '\"fwid\" on',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0053', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0053 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0053") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0053 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0054 - *des:设置 textShadow: { radius: 10, color: Color.Blue, offsetX: 10, offsetY: 0 }, fontFeature: '\"ss08\" on',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0054', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0054 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0054") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0054 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0055 - *des:设置 lineHeight: 50, fontFeature: '\"hwid\" on',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0055', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0055 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0055") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0055 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0056 - *des:添加多个RichEditor组件,设置不同的fontFeature,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0056', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0056 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0056") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0056 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0057 - *des:动态调整组件宽高,不影响fontfeature效果,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0057', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0057 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0057") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0057")); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("justFeature")); - await justBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0057 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0058 - *des:动态调整组件padding和margin,不影响fontfeature效果,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0058', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0058 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0058") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0058")); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("justFeature")); - await justBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0058 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0059 - *des:动态调整组件padding和margin,不影响fontfeature效果,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0059', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0059 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0059") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0059")); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("justFeature")); - await justBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0059 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0039 - *des:1、拖拽A组件内的内容至B组件内',验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0039', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0039 start.`); - let driver = Driver.create(); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0039") - await Utils.sleep(1000) - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0039")); - let textArea = await driver.findComponent(ON.id('TextArea')); - await textArea.click() - await Utils.sleep(1000); - await textArea.click() - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click() - await Utils.sleep(1000); - await textArea.dragTo(richeditor) - await Utils.sleep(3000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0039 finish.`); - done() - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0040 - *des:添加多个RichEditor组件,设置相同的fentFeature,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0040 start.`); - let driver = Driver.create(); - Settings.createWindow("testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0040") - await Utils.sleep(1000) - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorFontfeature0040")); - let textArea = await driver.findComponent(ON.id('TextArea')); - await textArea.click() - await Utils.sleep(1000); - await textArea.click() - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click() - await Utils.sleep(1000); - await textArea.dragTo(richeditor) - await Utils.sleep(3000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_FONTFEATURE_0040 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorInterface/ComponentTextRicheditorInterfaceTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorInterface/ComponentTextRicheditorInterfaceTests.test.ets deleted file mode 100644 index 3cc60c244088d674b1f01f95400fb97fcaf1deec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorInterface/ComponentTextRicheditorInterfaceTests.test.ets +++ /dev/null @@ -1,3603 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0340:INTERFACE相关用例 - * - * 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 ComponentTextRicheditorInterfaceTests() { - - describe('ComponentTextRicheditorInterfaceTests', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0340 - *des:1、启动应用 - 2、输入多段10字符以上的文本,输入纯文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0340.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0340"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0340.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0350 - *des:1、启动成功 - 2、【1,10】所在段落呈现居中对齐以及缩进 - 200,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0350.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0350"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0350.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0360 - *des:1、启动成功 - 2、【1,10】范围所在段落居中对齐以及列表效 - 果,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0360.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0360"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0360.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0410 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0410', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0410.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0410"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0410')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0410.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0420 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入图片以及文字,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0420.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0420"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0420')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0420.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0430 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0430.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0430"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0430')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0430")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0430.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0440 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0440', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0440.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0440"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0440')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - await driver.triggerKey(2014); - await Utils.sleep(100); - await driver.triggerKey(2014); - await Utils.sleep(100); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0440")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0440.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0450 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0450.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0450"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0450')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0450")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0450.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0460 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0460.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0460"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0460')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0460.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0470 - *des:1、启动成果 - 3、文本颜色显示绿色,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0470.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0470"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0470')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0470.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0480 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0480', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0480.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0480"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0480')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0480")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0480.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0490 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0490', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0490.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0490"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0490')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0490")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0490.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0500 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0500.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0500"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0500')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0500")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0500.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0510 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0510.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0510"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0510')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0510.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0520 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0520.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0520"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0520')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0520.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0530 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0530.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0530"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0530')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0530")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0530.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0540 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0540.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0540"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0540')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0540")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0540.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0550 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0550.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0550"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0550')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0550")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0550.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0560 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0560.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0560"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0560')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0560.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0570 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0570.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0570"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0570')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0570.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0580 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0580', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0580.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0580"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0580')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0580")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0580.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0590 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0590.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0590"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0590')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0590")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0590.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0600 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0600.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0600"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0600')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0600")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0600.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0610 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0610.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0610"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0610')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0610.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0620 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0620.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0620"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0620')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0620.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0630 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0630.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0630"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0630')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0630")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0630.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0640 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0640.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0640"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0640')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0640")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0640.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0650 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0650.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0650"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0650')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0650")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0650.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0660 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0660.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0660"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0660')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0660.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0670 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0670.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0670"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0670')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0670.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0680 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0680.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0680"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0680')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0680")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0680.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0690 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0690.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0690"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0690')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0690")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0690.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0700 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0700.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0700"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0700')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0700")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0700.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0710 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0710.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0710"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0710')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0710")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0710.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0720 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0720.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0720"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0720')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0720.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0730 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0730.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0730"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0730')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0730.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0740 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0740.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0740"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0740')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0740")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0740.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0750 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0750.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0750"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0750')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0750")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0750.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0760 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0760.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0760"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0760')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0760")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0760.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0770 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0770.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0770"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0770')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0770.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0780 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0780.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0780"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0780')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0780.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0790 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0790.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0790"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0790')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0790")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0790.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0800 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0800', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0800.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0800"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0800')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0800")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0800.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0810 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0810.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0810"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0810')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0810")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0810.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0820 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0820.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0820"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0820')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0820.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0830 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0830.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0830"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0830')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0830.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0840 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0840', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0840.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0840"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0840')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0840")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0840.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0850 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0850', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0850.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0850"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0850')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0850")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0850.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0860 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0860', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0860.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0860"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0860')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0860.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0870 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0870', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0870.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0870"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0870')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0870.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0880 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0880', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0880.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0880"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0880')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0880")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0880.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0890 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0890', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0890.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0890"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0890')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0890")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0890.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0900 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0900', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0900.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0900"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0900')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0900")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0900.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0910 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0910', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0910.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0910"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0910')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0910.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0920 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0920', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0920.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0920"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0920')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0920.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0930 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0930', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0930.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0930"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0930')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0930")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0930.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0940 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0940', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0940.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0940"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0940')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0940")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0940.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0950 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0950', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0950.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0950"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0950')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0950")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0950.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0960 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0960.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0960"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0960')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0960.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0970 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0970', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0970.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0970"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0970')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0970.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0980 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0980', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0980.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0980"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0980')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0980")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0980.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0990 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0990', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0990.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0990"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface0990')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface0990")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_0990.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1000 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1000', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1000.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1000"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1000')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1000")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1000.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1010 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1010.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1010"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1010')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1010.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1020 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1020.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1020"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1020')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1020.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1030 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1030.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1030"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1030')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1030")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1030.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1040 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1040.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1040"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1040')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1040")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1040.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1050 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1050.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1050"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1050')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1050")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1050.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1060 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1060.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1060"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1060')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1060.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1070 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1070.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1070"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1070')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1070.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1080 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1080.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1080"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1080')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1080")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1080.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1090 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1090.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1090"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1090')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1090")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1090.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1100 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1100.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1100"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1100')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1100")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1100.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1110 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1110.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1110"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1110')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1110.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1120 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1120.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1120"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1120')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1120.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1130 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1130.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1130"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1130')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1130")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1130.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1140 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1140.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1140"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1140')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1140")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1140.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1150 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1150.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1150"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1150')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1150")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1150.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1160 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1160.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1160"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1160')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1160.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1170 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1170.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1170"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1170')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1170.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1180 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1180.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1180"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1180')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1180")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1180.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1190 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1190.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1190"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1190')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1190")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1190.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1200 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1200.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1200"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1200')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1200")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1200.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1210 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1210.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1210"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1210')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1210.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1220 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1220.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1220"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1220')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1220.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1230 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1230.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1230"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1230')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1230")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1230.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1240 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1240.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1240"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1240')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1240")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1240.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1250 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1250.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1250"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1250')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1250")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1250.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1260 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1260.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1260"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1260')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1260.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1270 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1270.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1270"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1270')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1270.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1280 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1280.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1280"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1280')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1280")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1280.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1290 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1290.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1290"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1290')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1290")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1290.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1300 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1300.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1300"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1300')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1300")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1300.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1310 - *des:1、启动应用 - 2、清空输入框内容 - 3、重新输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1310.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1310"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1310')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1310.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1320 - *des:1、启动应用 - 2、清空输入框内容 - 4、重新输入图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1320.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1320"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1320')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_1); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1320.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1330 - *des:1、启动应用 - 2、复制文本后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1330.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1330"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1330')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1330")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1330.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1340 - *des:1、启动应用 - 2、复制图文后粘贴到不同字体的文字中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1340.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1340"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1340')); - await rich.click(); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(500); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(500); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1340")); - await richEditor2?.click(); - await Utils.sleep(500); - await richEditor2?.click(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1340.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1350 - *des:1、启动应用 - 2、复制原本不同字体的文本后粘贴到其他内容 - 中,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1350.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1350"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1350')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let richEditor2 = await driver.findComponent(ON.id("ComponentTextRicheditorInterface1350")); - await richEditor2?.click(); - await Utils.sleep(1000); - await richEditor2?.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1350.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1360 - *des:1、启动应用 - 2、输入图文内容 - 3、长按选择部分文字内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1360.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1360"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1360')); - await rich.longClick(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1360.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1380 - *des:1、启动应用 - 2、输入一段图文内容 - 3、长按图片位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1380.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1380"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1380')); - await rich.longClick(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1380.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1400 - *des:1、启动应用 - 2、输入一段图文内容 - 3、长按选中图文内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1400.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1400"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorInterface1400')); - await rich.click(); - await Utils.sleep(500); - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_INTERFACE_1400.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcingTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcingTests.test.ets deleted file mode 100644 index 297c9628d07fb448acb33a87463ff4e5c0973cfb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcingTests.test.ets +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0001:KEYBOARDREINFORCING相关用例 - * - * 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 ComponentTextRicheditorKeyboardReinForcingTests() { - - describe('ComponentTextRicheditorKeyboardReinForcingTests', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0001 - *des:1、点击RichEditor组件,激活软键盘 - 2、观察软键盘右下角回车键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0001 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0001") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0001')); - await rich.click() - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0001.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0002 - *des:1、点击RichEditor组件,激活软键盘 - 2、观察软键盘右下角回车键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0002 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0002") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0002')); - await rich.click() - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0002.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0003 - *des:1、点击RichEditor组件,激活软键盘 - 2、观察软键盘右下角回车键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0003 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0003") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0003')); - await rich.click() - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0003.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0004 - *des:1、点击RichEditor组件,激活软键盘 - 2、观察软键盘右下角回车键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0004 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0004") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0004')); - await rich.click() - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0004.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0012 - *des:1、设置onSubmit回调 - 2、点击RichEditor组件,拉起软键盘 - 3、动态切换EnterKeyType - 4、点击软键盘回车键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0012 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0012") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0012')); - await rich.click(); - await Utils.sleep(1000); - let switchType = await driver.findComponent(ON.id('switchType')); - await switchType.click(); - await Utils.sleep(1000); - let rich2 = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0012')); - await rich2.click(); - await Utils.sleep(1000); - await driver.triggerKey(2054); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0012.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0013 - *des:1、设置onSubmit回调 - 2、收起软键盘 - 3、动态切换EnterKeyTypo - 4、拉起软键盘 - 5、点击软键盘回车键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0013 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0013") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0013')); - await rich.click(); - await Utils.sleep(1000); - let switchType = await driver.findComponent(ON.id('switchType')); - await switchType.click(); - await Utils.sleep(1000); - let rich2 = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0013')); - await rich2.click(); - await Utils.sleep(1000); - await driver.triggerKey(2054); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0013.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0015 - *des:1、设置 onsubmit回调 - 2、动态切换EnterKeyType类型 - 3、点击键盘 Enter键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0015', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0015start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0015") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0015')); - await rich.click(); - await Utils.sleep(1000); - let switchType = await driver.findComponent(ON.id('switchType')); - await switchType.click(); - await Utils.sleep(1000); - let rich2 = await driver.findComponent(ON.id('ComponentTextRicheditorKeyboardReinForcing0015')); - await rich2.click(); - await Utils.sleep(1000); - await driver.triggerKey(2054); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_KEYBOARDREINFORCING_0015.`); - done(); - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacingTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacingTests.test.ets deleted file mode 100644 index 140efa8e6d2156cc717c4d2f7fb4847ae47d681d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacingTests.test.ets +++ /dev/null @@ -1,261 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING:LINEHEIGHT&LETTERSPACING相关用例 - * - * 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 ComponentTextRicheditorLineHeightLetterSpacingTests() { - - describe('ComponentTextRicheditorLineHeightLetterSpacingTests', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0014 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为10, letter- spacing值 - 为-100,输入纯文本内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0014', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0014 start.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0014") - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0014.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0014 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、onIMEInputComplete接口调用获取 - lineHeight、 letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0014 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0019") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0019")); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_A); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0019.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0020 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、aboutToDelete接口调用获取lineHeight、 - letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0020 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0020") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0020")); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_A); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_A); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0020.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0021 - *des:1、你从\ Icnual torsent - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、onSelect接口调用获取lineHeight、 - letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0021', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0021 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0021") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0021")); - await richeditor.longClick(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0021.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0022 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、getTypingStyle接口调用获取lineHeight - 、 letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0022', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0022 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0022") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0022")); - await richeditor.click(); - await Utils.sleep(1000); - let getStyles = await driver.findComponent(ON.id("getStyles")); - await getStyles.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0022.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0023 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、getSpans接口调用获取lineHeight、 - letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0023', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0023 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0023") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0023")); - await richeditor.click(); - await Utils.sleep(1000); - let getStyles = await driver.findComponent(ON.id("getStyles")); - await getStyles.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0023.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0024 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、 getsolection接口调用获取lineHeight、 - letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0024', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0024 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0024") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0024")); - await richeditor.click(); - await Utils.sleep(1000); - let getStyles = await driver.findComponent(ON.id("getStyles")); - await getStyles.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0024.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0025 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、setTypingStyle接口调用获取lineHeight - 、 letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0025', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0025 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0025") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0025")); - await richeditor.click(); - await Utils.sleep(1000); - let getStyles = await driver.findComponent(ON.id("getStyles")); - await getStyles.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0025.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0026 - *des:1、添加RichEditor组件 - 2、设置lineHeight值为30, letter- spacing - 值为30 - 3、updateSpanStyle接口调用获取lineHeight| - 、 letter- spacing属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHTLETTERSPACING_0026', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0026 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0026") - await Utils.sleep(2000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLineHeightLetterSpacing0026")); - await richeditor.click(); - await Utils.sleep(1000); - let getStyles = await driver.findComponent(ON.id("getStyles")); - await getStyles.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LINEHEIGHT&LETTERSPACING_0026.`); - done(); - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectalls.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectalls.test.ets deleted file mode 100644 index af1feae37182093bb11d04726e795ea938199fcf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectalls.test.ets +++ /dev/null @@ -1,647 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0001:长按选中相关用例 - * - * 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 ComponentTextRicheditorLongPresstoselectalls() { - - describe('ComponentTextRicheditorLongPresstoselectalls', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0001 - *des:1、设置onLongPress回调函数里setSelection(1,2,{menuPolicy: MenuPolicy.SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0001', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0001 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0001") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0001")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0001.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0002 - *des:1、设置onLongPress回调函数里setSelection(1,2,{menuPolicy: MenuPolicy.HIDE }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0002', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0002 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0002") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0002")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0002.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0003 - *des:1、设置onLongPress回调函数里setSelection(1,2,{menuPolicy: MenuPolicy.DEFAULT }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0003', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0003 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0003") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0003")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0003.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0004 - *des:1、设置onLongPress回调函数里setSeleotion(1,2,{menuPolicy: SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0004', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0004 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0004") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0004")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0004.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0005 - *des:1、设置onLongPress回调函数里setSelection(1,2,{menvuPolicy: SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0005', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0005 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0005") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0005")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0005.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0006 - *des:1、设置onLongPress回调函数里setSelection(1, 2,{menuPolicy: SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0006', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0006 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0006") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0006")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0006.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0007 - *des:1、设置onLongPress回调函数里setSelection(1, 2,{menuPolicy: SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0007', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0006 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0007") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0007")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0007.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0008 - *des:1、设置onLongPress回调函数里setSelection(1,2,{menuPolicy: MenuPolicy.HIDE }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0008', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0008 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0008") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0008")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0008.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0009 - *des:1、设置onLongPress回调函数里setSelection(-1,0,{menuPolicy: MenuPolicy.SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0009', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0009 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0009") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0009")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0009.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0010 - *des:1、设置onLongPress回调函数里setSelection(2,1,{menuPolicy: MenuPolicy.SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0010', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0010 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0010") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0010")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0010.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0011 - *des:1、设置onLongPress回调函数里setSelection(1, 1,(menuPolicy: SHOW )) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0011', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0011 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0011") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0011")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0011.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0012 - *des:1、设置onLongPress回调函数里setSelection(1, 1,{menuPolicy: HIDE }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0012', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0012 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0012") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0012")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0012.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0013 - *des:1、设置onLongPress回调函数里setSelection(1,2, - {menuPolicy:-1 }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0013', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0013 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0013") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0013")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0012.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0014 - *des:1、设置onLongPress回调函数里setSelection(1, 2, - (menuPolicy: 3 }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0014', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0014 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0014") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0014")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0014.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0015 - *des:1、设置onLongPress回调函数里setSelection(1, 2, - (menyPolicy: undefined }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0015', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0015 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0015") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0015")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0015.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0016 - *des:1、设置onLongPress回调函数里setSelection(-1,1000, - {menvaPolicy: HIDE }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0016', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0016 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0016") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0016")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0016.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017 - *des:1、设置onLongPress回调函数里setSelection(-1, 1000, - {menuPolicy: NEVER }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0017")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_157 - *des:1、设置onLongPress回调函数里setSelection(-1, 0. - {menuPolicy: SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_157', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_157 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0017_157")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_157.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_157_029 - *des:1、设置onLongPress回调函数里setSeleotion(2, 1, - {menuPolicy: HIDE}) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_157_029', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_157_029 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157_029") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0017_157_029")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_157_029.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_429 - *des:1、设置onLongPress回调函数里setSelection(-1, -1, - {menuPolicy: default }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_429', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_429 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0017_429")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click() - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_429.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_429_005 - *des:1、设置onLongPress回调函数里setSelection(-1, -1, - {menuPolicy: default }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0017_429_005', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_429_005 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429_005") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0017_429_005")); - await richeditor.click(); - await Utils.sleep(1000) - await richeditor.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0017_429_005.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0018 - *des:1、设置onLongPress回调函数里setSelection(-1, -1, - {menuPolicy: SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0018', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0018 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0018") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0018")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0018.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0019 - *des:1、设置onLongPress回调函数里setSelection(-1, -1, - {menuPolicy: SHOW }) - 2、长按富文本内任意位置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0019', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0019 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0019") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0019")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0019.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0020 - *des:1、设置onLongPress回调函数里setSelection(-1, -1, - {menuPolicy: ALWAYS }) - 2、长按富文本内任意位置,再拖动手柄,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0020', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0020 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0020") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0020")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - await richeditor.dragTo(richeditor); - await Utils.sleep(2000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0020.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0021 - *des:1、设置onLongPress回调函数里setSelection(1,2, - {menuPolicy: never }) - 2、长按富文本内任意位置触发接口调用 - 3、双击选区外其他文字内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0021', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0021 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0021") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0021")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - await richeditor.dragTo(richeditor); - let richeditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0021")); - await richeditor1.click(); - await Utils.sleep(1000); - await richeditor1.click(); - await Utils.sleep(1000); - await richeditor1.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0021.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0022 - *des:1、设置onLongPress回调函数里setSelection(-1, -1, - {menuPolicy: default }) - 2、长按富文本内任意位置,再拖动手柄容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_LONGPRESSTOSELECTAIL_0022', 0, async (done: Function) => { - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0022 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0022") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0022")); - await richeditor.click(); - await Utils.sleep(1000) - let selectBtn = await driver.findComponent(ON.id('select')); - await selectBtn.click(); - await Utils.sleep(1000); - let richeditor1 = await driver.findComponent(ON.id("ComponentTextRicheditorLongPresstoselectall0022")); - await richeditor1.click(); - await Utils.sleep(1000) - await richeditor1.click(); - await Utils.sleep(1000) - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `ComponentTextRicheditorLongPresstoselectall0022.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChangeTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChangeTests.test.ets deleted file mode 100644 index f592251066066f69a70c309e3db37bf3a5f675ec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChangeTests.test.ets +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE:onwillchange相关用例 - * - * 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 ComponentTextRicheditorOnWillChangeTests() { - - describe('ComponentTextRicheditorOnWillChangeTests', () => { - - /** - * NO.SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0001 - *des:2、富文本组件输入框无法输入, onWillChange回调中的replacedSpans中的值正常, onDidChang无回调值|,验证效果 - */ - it('SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0001 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0001") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorOnWillChange0001")); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0001.`); - done(); - }) - /** - * NO.SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0002 - *des:1、onWillChange返回值设置为 false. - 2、从其他组件拖拽文本内容到此RichEditor组件中(考虑手动 - 拖拽和鼠标拖拽),验证效果 - */ - it('SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0002 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0002") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorOnWillChange0002")); - let textArea = await driver.findComponent(ON.id('TextArea')); - await textArea.click(); - await Utils.sleep(1000); - await textArea.click() - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click(); - await Utils.sleep(1000); - await textArea.dragTo(richeditor) - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0002.`); - done(); - }) - /** - * NO.SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0003 - *des:1、onWillChange返回值设置为 false - 2、点击AddTextSpan输入字符,验证效果 - */ - it('SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0003 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0003") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorOnWillChange0003")); - let changeBtn = await driver.findComponent(ON.id("changeFeature")); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0003.`); - done(); - }) - /** - * NO.SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0004 - *des:1、onWillChange返回值设置为 true - 2、输入文本内容,验证效果 - */ - it('SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0004 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0004") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorOnWillChange0004")); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0004.`+richeditor); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0004.`); - done(); - }) - /** - * NO.SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0005 - *des:1、onWillChange返回值设置为 true - 2、输入文本内容,验证效果 - */ - it('SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0005', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0005start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0005") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorOnWillChange0005")); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0005.`+richeditor); - await richeditor.click(); - await Utils.sleep(1000); - let deleteBtn = await driver.findComponent(ON.id("delete")); - await deleteBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0005.`); - done(); - }) - /** - * NO.SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0006 - *des:1、onWillChange返回值设置为 true - 2、输入文本内容 - 3、软/硬(BackSpace/ delete) 键盘删除部分文本,看预期效果 - */ - it('SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0006start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0006") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorOnWillChange0006")); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0006.`+richeditor); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0006.`); - done(); - }) - /** - * NO.SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0007 - *des:1、onWillChange返回值设置为 true - 2、输入文本内容 - 3、软/硬(BackSpace/ delete) 键盘删除部分文本,看预期效果 - */ - it('SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0007start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0007") - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorOnWillChange0007")); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0007.`+richeditor); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(2641); - await Utils.sleep(100); - await driver.triggerKey(2641); - await Utils.sleep(100); - await driver.triggerKey(2641); - await Utils.sleep(100); - await driver.triggerKey(2641); - await Utils.sleep(100); - await driver.triggerKey(2641); - await Utils.sleep(100); - await driver.triggerKey(2641); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UT_COMPONENT_TEXT_RICHEDITOR_ONWILLCHANGE_0007.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholderTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholderTests.test.ets deleted file mode 100644 index 18c12f98f608bc25d1eae78f9f40ac7b86ff55d2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholderTests.test.ets +++ /dev/null @@ -1,2052 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * "SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0001":placeholder相关用例 - * - * 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 ComponentTextRicheditorPlaceholderTests() { - - describe('ComponentTextRicheditorPlaceholderTests', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0001 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 value为‘’这是提示文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0001 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0001"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0001.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0002 - *des:"1、添加RichEditor组件,设置较小长宽 - 2、接口中设置 placeholder的 value为‘前面章节介绍了如何创 - 建一个自定义组件。该自定义组件内部红结构固定,仅与使用方 - 进行数据传递。 Ark UI还提供了一种更轻量的VI元素复用机制 - ④vilder,④vilder所装饰的函数遵循 build()函数语法规则, - 开发者可以将重复使用的UI元素抽象成一个方法,在build方法 - 里调用。’" - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0002 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0002"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0002.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0003 - *des:"1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为“”" - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0003 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0003"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0003.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0004 - *des:"1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为“”" - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0004 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0004"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0004.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0005 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为“回头看了附近的 - hfkdshf \ nhfkdf& ldfkklf \n^7#@32345 () --#999@“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0005', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0005 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0005"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0005.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0006 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为正确资源类型例: - $r( app.string.common) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0006 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0006"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0006.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0007 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为正确资源类型例: $x(“ - app. media. startIcon) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0007 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0007"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0007.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0008 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为“20gx” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0008', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0008 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0008"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0008.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0009 - *des:1、添加RichEditor组件,设置较小长宽 - 2、接口中设置 placeholder的 size为“100px“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0009', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0009 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0009"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0009.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0010 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为‘10’ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0010 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0010"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0010`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0011 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为“23.40” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0011 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0011"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0011`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0012 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为‘50fp’ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0012 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0012"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0012`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0013 - *des:1、添加RichEditor组件。 - 2、接口中设置 placeholder的 size为‘50abedefg’ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0013 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0013"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0013`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0014 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为“50dp” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0014', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0014 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0014"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0014`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0015 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为‘100%’ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0015', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0015 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0015"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0015`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0016 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为“上班 qwer$k\n” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0016 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0016"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0016`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0017 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为“-1px“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0017', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0017 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0017"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0017`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0018 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为“ Opx“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0018', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0018 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0018"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0018`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0019 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为“0b1010” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0019 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0019"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0019`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0020 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为20 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0020 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0020"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0020`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0021 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为-10 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0021', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0021 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0021"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0021`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0022 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为0b1010 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0022', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0022 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0022"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0022`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0023 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为23.40 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0023', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0023 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0023"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0023`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0024 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为0x22 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0024', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0024 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0024"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0024`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0025 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为0 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0025', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0025 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0025"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0025`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0026 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为$r( - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0026', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0026 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0026"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0026`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0027 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 size为$r(“ app. media. startIcon - “) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0027', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0027 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0027"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0027`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0028 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的FontStyle为FontStyle. Italic - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0028', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0028 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0028"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0028`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0029 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的FontStyle为FontStyle. Normal - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0029', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0029 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0029"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0029`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0030 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“900” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0030 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0030"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0030`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0031 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“400” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0031', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0031 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0031"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0031`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0032 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“100” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0032', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0032 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0032"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0032`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0033 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“-1” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0033', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0033 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0033"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0033`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0034 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“0” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0034', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0034 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0034"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0034`); - done(); - }) - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0035 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“1000” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0035', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0035 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0035"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0035`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0036 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“901” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0036', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0036 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0036"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0036`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0037 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的 weight为“100.6” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0037', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0037 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0037"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0037`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0038 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为“0b1100100“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0038', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0038 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0038"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0038`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0039 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为“ abedefg” - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0039', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0039 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0039"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0039`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0040 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为900 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0040 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0040"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0040`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0041 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为400 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0041', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0041 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0041"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0041`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0042 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为100 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0042', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0042 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0042"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0042`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0043 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为0b1100100 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0043', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0043 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0043"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0043`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0044 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为-100 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0044', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0044 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0044"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0044`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0045 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为0 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0045', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0045 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0045"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0045`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0046 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为1000 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0046', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0046 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0046"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0046`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0047 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为99 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0047', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0047 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0047"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0047`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0048 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为901 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0048', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0048 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0048"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0048`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0049 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为900.6 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0049', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0049 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0049"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0049`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0050 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为100.6 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0050 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0050"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0050`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0051 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为101 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0051', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0051 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0051"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0051`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0052 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为499.9 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0052', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0052 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0052"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0052`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0053 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为FontWeight. Lighter - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0053', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0053 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0053"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0053`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0054 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为FontWeight. Normal - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0054', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0054 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0054"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0054`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0055 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为FontWeight.Regular - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0055', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0055 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0055"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0055`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0056 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为FontWeight. Medium - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0056', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0056 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0056"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0056`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0057 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为FontWeight. Bold - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0057', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0057 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0057"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0057`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0058 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 weight为FontWeight. Bolder - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0058', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0058 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0058"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0058`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0059 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 family为“HarmonyOS Sans“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0059', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0059 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0059"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0059`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0060 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 family为‘ abedefg’ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0060 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0060"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0060`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0061 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 family为$r(“ - app. string mediunFanilyNane“) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0061', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0061 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0061"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0061`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0062 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 family为$r(“ - app. media startIcon“) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0062', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0062 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0062"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0062`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0063 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为 Color. Orange - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0063', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0063 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0063"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0063`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0064 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为0x0000ff - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0064', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0064 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0064"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0064`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0065 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为 Oxffffffeeeee - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0065', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0065 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0065"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0065`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0066 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为10000 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0066', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0066 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0066"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0066`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0067 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为10000.5 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0067', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0067 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0067"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0067`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0068 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为-15 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0068', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0068 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0068"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0068`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0069 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为“#00ffff“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0069', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0069 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0069"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0069`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0070 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为“#ffffff00“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0070 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0070"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0070`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0071 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为“ rgb(255.0.255)“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0071', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0071 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0071"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0071`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0072 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为“ rgba(0,0,255,0.5) - “ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0072', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0072 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0072"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0072`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0073 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为‘#0cccccc“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0073', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0073 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0073"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0073`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0074 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为“ rgba(255,0,255,2) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0074', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0074 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0074"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0074`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0075 - *des:1、添加RichEditor组件. - 2、接口中设置 placeholder的fontColor为“ rgb(255,0,300)“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0075', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0075 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0075"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0075`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0076 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholdar的fontColor为“# abcdefg“ - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0076', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0076 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0076"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0076`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0077 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为$r(“ - app. color. color“) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0077', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0077 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0077"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0077`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0078 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的fontColor为$r(“ - app. media. startIcon“) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0078', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0078 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0078"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0078`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079 - *des:"1、添加RichEditor组件 - 2、添加 button动态改变 font- size, font- weight, font- - style. font- family, fontcolor, value - 3、单次点击 button" - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0079')) - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')) - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079_932 - *des:"1、添加RichEditor组件 - 2、添加 button动态改变 font- size, font- weight, font- - style. font- family, fontcolor, value - 3、单次点击 button" - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079_932', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079_932"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0079_932')) - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')) - await changeBtn.click(); - await Utils.sleep(1000); - await rich.longClick(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0079_932`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0080 - *des:1、添加RichEditor组件 - 2、添加 button动态改变 font- size: font- weight, font- - style. font- family, fontcolor, value - 3、多次连续点击 button - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0080 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0080"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0080')) - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')) - await changeBtn.click(); - await Utils.sleep(1000); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0080`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0081 - *des:1、添加RichEditor组件 - 2、设置 value为“这是提示”,不设置 font - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0081', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0081 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0081"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0081`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0082 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3:点击输入框,使输入框获焦 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0082', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0082 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0082"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0082')); - await Utils.sleep(1000); - let changeText = await driver.findComponent(ON.id('change')); - changeText.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0082`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0083 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、使用鼠标, 使输入框获焦 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0083', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0083 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0083"); - await Utils.sleep(1000); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0083')); - await Utils.sleep(1000); - let changeText = await driver.findComponent(ON.id('change')); - await changeText.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - let ponit = await rich.getBoundsCenter(); - await driver.click( ponit.x, ponit.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0083`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0084 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、使用键盘输入内容 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0084', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0084 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0084"); - await Utils.sleep(1000); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0084')); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0084`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0085 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、长按光标粘贴输入内容 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0085', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0085 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0085"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0085')); - let changeText = await driver.findComponent(ON.id('change')); - await changeText.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await changeText.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(1000); - let copy = await driver.findComponent(ON.text('复制')); - await copy.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0085')); - let ponit = await rich1.getBoundsCenter(); - await driver.click( ponit.x, ponit.y); - await Utils.sleep(100); - await driver.longClick( ponit.x, ponit.y); - await Utils.sleep(100); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0085`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0086 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、拖拽输入内容 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0086', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0086 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0086"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0086')); - let changeText = await driver.findComponent(ON.id('change')); - await changeText.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await changeText.click(); - await Utils.sleep(100); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(100); - await changeText.dragTo(rich); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(2000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0086`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0087 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、输入内容后键盘清除全部 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0087', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0087 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0087"); - await Utils.sleep(1000); - let changeText = await driver.findComponent(ON.id('change')); - await changeText.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0087')); - let ponit = await rich1.getBoundsCenter(); - await driver.click( ponit.x, ponit.y); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0087`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0088 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、输入内容 - 4、键盘改变光标位置后再清除光标前内容 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0088', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0088 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0088"); - await Utils.sleep(1000); - let changeText = await driver.findComponent(ON.id('change')); - await changeText.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0088')); - let ponit = await rich1.getBoundsCenter(); - await driver.click( ponit.x, ponit.y); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(2014); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0088`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0089 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、输入内容后键盘清除全部 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0089', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0089 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0089"); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0089')); - let ponit = await rich1.getBoundsCenter(); - await driver.doubleClick( ponit.x, ponit.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0089`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0090 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、长按水印 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0090 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0090"); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0090')); - let ponit = await rich1.getBoundsCenter(); - await driver.longClick( ponit.x, ponit.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0090`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0091 - *des:1、添加RichEditor组件 - 2、RichEditor( this. options) - . onReady(() =>{}中预置addTextSpan, - addImageSpan, addSymbolSpan, addBuilderSpan - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0091', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0091 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0091"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0091`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0092 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、RichEditor( this. options) - . onReady(()=>{}中预置addTextSpan, - addInageSpan, addSymbolSpan, addBuilderSpan - 3、键盘删除预置 span - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0092', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0092 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0092"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0092')); - let ponit = await rich.getBoundsCenter(); - await driver.click( ponit.x, ponit.y); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0092`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0093 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、RichEditor( this. options) - . onReady(() =>{}中预置addTextSpan, - addImageSpan, addSymbolSpan, addBuilderSpan - 4、按钮删除全部预置 span(deleteSpans()) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0093', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0093 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0093"); - await Utils.sleep(1000); - let deleteBtn = await driver.findComponent(ON.id('delete')); - await deleteBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0093`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0094 - *des:1、添加RichEditor组件 - 2、自定义水印内容 - 3、通过按钮添加、删除addTextSpan, addImageSpan, - addSymbolSpan, addBuilderSpan - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0094', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0094 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0094"); - await Utils.sleep(1000); - let addBtn = await driver.findComponent(ON.id('add')); - await addBtn.click(); - await Utils.sleep(1000); - let deleteBtn = await driver.findComponent(ON.id('delete')); - await deleteBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0094`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0095 - *des:1、添加RichEditor组件,设置百分比宽高 - 2、自定义水印内容,设置长文本 - 3、切换横竖屏 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0095', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0095 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0095"); - await Utils.sleep(1000); - let addBtn = await driver.findComponent(ON.id('setContent')); - await addBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0095`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0097 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为“’这是提示文本” - 3、设置 update Paragraph Style中 textAlim: TextAlim. End - 4、预置 span,内容水平对齐尾部,删除 span观察水印位置 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0097', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0097 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0097"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0097')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(2015); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0097`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0098 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为“”这是提示文本 - 3、设置. align( Aligment. BottomStart) - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0098', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0098 start.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0098"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0098`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0099 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本 - 3、设置输入内容向右空白缩进 - 4、输入内容后,删除 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0099', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0099 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0099"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder0099')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(2050); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_0099`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00100 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本 - 3、设置 button增加/减小文本宽/高度 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00100 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00100"); - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00100`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00101 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本 - 3、设置 button增加/减小内边距属性 padding - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00101', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00101 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00101"); - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00101`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00102 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本 - 3、设置 button增加/减小外边距属性 margin - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00102', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00102 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00102"); - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00102`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本。 - 3、设置 button增加/减小在父容器主轴方向上的基准尺寸 - flexBasis - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103"); - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00104 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本 - 3、设置 button增加/减小水印文本 size大小 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00104', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00104 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00104"); - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')); - await changeBtn.click(); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder00104')); - await rich.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00104`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00105 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本 - 3、设置 button改变水印文本位置 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00105', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00105 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00105"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder00105')); - await rich.click(); - await Utils.sleep(1000); - let changeBtn = await driver.findComponent(ON.id('changeFeature')); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00105`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为‘’这是提示文本_ - 3、输入多行文本后,上划文本至底部, 使用 deletespan清空内 - 容 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder00103_040')); - await rich.click(); - await Utils.sleep(1000); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_F); - await Utils.sleep(100); - let changeBtn = await driver.findComponent(ON.id('change')); - await changeBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040_934 - *des:1、添加RichEditor组件 - 2、接口中设置 placeholder的 value为。”这是提示文本_ - 3、从其他组件拖拽文本,至水印内容处,移动拖拽文本不松手 - ,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040_934', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040_934 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040_934"); - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorPlaceholder00103_040_934')); - let textArea = await driver.findComponent(ON.id('TextArea')); - await textArea.click(); - await Utils.sleep(1000); - await textArea.click() - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click(); - await Utils.sleep(1000); - await textArea.dragTo(textArea) - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_PLACEHOLDER_00103_040_934`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeysTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeysTests.test.ets deleted file mode 100644 index 5adf8f6929a886e52cbfcda19fc26c82cf02dc78..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeysTests.test.ets +++ /dev/null @@ -1,1162 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' -import { MouseButton } from '@kit.TestKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0010:SHORTKCUTKEYS相关用例 - * - * 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 ComponentTextRicheditorShortKcutKeysTests() { - - describe('ComponentTextRicheditorShortKcutKeysTests', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0010 - *des:1、第一个输入框中输入长文本,设置字体样式为红色、料体、较粗;使用快捷键ctrl+c复制ctrl+v粘贴到另一个输入框中 - 2、查看第二个输入框中文本显示,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0010 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0010") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0010')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0010_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0010.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0020 - *des:1、第一个输入框中输入三张图片,使用ctrl+A全选后快捷键ctrl+c夏制ctrl+v粘贴到另一个输入框中 - 2、查看第二个输入框中的显示,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0020 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0020") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0020')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0020_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0020.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0030 - *des:1、第一个输入框中输入三张图片,选中一张图片后快捷键ctrl+c复制ctrl+v粘贴到另一个输入框中 - 2、查看第二个输入框中的显示,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0030 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0030") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0030')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0030_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0030.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0040 - *des:1、在第一个输入框中添加长文本,使用ctrl+A,全选;ctrl+a进行复制 - 2、在第二个输入框中ctrl+V连续十次进行粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0040 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0040") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0040')); - await rich.click(); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0040_01')); - await rich1.click(); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0040.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0050 - *des:1、添加两个输入框,在第一个输入枉中添加长文本,在文本中间按回车进行换行(长文本变成两个自然段),右键点击菜单中复制选项 - 2、在第二个输入框中点击粘贴,粘贴的文本仍未两个自然段保留手动换行,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0050 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0050") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0050')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0050_01')); - await rich1.click(); - await Utils.sleep(1000); - await rich1.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0050.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0060 - *des:1、添加两个输入框,在第一个输入框中添加长文本和图片,使用快捷键ctrl+c进行复制,文本内容,再用快捷键复制图片 - 2、在第二个输入框中ctrl+v粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0060 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0060") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0060')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0060_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0060.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0070 - *des:1、在第一个输入框中选中文本进行复制 - 2、在第二个输入框中选中一段文本/图片 - 3、ctrl+v进行粘贴操作,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0070 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0070") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0070')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0070_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0070.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0080 - *des:1、在第一个输入框中输入长本文,手势长按文本弹出菜单栏,点击”复制 - 2、在第二个输入框中手势长按进行粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0080 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0080") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0080')); - await rich.click(); - await Utils.sleep(1000); - await rich.click(); - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')); - await selectAll?.click(); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0080_01')); - await rich1.click(); - await Utils.sleep(1000); - await rich1.click(); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0080.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0090 - *des:1、在第一个输入框中输入长本文,使用 ctrl+c夏制文本内容 - 2、在第二个输入框中使用快捷键ctrl+v进行粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0090 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0090") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0090')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0090_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0090.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0100 - *des:1、在第一个输入框中输入长本文,使用 ctrl+c夏制文本内容 - 2、在第二个输入框中使用快捷键ctrl+v进行粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0100 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0100") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0100')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0100_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0100.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0110 - *des:1、在第一个输入框中输入长本文,鼠标右键弹出菜单栏,点击复制 - 2、在第二个输入框中使用快捷键ctrl+v进行粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0110 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0110") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0110')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - let ponit = await rich.getBoundsCenter(); - await Utils.sleep(1000); - await driver.mouseClick(ponit, MouseButton.MOUSE_BUTTON_RIGHT); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0110_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0110.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0120 - *des:1、在第一个输入框中输入长本文,使用ctrl+c复制文本内容 - 2、在第二个输入框中右键粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0120 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0120") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0120')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0120_01')); - await rich1.click(); - await Utils.sleep(1000); - let ponit = await rich1.getBoundsCenter(); - await Utils.sleep(1000); - await driver.mouseClick(ponit, MouseButton.MOUSE_BUTTON_RIGHT); - await Utils.sleep(1000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0120.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0130 - *des:1、在第一个输入框中输入图片,鼠标右键弹出菜单栏,点击”复制 - 2、第二个输入框中使用快捷键ctrl+v进行拈贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0130 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0130") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0130')); - await rich.click(); - await Utils.sleep(1000); - let ponit = await rich.getBounds(); - await Utils.sleep(500); - await driver.mouseClick({x:ponit.left+57,y:ponit.top+57}, MouseButton.MOUSE_BUTTON_RIGHT); - await Utils.sleep(500); - let copy = await driver.findComponent(ON.text('复制')); - await copy?.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0130_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0130.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0140 - *des:1、在第一个输入框中长文本,选中一段文字后,使用ctrl+x剪切 - 2、第二个输入框中使用快捷键ctrl+v进行粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0140 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0140") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0140')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0140_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0140.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0150 - *des:1、在第一个输入框中输入长文本,选中一段文字后,使用ctrl+x剪切 - 2、再在第一个输入框中选中一段文字,使用ctrl+c复制一段文本 - 3、在第二个输入框中使用ctrl+v粘贴一段文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0150 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0150") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0150')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0150_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0150.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0160 - *des:1、在第一个输入框中输入长文本,选中一段文字后,使用ctrl+x剪切 - 2、再在第一个输入框中选中一段文字,使用ctrl+c复制一段文本 - 3、在第二个输入框中使用ctrl+v粘贴一投文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0160 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0160") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0160')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0160_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0160.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0170 - *des:1、在第一个输入框中输入长文本,选中一段文字后,使用ctrl+x剪切 - 2、再使用ctrl+z撒销剪切的文本 - 3、在第二个输入框中使用ctrl+v粘贴一段文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0170 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0170") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0170')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_Z); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0170_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0170.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0180 - *des:1、在第一个输入框中3张图片,选中一张图片后,使用ctrl+x剪切 - 2、在第二个输入框中使用ctrl+v粘贴图片,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0180 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0180") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0180')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0180_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0180.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0190 - *des:1、在第一个输入框中3张图片,选中一张图片后,使用ctrl+x剪切 - 2、再选中另一张图片,使用ctrl+x剪切 - 3、在第二个输入框中使用ctrl+v粘贴图片,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0190 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0190") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0190')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0190_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0190.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0200 - *des:1、在第一个输入框中输入图片和文字,选中一段文字后,使用ctrl+x剪切 - 2、再选中另一张图片,使用ctrl+x剪切 - 3、在第二个输入框中使用ctrl+v粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0200 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0200") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0200')); - await rich.click(); - await Utils.sleep(1000); - let select = await driver.findComponent(ON.id('select')); - await select.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(1000); - let select1 = await driver.findComponent(ON.id('select1')); - await select1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0200_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0200.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0210 - *des:1、在第一个输入框中输入图片和文字,选中一张图片后,使用ctrl+x剪切 - 2、再选中一段文字,使用ctrl+x剪切 - 3、在第二个输入框中使用ctrl+v,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0210 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0210") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0210')); - await rich.click(); - await Utils.sleep(1000); - let select = await driver.findComponent(ON.id('select')); - await select.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(1000); - let select1 = await driver.findComponent(ON.id('select1')); - await select1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0210_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0210.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0220 - *des:1、在第一个输入框中输入文字,使用手势长按一段文本选中 - 再弹出的菜单栏中,点击”剪切" - 2、在第二个输入框中使用ctrl+v,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0220 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0220") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0220')); - await rich.longClick(); - await Utils.sleep(1000); - let cut = await driver.findComponent(ON.text('剪切')); - await cut.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0220_01')); - await rich1.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0220.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0230 - *des:1、在第一个输入框中输入文字,选中一段文本后,使用ctrl+x剪切文本内容 - 2、在第二个输入框中使用手势长按,点击”粘贴按钮,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0230 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0230") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0230')); - await rich.click(); - await Utils.sleep(1000); - let select = await driver.findComponent(ON.id('select')); - await select.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0230_01')); - await rich1.click(); - await Utils.sleep(500); - await rich1.longClick(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0230.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0240 - *des:1、在第一个输入框中输入图片,选中一张图片后,使用手势长 - 按 ·弹出菜单,点击”剪切",剪切图片 - 2、在第二个输入框中使用 ctrl+y,粘贴图片内容,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0240 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0240") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0240')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0240_01')); - await rich1.click(); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0240.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0260 - *des:1、在第一个输入框中输入长文本内容,选中一段文字,ctrl+c剪切 - 2、在第二个输入框中手势长按,弹出菜单,点击粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0260 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0260") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0260')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0260_01')); - await rich1.click(); - await Utils.sleep(500); - await rich1.longClick(); - await Utils.sleep(500); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0260.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0270 - *des:1、在第一个输入框中输入图片内容,选中一张图片,手势长 - 按,点击的切图片 - 2、在第二个输入框中使用ctrl+v,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0270 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0270") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0270')); - await rich.longClick(); - await Utils.sleep(1000); - let cut = await driver.findComponent(ON.text('剪切')); - await cut.click(); - await Utils.sleep(1000); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0270_01')); - await rich1.click(); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0270.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0280 - *des:1、在第一个输入框中输入长文本内容,使用ctrl+c复制文本内容 - 2、在第二个输入框中使用ctrl+v粘贴文本内容 - 3、ctrl+z散销粘贴操作 - 4、ctrl+y或ctrl+shift+z,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0280 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0280") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0280')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - let rich1 = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0280_01')); - await rich1.click(); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await rich1.click(); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_Z); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_Y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0280.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0290 - *des:1、在第一个输入框中输入长文本内容,对文本内容进行删除 - 2、ctrl+z撤销删除操作 - 3、ctrl+y或ctrl+shift+z,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0290 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0290") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0290')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_Z); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_Y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0290.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0300 - *des:1、在第一个输入框中输入长文本内容,使用ctrl+c夏制文本内容 - 2、 ctrl+v粘贴文本内容 - 3、ctrl+y或ctrl+shift+z,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0300 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0300") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0300')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_Y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0300.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0310 - *des:1、在第一个输入框中输入长文本内容,使用ctrl+剪切文本内 - 容 - 2、再次选中一段文本内容 - 3、ctrl+y或ctrl+shift+z,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0310 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0310") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0310')); - await rich.longClick(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_X); - await Utils.sleep(500); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); - await Utils.sleep(500); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_Y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0310.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0320 - *des:1、在第一个输入框中输入长文本内容,分成3个自然段 - 2、光标位于第一自然段段首 - 3、按ctrl+↓,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0320 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0320") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0320')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_MOVE_HOME); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(100); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_RIGHT, KeyCode.KEYCODE_DPAD_DOWN); - await Utils.sleep(100); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_RIGHT, KeyCode.KEYCODE_DPAD_DOWN); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_MOVE_HOME); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0320.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0330 - *des:1、在第一个输入框中输入长文本内容,分成3个自然段 - 2、光标位于第一自然段段尾 - 3、按ctrl+↓,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0330 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0330") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0330')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(100); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_DPAD_DOWN); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_MOVE_HOME); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0330.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0340 - *des:1、在第一个输入框中输入长文本内容,分成3个自然段 - 2、光标位于第二自然段段首 - 3、按ctrl+↑,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0340 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0340") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0340')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_MOVE_HOME); - await Utils.sleep(500); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(100); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0340.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0350 - *des:1、在第一个输入框中输入长文本内容,分成3个自然段 - 2、光标位于自然段段首 - 3、按ctrl+↓,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0350 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0350") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0350')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_MOVE_HOME); - await Utils.sleep(100); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_RIGHT, KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(100); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_RIGHT, KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(100); - await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_RIGHT, KeyCode.KEYCODE_DPAD_DOWN); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0350.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0360 - *des:1、输入长文本,光标位于自然段段中 - 2、按ctrl+←,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0360 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0360") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0360')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey( KeyCode.KEYCODE_DPAD_LEFT); - await Utils.sleep(100); - await driver.triggerKey( KeyCode.KEYCODE_DPAD_LEFT); - await Utils.sleep(100); - await driver.triggerKey( KeyCode.KEYCODE_DPAD_LEFT); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0360.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0370 - *des:1、输入长文本,光标位于自然段段中 - 2、按Ctrl+→,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0370 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0370") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0370')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey( KeyCode.KEYCODE_DPAD_LEFT); - await Utils.sleep(100); - await driver.triggerKey( KeyCode.KEYCODE_DPAD_LEFT); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_RIGHT); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0370.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0380 - *des:1、输入长文本,光标位于自然段段中 - 2、按Ctrl+home,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0380 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0380") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorShortKcutKeys0380')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey( KeyCode.KEYCODE_DPAD_LEFT); - await Utils.sleep(100); - await driver.triggerKey( KeyCode.KEYCODE_DPAD_LEFT); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_MOVE_HOME); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDIT0R_SHORTKCUTKEYS_0380.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformanceTests.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformanceTests.test.ets deleted file mode 100644 index c33d01b5f19061279baa229c523d05297559db91..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformanceTests.test.ets +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0006:UXCONFORMANCE相关用例 - * - * 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 ComponentTextRicheditorUxConformanceTests() { - - describe('ComponentTextRicheditorUxConformanceTests', () => { - - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0006 - *des:1、调用addTextSpan添加一段文本, 设定装饰 - 线颜色不设定字体颜色,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0006 start.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0006") - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0006.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0007 - *des:1、调用addTextSpan添加一段文本, 设定装饰 - 线颜色为 Red, 字体颜色为 Pink,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0007 start.`); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0007") - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0007.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0011 - *des:1、点击多张图片中间位置,将光标放至任意一张图片后 - 2、点击虚拟键盘上的删除按钮 - 3、再次点击虚拟键盘上的删除按钮,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0011 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0011") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorUxConformance0011')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(2014); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0011.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0012 - *des:1、 richeditor添加多张图片 - 2、点击多张图片中间位置,将光标放至任意一 - 张图片后 - 3、点击物理键盘上的 backspace键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0012 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0012") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorUxConformance0012')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(2014); - await Utils.sleep(100); - await driver.triggerKey(2014); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0012.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0013 - *des:1、 richeditor添加多张图片 - 2、点击多张图片中间位置,将光标放至任意一 - 张图片后 - 3、点击物理键盘上的 delete键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0013 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0013") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorUxConformance0013')); - await rich.click(); - await Utils.sleep(1000); - await driver.triggerKey(2014); - await Utils.sleep(100); - await driver.triggerKey(2014); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0013.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0014 - *des:1、选中一段内容,图片在选中内容首位/末尾/ - 中间 - 2、点击虚拟键盘上的删除按钮,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0014', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0014 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0014") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorUxConformance0014')); - await rich.click(); - let select = await driver.findComponent(ON.id('select')); - await select.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0014.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0015 - *des:1、选中一段内容,图片在选中内容首位/末尾/ - 中间 - 2、点击物理键盘上的 backspace键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0015', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0015 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0015") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorUxConformance0015')); - await rich.click(); - let select = await driver.findComponent(ON.id('select')); - await select.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0015.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0016 - *des:1、选中一段内容, 图片在选中内容首位/末尾/ - 中间 - 2、点击物理键盘上的 delete键,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0016 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0016") - await Utils.sleep(1000); - let rich = await driver.findComponent(ON.id('ComponentTextRicheditorUxConformance0016')); - await rich.click(); - let select = await driver.findComponent(ON.id('select')); - await select.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_UXCONFORMANCE_0016.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreaks.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreaks.test.ets deleted file mode 100644 index 747d60888c73b40d62ebaa983fd15794b3343990..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreaks.test.ets +++ /dev/null @@ -1,602 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, On } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' - -/* - * SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK:设置断行规则 - * - * 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 ComponentTextRicheditorWordbreaks() { - - describe('ComponentTextRicheditorWordbreaks', () => { - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0001 - *des:wordBreak不设置属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0001 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0001"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0001 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0002 - *des:wordBreak设置属性 WordBreak.NORMAL,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0002 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0002"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0002 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0003 - *des:wordBreak设置属性-1,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0003 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0003"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0003 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0004 - *des:wordBreak默认设置为 wordBreak:WordBreak.NORMAL,更新为不设置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0004 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0004"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0004")); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0004 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0005 - *des:wordBreak更新为WordBreak.BREAK_ALL,更新为不设置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0005', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0005 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0005"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0005")); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0005 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0006 - *des:wordBreak更新为-1,更新为不设置,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0006 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0006"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0006")); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0006 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0007 - *des:wordBreak设置属性wordBreak:WordBreak.NORMAL,数字、 Non-CJK文本(如英文等) 只能在空白符处断行 - CJK(中文、日文、韩文)文本文本可以在任意2个字符间断行 - 图片、 Symbol、表情、特殊符号可以在任意2个字符间断行,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0007 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0007"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0007 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0008 - *des:wordBreak设置属性wordBreak:WordBreak.BREAK_ALL,数字、 Non-CJK文本(如英文等) 只能在空白符处断行 - CJK(中文、日文、韩文)文本文本可以在任意2个字符间断行 - 图片、 Symbol、表情、特殊符号可以在任意2个字符间断行,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0008', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0008 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0008"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0008 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0009 - *des:wordBreak设置属性wordBreak:WordBreak.BREAK_ALL,数字、 Non-CJK文本(如英文等) 只能在空白符处断行 - CJK(中文、日文、韩文)文本文本可以在任意2个字符间断行 - 图片、 Symbol、表情、特殊符号可以在任意2个字符间断行,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0009', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0009 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0009"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0009 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0010 - *des:设置 clip属性为 false.设置wordBreak属性值为NOBMAL, 输入不包含空白符的超长英文文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0010 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0010"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0010 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0011 - *des:设置 RichEditor分别设置workBreak属性为NORMAL、BREAK_AIL、BREAK_WORD - 2、输入 Non-CJK文本(如英文等) 和CJK(中文、日文、韩文)文 - 本混合文本,并使换行处为 Non-CJK文本 - 3、换行处的 Non-CJK文本前为CJK文本 - 4、换行处的 Non-CJK文本前为空格 - 5、换行处的 Non-CJK文本前为换行符,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0011 start.`); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0011"); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0011 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0012 - *des:1、添加RichEditor组件 - 2、输入文本内容,通过updateParagraphStyle设置 workbreak属性为NORMAL - 3、addTextSpan不设置 workbreak属性,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0012 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0012"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0012")); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0012 finish.` + justBtn); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0012 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0013 - *des:1、添加RichEditor组件 - 2、输入文本内容,通过apdateParagraphStyle设置 workbreak属性为NORMAL - 3、addTextSpan设置 workbreak属性为BREAK_AIL,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0013 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0013"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0013")); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0013 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0014 - *des:1、添加RichEditor组件 - 2、输入文本内容,通过updateParagraphStyle设置 workbreak属性为NORMAL - 3、updateParagraphStyle更新部分文本 workbreak属性为 - BREAK_ALL,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0014', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0014 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0014"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0014")); - await richeditor.click(); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0014 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0015 - *des:1、添加RichEditor组件 - 2、addTextSpan设置vordBreak属性为NORMAL - 3、 update?aragraphStyle更新部分文本 workbreak属性为BREAK _ALL_,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0015', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0015 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0015"); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0015")); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0015 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0016 - *des:1、添加RichEditor组件 - 2、设置wordBreak属性值为NORMAL,文本内容同时有 Non-CJK文本(如英文等)和CJK(中文、日文、韩文)文本以及图片、Symbol、表情、数字、特殊符号 - 3、改变组件大小,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0016 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0016"); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0016")); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0016 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0017 - *des:1、添加RichEditor组件 - 2、设置wordBreak属性值为NORMAL,文本内容同时有 Non-CJIS本(如英文等) 和CJK(中文、日文、韩文)文本以及图片、Symbol、表情、数字、特殊符号 - 3、改变字体大小,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0017', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0017 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0017"); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0017")); - await Utils.sleep(1000); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0017 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0018 - *des:1、添加RichEditor组件、 - 2、addTextSpan设置wordBreak属性为NORMAL - 3、通过软件盘删除部分文本,再输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0018', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0018 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0018"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0018")); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0018 start.` + richeditor); - await richeditor.click(); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0018 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0019 - *des:1、添加RichEditor组件、 - 2、addTextSpan设置wordBreak属性为NORMAL - 3、通过软件盘删除全部文本,再输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0019 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0019"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0019")); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0019 start.` + richeditor); - await richeditor.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_DEL); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_7); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_7); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_7); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - ; - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0019 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0020 - *des:1、添加RichEditor组件 - 2、addTextSpan设置wordBreak属性为NORMAL - 3、通过delSpan删除全部textSpan,再输入文本,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0020 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0020"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0020")); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0019 start.` + richeditor); - await richeditor.click(); - let justBtn = await driver.findComponent(ON.id("updateParagraphStyle")); - await justBtn.click(); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_V); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_7); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_7); - await Utils.sleep(100); - await driver.triggerKey(KeyCode.KEYCODE_7); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0020 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0021 - *des:1、添加RichEditor组件 - 2、输入文本内容,设置wordBreak属性值为NORMAL - 3、长按文本内容,点击粘贴,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0021', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0021 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0021"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0021")); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0021 start.` + richeditor); - await richeditor.longClick(); - await Utils.sleep(2000); - let paste = await driver.findComponent(ON.text('粘贴')); - await paste?.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0021 finish.`); - done(); - }) - /** - * NO.SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0022 - *des:1、添加RichEditor组件 - 2、输入文本内容,设置wordBreak属性值为NORMAL - 3、从其他组件拖拽文本到RichEditor,验证效果 - */ - it('SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0022', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0022 start.`); - let driver = Driver.create(); - await Utils.sleep(1000); - Settings.createWindow("testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0022"); - await Utils.sleep(1000); - let richeditor = await driver.findComponent(ON.id("ComponentTextRicheditorWordbreak0022")); - let textArea = await driver.findComponent(ON.id('TextArea')); - await textArea.click(); - await Utils.sleep(1000); - await textArea.click() - await Utils.sleep(1000); - let selectAll = await driver.findComponent(ON.text('全选')) - await selectAll?.click(); - await Utils.sleep(1000); - await textArea.dragTo(richeditor) - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_RICHEDITOR_WORDBREAK_0022 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJiChuSR000HUB4KTest/FunctionJiChuSR000HUB4K.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJiChuSR000HUB4KTest/FunctionJiChuSR000HUB4K.test.ets deleted file mode 100644 index 29b6f449b96ef01b33ea44107f15f38ca6116e83..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJiChuSR000HUB4KTest/FunctionJiChuSR000HUB4K.test.ets +++ /dev/null @@ -1,1062 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * 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 FunctionJiChuSR000HUB4K() { - - describe('FunctionJiChuSR000HUB4K', () => { - - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0120 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0120 - * @tc.desc promptAction message was set to string in the showToast - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0120 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K012"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0120")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0120 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0130 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0130 - * @tc.desc promptAction message was set to string in the showToast - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0130 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K013"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0130")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0130 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0140 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0140 - * @tc.desc promptAction message was set to string in the showToast - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0140 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K014"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0140")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0140 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0150 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0150 - * @tc.desc promptAction message was set to string in the showToast - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0150 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K015"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0150")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0150 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0160 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0160 - * @tc.desc promptAction message was set to string in the showToast - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0160 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K016"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0160")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0160 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0170 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0170 - * @tc.desc promptAction message was set to string in the showToast - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0170 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K017"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0170")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0170 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0180 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0180 - * @tc.desc promptAction message in the showToast command is set to the maximum length - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0180 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K018"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0180")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0180 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0190 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0190 - * @tc.desc promptAction message was set to string in the showToast - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0190 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K019"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0190")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0190 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0250 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0250 - * @tc.desc promptAction alignment in the showDialog is set to Default - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0250 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K025"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0250")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0250 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0200 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0200 - * @tc.desc The non-mandatory value of the non-mandatory parameter in the options object in promptAction showDialog is verified - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0200 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K020"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0200")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0200 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0620 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0620 - * @tc.desc promptAction showActionMenu Specifies that the color parameter under Buttons is set to the Resource type - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0620 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K062"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0620")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0620 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0260 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0260 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0260 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K026"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0260")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0260 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0610 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0610 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0610 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K061"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0610")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0610 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0230 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0230 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0230 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K023"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0230")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0230 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0210 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0210 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0210 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K021"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0210")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0210 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0220 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0220 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0220 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K022"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0220")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0220 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0240 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0240 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0240 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K024"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0240")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0240 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0270 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0270 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0270 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K027"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0270")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0270 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0280 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0280 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0280 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K028"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0280")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0280 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0290 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0290 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0290 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K029"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0290")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0290 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0320 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0320 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0320 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K032"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0320")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0320 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0310 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0310 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0310 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K031"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0310")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0310 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0300 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0300 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0300 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K030"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0300")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0300 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0330 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0330 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0330 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K033"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0330")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0330 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0370 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0370 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0370 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K037"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0370")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0370 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0380 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0380 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0380 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K038"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0380")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0380 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0340 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0340 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0340 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K034"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0340")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0340 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0360 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0360 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0360 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K036"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0360")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0360 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0350 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0350 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0350 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K035"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0350")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0350 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0560 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0560 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0560 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K056"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0560")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0560 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0390 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0390 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0390 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K039"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0390")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0390 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0400 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0400 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0400 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K040"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0400")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0400 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0420 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0420 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0420 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K042"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0420")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0420 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0410 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0410 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0410', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0410 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K041"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0410")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0410 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0430 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0430 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0430 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K043"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0430")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0430 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0450 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0450 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0450 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K045"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0450")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0450 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0440 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0440 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0440', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0440 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K044"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0440")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0440 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0470 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0470 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0470 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K047"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0470")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0470 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0480 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0480 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0480', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0480 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K048"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0480")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0480 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0460 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0460 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0460 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K046"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0460")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0460 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0490 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0490 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0490', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0490 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K049"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0490")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0490 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0500 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0500 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0500 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K050"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0500")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0500 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0520 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0520 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0520 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K052"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0520")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0520 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0510 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0510 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0510 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K051"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0510")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0510 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0530 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0530 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0530 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K053"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0530")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0530 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0540 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0540 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0540 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K054"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0540")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0540 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0550 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0550 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0550 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K055"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0550")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0550 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0580 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0580 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0580', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0580 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K058"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0580")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0580 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0570 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0570 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0570 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K057"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0570")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0570 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0590 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0590 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0590 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K059"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0590")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0590 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0600 - * @tc.name SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0600 - * @tc.desc promptAction alignment in the showDialog is set to Topstart - */ - it('SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0600 start.`); - Settings.createWindow("testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K060"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("FunctionJiChuSR000HUB4K0600")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_FUNCTION_JICHU_SR000HUB4K_0600 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test.ets deleted file mode 100644 index e2b67bdc172852aa4e57d4a08a69a6c80abed03b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function FunctionJichuWaterFlow() { - - describe('FunctionJichuWaterFlow', () => { - - - /* - * @tc.number SUB_ACE_FUNCTION_JICHU_WATERFLOW_0350 - * @tc.name SUB_ACE_FUNCTION_JICHU_WATERFLOW_0350 - * @tc.desc 1、安装hap包 - 2、打开应用 - */ - it('SUB_ACE_FUNCTION_JICHU_WATERFLOW_0350', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_FUNCTION_JICHU_WATERFLOW_0350 start.`); - Settings.createWindow("testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow0350") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_FUNCTION_JICHU_WATERFLOW_0350 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_FUNCTION_JICHU_WATERFLOW_001806 -* @tc.name SUB_ACE_FUNCTION_JICHU_WATERFLOW_001806 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的参数:设置参数footer -*/ - it('SUB_ACE_FUNCTION_JICHU_WATERFLOW_001806', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_FUNCTION_JICHU_WATERFLOW_001806 start.`); - Settings.createWindow("testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow001806") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(100) - let refreshListItem0 :Component = await driver.findComponent(ON.id('FunctionJichuWaterFlow001806_001')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y-400) - await Utils.sleep(1000) - await driver.swipe(pos.x,pos.y,pos.x,pos.y-400) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_FUNCTION_JICHU_WATERFLOW_001806 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets index 0860e1238b7d5125d3247205585c174e61e3e827..52d29fefffc0064950e3da3c02e7bcf739af71d2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/List.test.ets @@ -13,232 +13,129 @@ * limitations under the License. */ -import ComponentTextRicheditorFontfeatures - from './ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeatures.test'; -import ComponentTextRicheditorCustomColors - from './ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColors.test'; -import ComponentTextRicheditorWordbreaks - from './ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreaks.test'; -import ComponentTextRicheditorLongPresstoselectalls - from './ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectalls.test'; -import ComponentTextRicheditorPlaceholderTests - from './ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholderTests.test'; - -import ComponentTextRicheditorCustomkeyBoardAvoidAnceTests - from './ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnceTests.test'; -import ComponentTextRicheditorKeyboardReinForcingTests - from './ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcingTests.test'; -import ComponentTextRicheditorLineHeightLetterSpacingTests - from './ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacingTests.test'; -import ComponentTextRicheditorUxConformanceTests - from './ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformanceTests.test'; -import ComponentTextRicheditorAITests from './ComponentTextRicheditorAITest/ComponentTextRicheditorAITests.test'; -import ComponentTextRicheditorOnWillChangeTests - from './ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChangeTests.test'; -import ComponentTextRicheditorInterfaceTests - from './ComponentTextRicheditorInterface/ComponentTextRicheditorInterfaceTests.test'; -import ComponentTextRicheditorShortKcutKeysTests - from './ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeysTests.test'; - -import UIComponentNavTabsOnWillShow from './UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test'; -import UIComponentNavTabsContentAdapt from './UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test'; -import ArkUITabScrollable from './ArkUITabScrollableTest/ArkUITabScrollable.test'; -import ArkUITabsLabelStylefont from './ArkUITabsLabelStylefontTest/ArkUITabsLabelStylefont.test'; -import ArkUITabsLabelStyleSelectedColor - from './ArkUITabsLabelStyleSelectedColorTest/ArkUITabsLabelStyleSelectedColor.test'; -import ArkUITabsLabelStyleUnselectedColor - from './ArkUITabsLabelStyleUnselectedColorTest/ArkUITabsLabelStyleUnselectedColor.test'; -import UIComponentListAndGridWaterFlowAdd - from './UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test'; -import UIComponentListAndGridWaterSections - from './UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test'; -import UIComponentNavModifier from './UIComponentNavModifierTest/UIComponentNavModifier.test'; -import UIComponentNavTabsAction from './UIComponentNavTabsActionTest/UIComponentNavTabsAction.test'; -import UIComponentNavTabsBlurStyle from './UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test'; -import UIComponentNavTabsCachedCount from './UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test'; -import UIComponentNavTabsImproTrace from './UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test'; -import UIComponentNavTabsInterception from './UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test'; -import UIComponentNavTabsInterface from './UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test'; -import UIComponentNavTabsMirror from './UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test'; -import UIComponentTabTabBarSymbol from './UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test'; -import UIComponentOtherRefreshPromptText - from './UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test'; -import UIComponentOtherRefreshInterface - from './UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test'; -import UIComponentOtherRefreshInterAction - from './UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test'; -import UIComponentOtherRefreshAbility from './UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test'; -import FunctionJichuWaterFlow from './FunctionJichuWaterFlowTest/FunctionJichuWaterFlow.test'; -import UIComponentNavTabsSubTabbarStyle - from './UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test'; -import ArkUITabsVertical from './ArkUITabsVerticalTest/ArkUITabsVertical.test'; -import UIComponentNavTabsHeight from './UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test'; -import UIComponentNavTabsWidth from './UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test'; -import UIComponentNavTabsEdgeeffect from './UIComponentNavTabsEdgeeffectTest/UIComponentNavTabsEdgeeffect.test'; -import UIComponentNavTabsExpandsafearea - from './UIComponentNavTabsExpandsafeareaTest/UIComponentNavTabsExpandsafearea.test'; -import ArkUITabsIconStyleSelectedColor - from './ArkUITabsIconStyleSelectedColorTest/ArkUITabsIconStyleSelectedColor.test'; -import ArkUITabsIconStyleUnselectedColor - from './ArkUITabsIconStyleUnselectedColorTest/ArkUITabsIconStyleUnselectedColor.test'; -import ArkUITabsSingleSelectedcolor from './ArkUITabsSingleSelectedcolorTest/ArkUITabsSingleSelectedcolor.test'; -import ArkUITabsSingleUnselectedcolor from './ArkUITabsSingleUnselectedcolorTest/ArkUITabsSingleUnselectedcolor.test'; -import UIComponentScrollSwiperLayout from './UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test'; -import UIComponentScrollSwiperUx from './UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test'; -import UIComponentScrollSwiperInterface - from './UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test'; -import UIComponentScrollSwiperAcross from './UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test'; -import UIComponentScrollSwiperTeace from './UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test'; -import UIComponentScrollSwiperDisplaycount - from './UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test'; -import UIComponentScrollSwiperArrowHead - from './UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test'; -import UIComponentSpecialComponentsFormComponentTransparent - from './UIComponentSpecialComponentsFormComponentTransparentTest/UIComponentSpecialComponentsFormComponentTransparent.test'; -import UIComponentSpecialComponentsUIExtensionComponentPopupChange - from './UIComponentSpecialComponentsUIExtensionComponentPopupChangeTest/UIComponentSpecialComponentsUIExtensionComponentPopupChange.test'; - -import UIComponentPopupBoxSpecificationsShadow - from './UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test'; -import UIComponentButtonRadioLConic from './UIComponentButtonRadioLConicTest/UIComponentButtonRadioLConic.test'; -import ComponentFunctionLAdvancedComponentsPopupInterface - from './ComponentFunctionLAdvancedComponentsPopupInterfaceTest/ComponentFunctionLAdvancedComponentsPopupInterface.test'; -import UIComponentPopupBoxSpecifications - from './UIComponentPopupBoxSpecificationsTest/UIComponentPopupBoxSpecifications.test'; -import UIComponentButtonStyle from './UIComponentButtonStyleTest/UIComponentButtonStyle.test'; -import UIComponentButtonRadioCustonmizing - from './UIComponentButtonRadioCustonmizingTest/UIComponentButtonRadioCustonmizing.test'; -import UIComponentButtonRadioCheckMark - from './UIComponentButtonRadioCheckMarkTest/UIComponentButtonRadioCheckMark.test'; -import UIComponentButtonSelectAttribute - from './UIComponentButtonSelectAttributeTest/UIComponentButtonSelectAttribute.test'; -import UIComponentFunctionSelectSymbol from './UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol.test'; -import UIComponentButtonSelectControlSize - from './UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize.test'; -import UIComponentButtonSelectDivider from './UIComponentButtonSelectDivider/UIComponentButtonSelectDivider.test'; -import UITestCaseTest from './UITestCaseTest/UITestCaseTest.test'; -import FunctionJiChuSR000HUB4K from './FunctionJiChuSR000HUB4KTest/FunctionJiChuSR000HUB4K.test'; +import UIAttributesStateStylesInterfaceEditableTextThree + from './UIAttributesStateStylesInterfaceEditableTextThreeTest/UIAttributesStateStylesInterfaceEditableTextThree.test'; +import UIComponentAttributeImage from './UIComponentAttributeImageTest/UIComponentAttributeImage.test'; +import StatusManagerBelievable from './StatusManagerBelievableTest/StatusManagerBelievable.test'; +import UIComponentAttributeStringModifyingStyle + from './UIComponentAttributeStringModifyingStyleTest/UIComponentAttributeStringModifyingStyle.test'; +import UIComponentAttributeStringModifyingStyleText + from './UIComponentAttributeStringModifyingStyleTextTest/UIComponentAttributeStringModifyingStyleText.test'; +import UIComponentAttributeUserData from './UIComponentAttributeUserData/UIComponentAttributeUserData.test'; +import UIComponentCreateColor from './UIComponentCreateColorTest/UIComponentCreateColor.test'; +import UIComponentInputKeyboardAvoidMode + from './UIComponentInputKeyboardAvoidModeTest/UIComponentInputKeyboardAvoidMode.test'; +import UIComponentScrollSwiperInterfacemix + from './UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test'; +import UIComponentTextAttributeStringConstructsTest + from './UIComponentTextAttributeStringConstructsTest/UIComponentTextAttributeStringConstructs.test'; +import UIComponentTextAttribute from './UIComponentTextAttributeText/UIComponentTextAttribute.test'; +import UIComponentTextCommonCopyOptionDraggableTest + from './UIComponentTextCommonCopyOptionDraggableTest/UIComponentTextCommonCopyOptionDraggableTest.test'; +import UIComponentTextCommonCustomDrawingSpan + from './UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan.test'; +import UIComponentTextCommonItscaAttributeUpdater + from './UIComponentTextCommonItscaAttributeUpdaterTest/UIComponentTextCommonItscaAttributeUpdater.test'; +import UIComponentTextHyperlinkInteraction + from './UIComponentTextHyperlinkInteractionTest/UIComponentTextHyperlinkInteraction.test'; +import UIComponentTextImagePrivacySensitive + from './UIComponentTextImagePrivacySensitiveTest/UIComponentTextImagePrivacySensitive.test'; +import UIComponentTextInline from './UIComponentTextInlineTest/UIComponentTextInline.test'; +import UIComponentTextInputNumberDecimalTest + from './UIComponentTextInputNumberDecimalTest/UIComponentTextInputNumberDecimalTest.test'; +import UIComponentTextInputSecurityKeyboardScrollTest + from './UIComponentTextInputSecurityKeyboardScrollTest/UIComponentTextInputSecurityKeyboardScrollTest.test'; +import UIComponentTextInput0010 from './UIComponentTextInputTest/UIComponentTextInput.test'; +import UIComponentTextReverseAnalysis from './UIComponentTextReverseAnalysisTest/UIComponentTextReverseAnalysis.test'; +import UIComponentTextTextAreaActionTest + from './UIComponentTextTextAreaActionTest/UIComponentTextTextAreaActionTest.test'; +import UIComponentTextTextAreaEnhancesTest + from './UIComponentTextTextAreaEnhancesTest/UIComponentTextTextAreaEnhancesTest.test'; +import UIComponentTextTextAreaEnterkeyTypeTest + from './UIComponentTextTextAreaEnterkeyTypeTest/UIComponentTextTextAreaEnterkeyTypeTest.test'; +import UIComponentTextTextAreaEvaSaveInputMethodTest + from './UIComponentTextTextAreaEvaSaveInputMethodTest/UIComponentTextTextAreaEvaSaveInputMethodTest.test'; +import UIComponentTextTextAreaInterActionTest + from './UIComponentTextTextAreaInterActionTest/UIComponentTextTextAreaInterActionTest.test'; +import UIComponentTextTextAreaInterActiveTest + from './UIComponentTextTextAreaInterActiveTest/UIComponentTextTextAreaInterActiveTest.test'; +import UIComponentTextTextAreaInterfaceTest + from './UIComponentTextTextAreaInterfaceTest/UIComponentTextTextAreaInterfaceTest.test'; +import UIComponentTextTextAreaLayoutTest + from './UIComponentTextTextAreaLayoutTest/UIComponentTextTextAreaLayoutTest.test'; +import UIComponentTextTextAreaSelectionTest + from './UIComponentTextTextAreaSelectionTest/UIComponentTextTextAreaSelectionTest.test'; +import UIComponentTextTextAreaUxComsistencyTest + from './UIComponentTextTextAreaUxComsistencyTest/UIComponentTextTextAreaUxComsistencyTest.test'; +import UIComponentTextTextEditable from './UIComponentTextTextEditableTest/UIComponentTextTextEditable.test'; +import UIComponentTextTextGestureStyle + from './UIComponentTextTextGestureStyleTest/UIComponentTextTextGestureStyle.test'; +import UIComponentTextTextImageSpanAlt + from './UIComponentTextTextImageSpanAltTest/UIComponentTextTextImageSpanAlt.test'; +import UIComponentTextTextInterface from './UIComponentTextTextInterfaceTest/UIComponentTextTextInterface.test'; +import UIComponentTextTextLongPress from './UIComponentTextTextLongPressTest/UIComponentTextTextLongPress.test'; +import UIComponentTextTextMarquee from './UIComponentTextTextMarqueeTest/UIComponentTextTextMarquee.test'; +import UIComponentTextTextPrivacyMask from './UIComponentTextTextPrivacyMaskTest/UIComponentTextTextPrivacyMask.test'; +import UIComponentTextTextStringParagraphStyle + from './UIComponentTextTextStringParagraphStyleTest/UIComponentTextTextStringParagraphStyle.test'; +import UIComponentTextTextSupportFont from './UIComponentTextTextSupportFontTest/UIComponentTextTextSupportFont.test'; +import UIComponentTextTransparency from './UIComponentTextTransparencyTest/UIComponentTextTransparency.test'; import UIComponentUISupportColor from './UIComponentUISupportColorTest/UIComponentUISupportColor.test'; -import UIComponentButtonCommonButton from './UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test' -import ComponentButtonSelectMenuItemContentModifier - from './ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier.test'; -import UiComponentButtonSelectEnhancement - from './UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement.test'; -import UiComponentButtonSelectAlign from './UiComponentButtonSelectAlign/UiComponentButtonSelectAlign.test'; -import UiComponentPopupboxZero from './UiComponentPopupboxZero/UiComponentPopupboxZero.test'; -import UIComponentPopupboxCalendarpickerInterface - from './UIComponentPopupboxCalendarpickerInterfaceTest/UIComponentPopupboxCalendarpickerInterface.test'; -import UIComponentPopupboxDatepickerDialogLanguageHabit - from './UIComponentPopupboxDatepickerDialogLanguageHabitTest/UIComponentPopupboxDatepickerDialogLanguageHabit.test'; -import TsComponentSR000HRP34 from './TsComponentSR000HRP34Test/TsComponentSR000HRP34Test.test'; -import UiComponentPopupboxDatePickerDialogScenarios - from './UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios.test'; -import UiComponentPopupboxDatePickerDialogInterface - from './UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface.test'; -import UIComponentPopupBoxAttribute from './UIComponentPopupBoxAttributeTest/UIComponentPopupBoxAttribute.test'; -import UIComponentPopupBoxPromptToastSequence - from './UIComponentPopupBoxPromptToastSequenceTest/UIComponentPopupBoxPromptToastSequence.test'; -import UIComponentPopupBoxSpecificationsPopup - from './UIComponentPopupBoxSpecificationsPopupTest/UIComponentPopupBoxSpecificationsPopup.test'; - -import UIComponentPopupBoxPopupInterface001 - from './UIComponentPopupBoxPopupInterfaceTest/UIComponentPopupBoxPopupInterface001.test'; -import UIComponentPopupPromptInterface001 - from './UIComponentPopupPromptInterfaceTest/UIComponentPopupPromptInterface001.test'; -import UIComponentPopupBoxToastStyleInterface001 - from './UIComponentPopupBoxToastStyleInterfaceTest/UIComponentPopupBoxToastStyleInterface001.test'; -import UIComponentPopupBoxFullDialogInterface001 - from './UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test'; +import UICustomTextShortCutKeyReplacement + from './UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement.test'; +import UIComponentTextTextEvasiveInputMethod from './UIComponentTextTextEvasiveInputMethodTest/UIComponentTextTextEvasiveInputMethod.test'; +import UIComponentTextTextAreaOnEditChangeTest + from './UIComponentTextTextAreaOnEditChangeTest/UIComponentTextTextAreaOnEditChangeTest.test'; +import UIComponentCanvasModifier from './UIComponentCanvasModifierTest/UIComponentCanvasModifier.test'; export default function testsuite() { - ComponentTextRicheditorFontfeatures(); - ComponentTextRicheditorCustomColors(); - ComponentTextRicheditorWordbreaks(); - ComponentTextRicheditorLongPresstoselectalls(); - ComponentTextRicheditorPlaceholderTests(); - ComponentTextRicheditorCustomkeyBoardAvoidAnceTests(); - ComponentTextRicheditorKeyboardReinForcingTests(); - ComponentTextRicheditorLineHeightLetterSpacingTests(); - ComponentTextRicheditorUxConformanceTests(); - ComponentTextRicheditorAITests(); - ComponentTextRicheditorOnWillChangeTests(); - ComponentTextRicheditorInterfaceTests(); - ComponentTextRicheditorShortKcutKeysTests(); - - UIComponentNavTabsOnWillShow(); - UIComponentNavTabsContentAdapt(); - ArkUITabScrollable(); - ArkUITabsLabelStylefont(); - ArkUITabsLabelStyleSelectedColor(); - ArkUITabsLabelStyleUnselectedColor(); - UIComponentListAndGridWaterFlowAdd(); - UIComponentListAndGridWaterSections(); - UIComponentNavModifier(); - UIComponentNavTabsAction(); - UIComponentNavTabsBlurStyle(); - UIComponentNavTabsCachedCount(); - UIComponentNavTabsImproTrace(); - UIComponentNavTabsInterception(); - UIComponentNavTabsInterface(); - UIComponentNavTabsMirror(); - UIComponentTabTabBarSymbol(); - UIComponentOtherRefreshPromptText(); - UIComponentOtherRefreshInterface(); - UIComponentOtherRefreshInterAction(); - UIComponentOtherRefreshAbility(); - FunctionJichuWaterFlow(); - UIComponentNavTabsSubTabbarStyle(); - ArkUITabsVertical(); - UIComponentNavTabsHeight(); - UIComponentNavTabsWidth(); - UIComponentNavTabsEdgeeffect(); - UIComponentNavTabsExpandsafearea(); - ArkUITabsIconStyleSelectedColor(); - ArkUITabsIconStyleUnselectedColor(); - ArkUITabsSingleSelectedcolor(); - ArkUITabsSingleUnselectedcolor(); - - UIComponentScrollSwiperLayout(); - UIComponentScrollSwiperUx(); - UIComponentScrollSwiperInterface(); - UIComponentScrollSwiperAcross(); - UIComponentScrollSwiperTeace(); - UIComponentScrollSwiperDisplaycount(); - UIComponentScrollSwiperArrowHead(); - - UIComponentPopupBoxFullDialogInterface001(); - UIComponentPopupBoxToastStyleInterface001(); - UIComponentPopupPromptInterface001(); - UIComponentPopupBoxPopupInterface001(); - UIComponentButtonStyle(); - UIComponentButtonRadioLConic(); - ComponentFunctionLAdvancedComponentsPopupInterface(); - UIComponentPopupBoxSpecifications(); - UIComponentButtonRadioCustonmizing(); - UIComponentButtonRadioCheckMark(); - UIComponentButtonSelectAttribute(); - UIComponentSpecialComponentsFormComponentTransparent(); - UIComponentSpecialComponentsUIExtensionComponentPopupChange(); - UIComponentPopupBoxSpecificationsShadow(); - UIComponentFunctionSelectSymbol(); - UIComponentButtonSelectControlSize(); - UIComponentButtonSelectDivider(); - UITestCaseTest(); - FunctionJiChuSR000HUB4K(); + UIComponentAttributeImage(); + StatusManagerBelievable(); + UIComponentAttributeStringModifyingStyle(); + UIComponentAttributeStringModifyingStyleText(); + UIComponentTextAttributeStringConstructsTest(); + UIComponentTextCommonCustomDrawingSpan(); + UIComponentTextCommonItscaAttributeUpdater(); + UIComponentTextImagePrivacySensitive(); + UIComponentTextTextEditable(); + UIComponentTextTextGestureStyle(); + UIComponentTextTextImageSpanAlt(); + UIComponentTextTextInterface(); + UIComponentTextTextLongPress(); + UIComponentTextTextMarquee(); + UIComponentTextTextPrivacyMask(); + UIComponentTextTextStringParagraphStyle(); UIComponentUISupportColor(); - UIComponentButtonCommonButton(); - ComponentButtonSelectMenuItemContentModifier(); - UiComponentButtonSelectEnhancement(); - UiComponentButtonSelectAlign(); - UiComponentPopupboxZero(); - UIComponentPopupboxCalendarpickerInterface(); - UIComponentPopupboxDatepickerDialogLanguageHabit(); - TsComponentSR000HRP34(); - UiComponentPopupboxDatePickerDialogScenarios(); - UiComponentPopupboxDatePickerDialogInterface(); - UIComponentPopupBoxAttribute(); - UIComponentPopupBoxPromptToastSequence(); - UIComponentPopupBoxSpecificationsPopup(); + UIComponentTextTransparency(); + UIAttributesStateStylesInterfaceEditableTextThree(); + UIComponentCreateColor(); + + UIComponentTextInput0010(); + UIComponentScrollSwiperInterfacemix(); + UIComponentTextAttribute(); + UIComponentTextTextAreaActionTest(); + UIComponentTextTextAreaEnterkeyTypeTest(); + UIComponentTextTextAreaEvaSaveInputMethodTest(); + UIComponentTextTextAreaInterActiveTest(); + UIComponentTextTextAreaInterfaceTest(); + UIComponentTextTextAreaLayoutTest(); + UIComponentTextTextAreaSelectionTest(); + UIComponentTextInputNumberDecimalTest(); + UIComponentTextInputSecurityKeyboardScrollTest(); + UIComponentTextTextAreaUxComsistencyTest(); + UIComponentTextCommonCopyOptionDraggableTest(); + UIComponentTextTextAreaEnhancesTest(); + UIComponentTextTextAreaInterActionTest(); + UIComponentTextTextSupportFont(); + UIComponentAttributeUserData(); + UICustomTextShortCutKeyReplacement(); + UIComponentTextHyperlinkInteraction(); + UIComponentTextInline(); + UIComponentTextReverseAnalysis(); + UIComponentInputKeyboardAvoidMode(); + UIComponentTextTextEvasiveInputMethod(); + UIComponentTextTextAreaOnEditChangeTest(); + UIComponentCanvasModifier(); } diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerBelievableTest/StatusManagerBelievable.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerBelievableTest/StatusManagerBelievable.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..373ebfb5c406b928ffa32848442665e195b5da83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/StatusManagerBelievableTest/StatusManagerBelievable.test.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 { afterEach, beforeEach, 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 { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function StatusManagerBelievable() { + + describe('StatusManagerBelievable', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_STATUSMANAGER_BELIEVABLE_0010 + * @tc.name : SUB_ACE_STATUSMANAGER_BELIEVABLE_0010 + */ + it('SUB_ACE_STATUSMANAGER_BELIEVABLE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_STATUSMANAGER_BELIEVABLE_0010 start.`); + Settings.createWindow("testability/pages/StatusManagerBelievable/StatusManagerBelievable0010"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_STATUSMANAGER_BELIEVABLE_0010 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test.test.ets deleted file mode 100644 index 598039d5eecc36bea43452748148796b6d1280ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test.test.ets +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@kit.TestKit' -import { KeyCode } from '@kit.InputKit' - -/* - * TsComponentSR000HRP34 - * - * 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 TsComponentSR000HRP34() { - - describe('TsComponentSR000HRP34', () => { - - - /* - * @tc.number SUB_ACE_TS_COMPONENT_SR000HRP34_124 - * @tc.name SUB_ACE_TS_COMPONENT_SR000HRP34_124 - * @tc.desc Regular call: DatePickerDialog-textStyle-PickerTextStyle-color-Color.Blue - */ - it('SUB_ACE_TS_COMPONENT_SR000HRP34_124', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_124 start.`); - Settings.createWindow("testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test124") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('TsComponentSR000HRP34_124_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_124 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_TS_COMPONENT_SR000HRP34_125 - * @tc.name SUB_ACE_TS_COMPONENT_SR000HRP34_125 - * @tc.desc Regular call: DatePickerDialog-textStyle-PickerTextStyle-color-0x0000ff - */ - it('SUB_ACE_TS_COMPONENT_SR000HRP34_125', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_125 start.`); - Settings.createWindow("testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test125") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('TsComponentSR000HRP34_125_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_125 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_TS_COMPONENT_SR000HRP34_126 - * @tc.name SUB_ACE_TS_COMPONENT_SR000HRP34_126 - * @tc.desc Regular call: DatePickerDialog-textStyle-PickerTextStyle-color-"rgb(255,0,0)" - */ - it('SUB_ACE_TS_COMPONENT_SR000HRP34_126', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_126 start.`); - Settings.createWindow("testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test126") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('TsComponentSR000HRP34_126_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_126 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_TS_COMPONENT_SR000HRP34_127 - * @tc.name SUB_ACE_TS_COMPONENT_SR000HRP34_127 - * @tc.desc Regular call: DatePickerDialog-textStyle-PickerTextStyle-color-$r(app.color blue) - */ - it('SUB_ACE_TS_COMPONENT_SR000HRP34_127', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_127 start.`); - Settings.createWindow("testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test127") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('TsComponentSR000HRP34_127_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_TS_COMPONENT_SR000HRP34_127 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceEditableTextThreeTest/UIAttributesStateStylesInterfaceEditableTextThree.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceEditableTextThreeTest/UIAttributesStateStylesInterfaceEditableTextThree.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..5ed21f99605d148924dc0a83a0959fe1090345da --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIAttributesStateStylesInterfaceEditableTextThreeTest/UIAttributesStateStylesInterfaceEditableTextThree.test.ets @@ -0,0 +1,388 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Driver, ON } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIAttributesStateStylesInterfaceEditableTextThree() { + + describe('UIAttributesStateStylesInterfaceEditableTextThree', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0320 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0320 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0320 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree032"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(500); + let component = await driver.findComponent(ON.id('inputComponent')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0320 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0610 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0610 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0610 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree061"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(500); + let component = await driver.findComponent(ON.id('textAreaComponent')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0610 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_1 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_1 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_1 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree075"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_1 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_2 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_2 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_2 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree075"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('searchComponent')); + let clearFocus = await driver.findComponent(ON.id('clearFocus')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(1000); + clearFocus.click(); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0750_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0900 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0900 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0900 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree090"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0900 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0920 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0920 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0920', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0920 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree092"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(500); + await driver.triggerKey(KeyCode.KEYCODE_1); + await Utils.sleep(500); + await driver.triggerKey(KeyCode.KEYCODE_2); + await Utils.sleep(500); + await driver.triggerKey(KeyCode.KEYCODE_2); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_0920 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1010 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1010 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1010 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree101"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1040 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1040 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1040 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree104"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + await Utils.sleep(500); + component.click(); + await Utils.sleep(500); + await component.inputText('123456123456123456'); + await Utils.sleep(500); + await component.longClick(); + await Utils.sleep(1000); + let selectAll = await driver.findComponent(ON.text('全选')); + await selectAll?.click(); + await Utils.sleep(500); + let copy = await driver.findComponent(ON.text('复制')); + await copy?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1040 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_1 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_1 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_1 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree105"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + await Utils.sleep(500); + component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_1 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_2 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_2 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_2 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree105"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + let clearFocus = await driver.findComponent(ON.id('clearFocus')); + await Utils.sleep(500); + component.click(); + await Utils.sleep(500); + clearFocus.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1050_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1060 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1060 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1060 start.`); + Settings.createWindow( + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/" + + "UIAttributesStateStylesInterfaceEditableTextThree106"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + await Utils.sleep(500); + await component.longClick(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1060 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1130 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1130 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1130 start.`); + Settings.createWindow( + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/" + + "UIAttributesStateStylesInterfaceEditableTextThree106"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(1000); + + await driver.pressBack(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1130 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1170 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1170 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1170 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree117"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + await Utils.sleep(500); + component.click(); + await Utils.sleep(1000); + let closeButton = await driver.findComponent(ON.id('closeButton')); + await Utils.sleep(1000); + closeButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1170 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1200 + * @tc.name : SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1200 + * @tc.desc : Bind custom keyboard + */ + it('SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1200 start.`); + Settings.createWindow("testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree120"); + await Utils.sleep(1000); + let driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id('richEditorComponent')); + await Utils.sleep(500); + component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_STATESTYLES_INTERFACE_EDITABLETEXTTHREE_1200 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeImageTest/UIComponentAttributeImage.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeImageTest/UIComponentAttributeImage.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c44381e44a1a7ced3882748a462e8984f5f04d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeImageTest/UIComponentAttributeImage.test.ets @@ -0,0 +1,378 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentAttributeImage001() { + + describe('UIComponentAttributeImage001', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SPAN_BASELINEOFFSET_0010 + * @tc.name SUB_ACE_UI_COMPONENT_SPAN_BASELINEOFFSET_0010 + * @tc.desc Set Picture + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage001"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0020 + * @tc.desc Set image size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage002"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0030 + * @tc.desc Set image size + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage003"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0040 + * @tc.desc Set the zoom type of the image + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage004"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0050 + * @tc.desc Set the outer margin + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage005"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0060 + * @tc.desc Set the outer margin + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage006"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0070 + * @tc.desc padding + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage007"); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0080 + * @tc.desc Display images as spaces + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage008"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0080 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0090 + * @tc.desc The character length of the image is 1 + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage009"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0100 + * @tc.desc Can display images + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage010"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0110 + * @tc.desc The image has been cleared + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage011"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage011")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0120 + * @tc.desc String removed + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage012"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage012")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0130 + * @tc.desc The image has been cleared + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage013"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage013")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0140 + * @tc.desc Clear the specified range style + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0140 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage014"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage014")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0150 + * @tc.desc Clear all styles + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage015"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage015")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0160 + * @tc.desc Replace the image + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage016"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage016")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0170 + * @tc.desc Insert picture + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0170 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage017"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage017")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0180 + * @tc.desc Insert image at the end + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0180 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeImage/UIComponentAttributeImage018"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("UIComponentAttributeImage018")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_IMAGE_0180 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeStringModifyingStyleTest/UIComponentAttributeStringModifyingStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeStringModifyingStyleTest/UIComponentAttributeStringModifyingStyle.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..afb4745cba2074e3053d2fcf7dc69531e35a243c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeStringModifyingStyleTest/UIComponentAttributeStringModifyingStyle.test.ets @@ -0,0 +1,154 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentAttributeStringModifyingStyle() { + + describe('UIComponentAttributeStringModifyingStyle', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0150 + * @tc.desc Clear specified range and specify style + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle015"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button = await driver.findComponent(ON.id("UIComponentAttributeStringModifyingStyle015")); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0160 + * @tc.desc Clear specified range and specify style + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0160 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle016"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button = await driver.findComponent(ON.id("UIComponentAttributeStringModifyingStyle016")); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0220 + * @tc.desc Clear specified range and specify style + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0220 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle022"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button = await driver.findComponent(ON.id("UIComponentAttributeStringModifyingStyle022")); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0230 + * @tc.desc Clear all styles within the specified range + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0230 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle023"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button = await driver.findComponent(ON.id("UIComponentAttributeStringModifyingStyle023")); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0230 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0120 + * @tc.desc Clear all styles within the specified range + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle0120"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let insertButton = await driver.findComponent(ON.id("insert")); + insertButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_0120 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeStringModifyingStyleTextTest/UIComponentAttributeStringModifyingStyleText.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeStringModifyingStyleTextTest/UIComponentAttributeStringModifyingStyleText.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..b49c1bf9fe083cf606cfc2d6f1ddbf8e1a8db597 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeStringModifyingStyleTextTest/UIComponentAttributeStringModifyingStyleText.test.ets @@ -0,0 +1,152 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentAttributeStringModifyingStyleText() { + + describe('UIComponentAttributeStringModifyingStyleText', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0230 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0230 + * @tc.desc Set multiple insertions and character deletions + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0230 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText023"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let insertButton = await driver.findComponent(ON.id("insert")); + let deleteButton = await driver.findComponent(ON.id("delete")); + insertButton.click(); + await Utils.sleep(2000); + deleteButton.click(); + await Utils.sleep(2000); + insertButton.click(); + await Utils.sleep(2000); + insertButton.click(); + await Utils.sleep(2000); + deleteButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0230 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0090 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0090 + * @tc.desc Set multiple insertions and character deletions + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0090 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0090"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let insertButton = await driver.findComponent(ON.id("insert")); + insertButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0090 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0100 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0100 + * @tc.desc Set multiple insertions and character deletions + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0100 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0100"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let insertButton = await driver.findComponent(ON.id("insert")); + insertButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0100 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0110 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0110 + * @tc.desc Set multiple insertions and character deletions + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0110 start.`); + Settings.createWindow( + "testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText011" + ); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let insertButton = await driver.findComponent(ON.id("insert")); + let getString = await driver.findComponent(ON.id("getString")); + let getLength = await driver.findComponent(ON.id("getLength")); + let getStyles = await driver.findComponent(ON.id("getStyles")); + await insertButton.click(); + await Utils.sleep(2000); + await getString.click(); + await Utils.sleep(2000); + await getLength.click(); + await Utils.sleep(2000); + await getStyles.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_STRING_MODIFYING_STYLE_TEXT_0110 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeUserData/UIComponentAttributeUserData.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeUserData/UIComponentAttributeUserData.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..614b0dc4338e8e167bb03d1cd8937e8edd713846 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentAttributeUserData/UIComponentAttributeUserData.test.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 { afterEach, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentAttributeUserData() { + + describe('UIComponentAttributeUserData', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_ATTRIBUTE_USERDATA_0030 + * @tc.name SUB_ACE_UI_COMPONENT_ATTRIBUTE_USERDATA_0030 + * @tc.desc ATSpan + */ + it('SUB_ACE_UI_COMPONENT_ATTRIBUTE_USERDATA_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_USERDATA_0030 start.`); + Settings.createWindow("testability/pages/UIComponentAttributeUserData/UIComponentAttributeUserData0030"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let button = await driver.findComponent(ON.id("getStlye")); + await button.click(); + await Utils.sleep(1000); + let button1 = await driver.findComponent(ON.id("getStlye1")); + await button1.click(); + await Utils.sleep(1000); + let button2 = await driver.findComponent(ON.id("getStlye2")); + await button2.click(); + await Utils.sleep(1000); + let button3 = await driver.findComponent(ON.id("getStlye3")); + await button3.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_ATTRIBUTE_USERDATA_0030 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets deleted file mode 100644 index f0efa3c97bfacd96c3d9e5e209bda39d486bd476..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonCommonButtonTest/UIComponentButtonCommonButton.test.ets +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * UIComponentButtonCommonButton - * - * 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 UIComponentButtonCommonButton() { - - describe('UIComponentButtonCommonButton', () => { - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330 - * @tc.desc : Verify the Radio component and test whether the modifier configuration is the same as the original configuration when parameter index=1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton033"); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0330 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0340 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0340 - * @tc.desc : Verify the Radio component and test whether the modifier configuration is the same as the original configuration when parameter index=2 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0340 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton034"); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0340 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0350 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0350 - * @tc.desc : Verify the Radio component and test whether the modifier configuration is the same as the original configuration when parameter index=3 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0350 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton035"); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0350 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0360 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0360 - * @tc.desc : Verify the Radio component and test whether the modifier configuration is the same as the original configuration when parameter index=4 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0360 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton036"); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0360 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0370 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0370 - * @tc.desc : Verify the Rating component and test whether the modifier configuration is the same as the original configuration when parameter index=1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0370 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton037"); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0370 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0380 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0380 - * @tc.desc : Verify the Rating component and test whether the modifier configuration is the same as the original configuration when parameter index=2 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0380 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton038"); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0380 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0390 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0390 - * @tc.desc : Verify the Rating component and test whether the modifier configuration is the same as the original configuration when parameter index=3 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0390 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton039"); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0390 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_1 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_1 - * @tc.desc : Verify the Rating component and test whether the modifier configuration is the same as the original configuration when parameter index=1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_1 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton040"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonCommonButton0400")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_1 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_2 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_2 - * @tc.desc : Verify the Rating component and test whether the modifier configuration is the same as the original configuration when parameter index=1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_2 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton040"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonCommonButton0401")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0400_2 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_1 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_1 - * @tc.desc : Verify the Rating component and test whether the modifier configuration is the same as the original configuration when parameter index=2 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_1 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton041"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonCommonButton0410")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_1 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2 - * @tc.desc : Verify the Rating component and test whether the modifier configuration is the same as the original configuration when parameter index=2 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2 start.`); - Settings.createWindow("testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton041"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonCommonButton0411")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - await windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_COMMON_BUTTON_0410_2 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioCheckMarkTest/UIComponentButtonRadioCheckMark.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioCheckMarkTest/UIComponentButtonRadioCheckMark.test.ets deleted file mode 100644 index 733cd861823dfc0c13becfe22e5d7a38edf581b5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioCheckMarkTest/UIComponentButtonRadioCheckMark.test.ets +++ /dev/null @@ -1,228 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * 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 UIComponentButtonRadioCheckMark() { - - describe('UIComponentButtonRadioCheckMark', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0030 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0030 - * @tc.desc Radio Indicates the selected type and the press state - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0030 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark003"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0030")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.longClick(pointButtonCenter.x, pointButtonCenter.y) - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0030 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0010 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0010 - * @tc.desc Radio is selected for the selected type - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0010 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark001"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0010 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0080 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0080 - * @tc.desc Radio Indicates the selected type and the press state - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0080 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark008"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0080")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.longClick(pointButtonCenter.x, pointButtonCenter.y) - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0080 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0060 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0060 - * @tc.desc Radio is selected for the selected type - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0060 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark006"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0060 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0050 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0050 - * @tc.desc Radio is selected for the selected type - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0050 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark005"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0050 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0100 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0100 - * @tc.desc Radio is selected for the selected type - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0100 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark010"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0100 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0130 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0130 - * @tc.desc Radio is selected for the selected type - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0130 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark013"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let backgroundColorButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0130")); - let borderColorButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0131")); - let indicatorColorButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0132")); - let backgroundColorButtonCenter = await backgroundColorButtonCom.getBoundsCenter(); - let borderColorButtonCenter = await borderColorButtonCom.getBoundsCenter(); - let indicatorColorButtonCenter = await indicatorColorButtonCom.getBoundsCenter(); - await driver.click(backgroundColorButtonCenter.x, backgroundColorButtonCenter.y) - await Utils.sleep(1000); - await driver.click(borderColorButtonCenter.x, borderColorButtonCenter.y) - await Utils.sleep(1000); - await driver.click(indicatorColorButtonCenter.x, indicatorColorButtonCenter.y) - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0130 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0140 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0140 - * @tc.desc Radio Left unchecked for check type, non-select status Stroke color - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0140 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark014"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let backgroundColorButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0140")); - let borderColorButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0141")); - let indicatorColorButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCheckMark0142")); - let backgroundColorButtonCenter = await backgroundColorButtonCom.getBoundsCenter(); - let borderColorButtonCenter = await borderColorButtonCom.getBoundsCenter(); - let indicatorColorButtonCenter = await indicatorColorButtonCom.getBoundsCenter(); - await driver.click(backgroundColorButtonCenter.x, backgroundColorButtonCenter.y) - await Utils.sleep(1000); - await driver.click(borderColorButtonCenter.x, borderColorButtonCenter.y) - await Utils.sleep(1000); - await driver.click(indicatorColorButtonCenter.x, indicatorColorButtonCenter.y) - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0140 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0110 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0110 - * @tc.desc Radio component. Set the checked property to true - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0110 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark011"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0110 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0120 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0120 - * @tc.desc Radio component. Set the checked property to false - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CHECKMARK_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0120 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark012"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADI0_CHECKMARK_0120 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioCustonmizingTest/UIComponentButtonRadioCustonmizing.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioCustonmizingTest/UIComponentButtonRadioCustonmizing.test.ets deleted file mode 100644 index 7bb67ae5dd534e63672608028d4fb1292b804d54..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioCustonmizingTest/UIComponentButtonRadioCustonmizing.test.ets +++ /dev/null @@ -1,362 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' -import { KeyCode } from '@kit.InputKit' -import { BusinessError, screenLock } from '@kit.BasicServicesKit' - -/* - * 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 UIComponentButtonRadioCustonmizing() { - - describe('UIComponentButtonRadioCustonmizing', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_003 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_003 - * @tc.desc Custom buildRadio, in Raido value passed in the string "Radio", enable set to false; value is empty, and the radio component is not clickable - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_003', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_003 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing003"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0033")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_003 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_008 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_008 - * @tc.desc Custom buildRadio, set triggerChange to nul - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_008', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_008 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing008"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0082")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_008 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_002 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_002 - * @tc.desc Custom buildRadio, in Radio value is passed to the string "",checked:false,value is displayed as empty, radio is not selected - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_002', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_002 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing002"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0022")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_002 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_006 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_006 - * @tc.desc To customize buildRadio, use triggerChange to select the status change - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_006', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_006 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing006"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0066")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_006 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_009 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_009 - * @tc.desc Custom buildRadio, triggerChange is set to undefined - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_009', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_009 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing009"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0092")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_009 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_001 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_001 - * @tc.desc Custom buildRadio,value passed the string "Radio1", checked: true, value can be displayed normally, radio is clicked state - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_001', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_001 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing001"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0010")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_001 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_007 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_007 - * @tc.desc Custom buildRadio, using triggerChange, set onchange events to radio, triggerChange can trigger onchange - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_007', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_007 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing007"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let buttonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing00761")); - let circleCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing00760")); - let pointButtonCenter = await buttonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - await circleCom.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_007 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_005 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_005 - * @tc.desc Custom buildRadio, value is passed undefined in Radio,checked: undefined value is displayed as empty, radio component is not selected medium - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_005', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_005 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing005"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let buttonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0055")); - let pointButtonCenter = await buttonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_005 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_004 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_004 - * @tc.desc Custom buildRadio,Radio value passed to null checked:null; value is empty and the radio component is unchecked - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_004 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing004"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let buttonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0044")); - let pointButtonCenter = await buttonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_004 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_012 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_012 - * @tc.desc Custom buildRadio, not set - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_012', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_012 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing012"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let buttonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0120")); - let pointButtonCenter = await buttonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_012 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_010 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_010 - * @tc.desc Custom buildRadio, contentModifier set to undefined - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_010 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing010"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let buttonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0100")); - let pointButtonCenter = await buttonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_010 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_011 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_011 - * @tc.desc Custom buildRadio, contentModifier set to null - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_011', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_011 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing011"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let buttonCom = await driver.findComponent(ON.id("UIComponentButtonRadioCustonmizing0110")); - let pointButtonCenter = await buttonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_011 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_017 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_017 - * @tc.desc Call contentModifer twice for the last setting to take effect - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_017', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_017 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing017"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_017 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_016 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_016 - * @tc.desc Custom buildRadio, verify that the Radio component switches the program to the table and back after the program starts, and the program continues as normal - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_016', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_016 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing016"); - let driver: Driver = Driver.create(); - await Utils.sleep(5000); - let currentWindow = await Settings.windowClass; - if (currentWindow) { - await currentWindow.hide(); - await driver.triggerKey(KeyCode.KEYCODE_HOME); - await Utils.sleep(2000); - await currentWindow.showWindow(); - } - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_016 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_016 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_016 - * @tc.desc Custom buildRadio to verify how the Radio component looks when the screen is lit up after the breath screen - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_013 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing013"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - await Utils.sleep(1000); - 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); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_CUSTONMIZING_013 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioLConicTest/UIComponentButtonRadioLConic.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioLConicTest/UIComponentButtonRadioLConic.test.ets deleted file mode 100644 index 9eb3d8b32cf50994d20f21728f5625f9d2599524..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonRadioLConicTest/UIComponentButtonRadioLConic.test.ets +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' -import { BusinessError, screenLock } from '@kit.BasicServicesKit' -import { KeyCode } from '@kit.InputKit' - -/* - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ - -export default function UIComponentButtonRadioLConic() { - - describe('UIComponentButtonRadioLConic', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_013 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_013 - * @tc.desc set radioStyle.checkedBackgroundColor - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_013', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_013 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic013"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0130")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_013 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_025 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_025 - * @tc.desc set indicatorType: RadioIndicatorType.TICK, indicatorBuilder: null in Breath screen and light screen - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_025', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_025 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic025"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0250")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_025 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_020 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_020 - * @tc.desc indicatorBuilder is set to image, indicatorColor is set to Pink, Radio is set to 50vp,image is passed 20vp image - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_020 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic020"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0200")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_020 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_022 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_022 - * @tc.desc Radio indicatorType is passed in TICK, builder is passed in image - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_022', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_022 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic022"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0220")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_022 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_008 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_008 - * @tc.desc indicatorBuilder is set to image,Radio does not set the size, image is 100 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_008', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_008 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic008"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0080")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_008 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_024 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_024 - * @tc.desc indicatorBuilder is set to undefined,Radio selected style is checkmark style - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_024', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_024 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic024"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0240")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_024 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_019 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_019 - * @tc.desc indicatorBuilder value is set to image,indicatorColor is set to Pink,Radio is set to 50,image is passed 100vp image - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_019 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic019"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0190")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_019 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_009 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_009 - * @tc.desc indicatorBuilder value is set to image,Radio does not set the size, image is set to 10 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_009', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_009 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic009"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0090")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_009 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_030 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_030 - * @tc.desc indicatorBuilder is set to image, Radio is set to 50,image is set to 100 and clip is set to true - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_030 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic030"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0300")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_030 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_031 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_031 - * @tc.desc indicatorBuilder value is set to image, image is set according to the percentage, passing 20% of the image - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_031', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_031 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic031"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0310")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_031 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_028 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_028 - * @tc.desc indicatorBuilder is set to button1, bind the click event, click the button, button becomes selected - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_028', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_028 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic028"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - await Utils.sleep(5000); - let currentWindow = await Settings.windowClass; - if (currentWindow) { - await currentWindow.hide(); - await driver.triggerKey(KeyCode.KEYCODE_HOME); - await Utils.sleep(2000); - await currentWindow.showWindow(); - } - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_028 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_027 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_027 - * @tc.desc set TICK、DOT style and Image Component in screen lock(unlock) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_027', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_027 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic027"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - await Utils.sleep(1000); - 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); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_027 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_004 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_004 - * @tc.desc indicatorBuilder is set to image,Radio does not set the size, image is 100 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_004', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_004 start.`); - Settings.createWindow("testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic004"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let RadioCom = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0040")); - let RadioCom1 = await driver.findComponent(ON.id("UIComponentButtonRadioLConic0041")); - let pointRadioCenter = await RadioCom.getBoundsCenter(); - let pointRadioCenter1 = await RadioCom1.getBoundsCenter(); - await driver.click(pointRadioCenter.x, pointRadioCenter.y); - await Utils.sleep(1000); - await driver.click(pointRadioCenter1.x, pointRadioCenter1.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_RADIO_LCONIC_004 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectAttributeTest/UIComponentButtonSelectAttribute.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectAttributeTest/UIComponentButtonSelectAttribute.test.ets deleted file mode 100644 index 4829146bb2250917c0b73161b49b8de7038b2d58..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectAttributeTest/UIComponentButtonSelectAttribute.test.ets +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * 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 UIComponentButtonSelectAttribute() { - - describe('UIComponentButtonSelectAttribute', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_1 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_1 - * @tc.desc By default, the selected item is the first - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_1 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute032"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0320")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_1 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_2 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_2 - * @tc.desc Click the mask layer to exit, and the content of the drop-down button will not change - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_2 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute032"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0320")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0320_2 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_1 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_1 - * @tc.desc By default, the selected item is the first - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_1 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute034"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0340")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_1 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_2 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_2 - * @tc.desc Click the mask layer to exit, and the content of the drop-down button will not change - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_2 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute034"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0340")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0340_2 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_1 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_1 - * @tc.desc By default, the selected item is the first - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_1 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute031"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0310")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_1 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_2 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_2 - * @tc.desc Click the mask layer to exit, and the content of the drop-down button will not change - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_2 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute031"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0310")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0310_2 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_1 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_1 - * @tc.desc By default, the selected item is the first - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_1 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute033"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0330")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_1 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_2 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_2 - * @tc.desc Click the mask layer to exit, and the content of the drop-down button will not change - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_2 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute033"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0330")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0330_2 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_1 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_1 - * @tc.desc By default, the selected item is the first - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_1 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute035"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0350")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_1 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_2 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_2 - * @tc.desc Click the mask layer to exit, and the content of the drop-down button will not change - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_2 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute035"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonSelectAttribute0350")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0350_2 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0040 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0040 - * @tc.desc The attribute font-size is set to number - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute004"); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ATTRIBUTE_0040 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize.test.ets deleted file mode 100644 index b9bf9012ec41351d96528bd05ca298b03a970b1f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize.test.ets +++ /dev/null @@ -1,1688 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * UIComponentButtonSelectControlSize - * - * 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 UIComponentButtonSelectControlSize() { - - describe('UIComponentButtonSelectControlSize', () => { - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0020 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0020 - * @tc.desc : select尺寸为NORMAL时,UX展示效果 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0020 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0020") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0020 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0030 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0030 - * @tc.desc : select尺寸为NORMAL时,width设置大于66vp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0030") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0030 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0040 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0040 - * @tc.desc : select尺寸为NORMAL时,width设置小于66vp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0040") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0040 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0050 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0050 - * @tc.desc : select尺寸为NORMAL时,width异常值:undefined/null/-1/"" - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0050 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0050") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0050 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0060 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0060 - * @tc.desc : select尺寸为NORMAL时,width默认值是否与66vp一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0060 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0060") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0060 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0070 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0070 - * @tc.desc : 尺寸NORMAL,Width不设置 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0070 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0070") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0070 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0080 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0080 - * @tc.desc : select尺寸为NORMAL时,borderStyle四条边设置相同 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0080 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0080") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0080 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0090 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0090 - * @tc.desc : select尺寸为NORMAL时,borderStyle四条边设置不同 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0090 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0090") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0090 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0100 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0100 - * @tc.desc : select尺寸为NORMAL时borderstyle默认值是否与Solid一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0100 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0100") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0100 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0110 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0110 - * @tc.desc : select尺寸为NORMAL时borderStyle不设置时是否和之前版本一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0110 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0110") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0110 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0120 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0120 - * @tc.desc : select尺寸为NORMAL时,borderRadius正常值20 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0120 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0120") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0120 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0130 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0130 - * @tc.desc : select尺寸为NORMAL时borderRadius大于高度的一半500 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0130 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0130") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0130 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0140 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0140 - * @tc.desc : select尺寸为NORMAL时borderRadius设置异常值-1/10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0140 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0140") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0140 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0150 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0150 - * @tc.desc : select尺寸为NORMAL时borderRadius设置异常值null/undefined - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0150 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0150") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0150 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0160 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0160 - * @tc.desc : select尺寸为NORMAL,borderRadius默认值是否和20一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0160 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0160") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0160 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0170 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0170 - * @tc.desc : select尺寸为NORMAL时,font正常值 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0170 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0170") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0170 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0180 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0180 - * @tc.desc : select尺寸为NORMAL时,size异常值-10/null/undefined/10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0180 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0180") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0180 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0190 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0190 - * @tc.desc : select尺寸为NORMAL时,size异常值10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0190 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0190") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0190 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0200 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0200 - * @tc.desc : select尺寸为NORMAL时,weight异常值-10/10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0200 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0200") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0200 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0210 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0210 - * @tc.desc : select尺寸为NORMAL时,weight异常值null/undefined - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0210 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0210") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0210 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0220 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0220 - * @tc.desc : select尺寸为NORMAL时,font默认值是否与size:“16fp",weight: FontWeight.Medium一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0220 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0220") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0220 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0230 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0230 - * @tc.desc : select尺寸为NORMAL时,number:0xffff00黄色 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0230 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0230") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0230 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0240 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0240 - * @tc.desc : select尺寸为NORMAL时,color: pink - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0240 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0240") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0240 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0250 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0250 - * @tc.desc : select尺寸为NORMAL时,string:#ff0000ff(蓝色) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0250 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0250") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0250 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0260 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0260 - * @tc.desc : select尺寸为NORMAL时,resource:#FF508131 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0260 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0260") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0260 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0270 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0270 - * @tc.desc : select尺寸为NORMAL时fontColor异常值:undefned/null/0/""/2% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0270 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0270") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0270 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0280 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0280 - * @tc.desc : select尺寸为NORMAL时,fontColor异常值:-1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0280 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0280") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0280 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0290 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0290 - * @tc.desc : select尺寸为NORMAL时fontColor默认值是否和黑色一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0290 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0290") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0290 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0300 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0300 - * @tc.desc : select尺寸为NORMAL时,fontColor不设置时是否和之前版本一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0300 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0300") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0300 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0310 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0310 - * @tc.desc : select尺寸为NORMAL时,backgroundColor设为number:0xffff00黄色 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0310 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0310") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0310 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0320 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0320 - * @tc.desc : select尺寸为NORMAL时,backgroundColor设为color:pink - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0320 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0320") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0320 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0330 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0330 - * @tc.desc : select尺寸为NORMAL时,backgroundColor设为string:#ff0000ff(蓝色) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0330 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0330") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0330 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0340 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0340 - * @tc.desc : select尺寸为NORMAL时,backgroundColor设为resource:#FF508131 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0340 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0340") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0340 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0350 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0350 - * @tc.desc : select尺寸为NORMAL时,backgroundColor设为异常值:undefned/null/-1/""/2% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0350 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0350") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0350 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0360 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0360 - * @tc.desc : select尺寸为NORMAL时backgroundColor设为异常值0/2% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0360 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0360") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0360 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0370 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0370 - * @tc.desc : select尺寸为NORMAL时.backgroundColor设为默认值是否和#E5000000一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0370 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0370") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0370 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0380 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0380 - * @tc.desc : select尺寸为NORMAL时,backgroundColor不设置时是否和之前版本一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0380 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0380") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0380 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0390 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0390 - * @tc.desc : select尺寸为NORMAL时.padding{ top: 8, left: 16, bottom:8, right: 16 } - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0390 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0390") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0390 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0400 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0400 - * @tc.desc : select尺寸为NORMAL时,padding设为异常值-1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0400 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0400") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0400 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0410 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0410 - * @tc.desc : 尺寸为NORMAL时,padding设为异常值null - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0410', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0410 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0410") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0410 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0420 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0420 - * @tc.desc : select尺寸为NORMAL时,padding默认值是否和padding{top: 8, left: 16, bottom: 8, right: 16}一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0420 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0420") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0420 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0430 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0430 - * @tc.desc : select尺寸为NORMAL时.padding不设置时是否和之前版本一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0430 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0430") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0430 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0450 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0450 - * @tc.desc : controlSize设为NORMAL时,press - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0450 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0450") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0450_001')); - await button1.click(); - await Utils.sleep(1000); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0450_002')); - await select.longClick(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0450 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0470 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0470 - * @tc.desc : select尺寸为SMALL - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0470 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0470") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0470 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0480 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0480 - * @tc.desc : select尺寸为SMALL时,width设大于66vp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0480', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0480 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0480") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0480 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0490 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0490 - * @tc.desc : select尺寸为SMALL时,width设置小于66vp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0490', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0490 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0490") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0490 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0500 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0500 - * @tc.desc : select尺寸为SMALL时,width设为异常值:undefined/null/-1/"" - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0500 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0500") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0500 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0510 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0510 - * @tc.desc : select尺寸为SMALL时,width默认值是否与66vp一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0510 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0510") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0510 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0520 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0520 - * @tc.desc : controlSize设为small时.borderStyle四条边设置相同 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0520 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0520") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0520 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0530 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0530 - * @tc.desc : controlSize设为small时borderStyle四条边设置不同 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0530 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0530") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0530 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0540 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0540 - * @tc.desc : controlSize设为small时borderStyle默认值是否与Solid一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0540 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0540") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0540 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0550 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0550 - * @tc.desc : 尺寸small时borderStyle不设置 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0550 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0550") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0550 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0560 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0560 - * @tc.desc : controlSize设为small时borderRadius正常值20 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0560 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0560") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0560 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0570 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0570 - * @tc.desc : controlSize设为small时,borderRadius大于高度的一半500 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0570 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0570") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0570 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0580 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0580 - * @tc.desc : controlSize设为small时,borderRadius设置异常值-1/10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0580', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0580 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0580") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0580 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0590 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0590 - * @tc.desc : controlSize设为small时borderRadius设置异常值null/undefined - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0590 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0590") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0590 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0600 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0600 - * @tc.desc : controlSize设为small时borderRadius默认值是否和20一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0600 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0600") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0600 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0610 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0610 - * @tc.desc : controlSize设为small时,font正常值 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0610 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0610") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0610 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0620 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0620 - * @tc.desc : controlSize设为small时,size异常值-10/null/undefined/10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0620 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0620") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0620 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0630 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0630 - * @tc.desc : controlSize设为small时,size异常值10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0630 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0630") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0630 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0640 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0640 - * @tc.desc : controlSize设为smal时,weight 异常值-10/10% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0640 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0640") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0640 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0650 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0650 - * @tc.desc : controlSize设为small时,weight异常值null/undefined - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0650 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0650") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0650 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0660 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0660 - * @tc.desc : controlSize设为small时font默认值是否与size:“16fp”,weight: FontWeight.Medium一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0660 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0660") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0660 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0670 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0670 - * @tc.desc : controlSize设为small时,color设为number:#ffff00黄色 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0670 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0670") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0670 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0680 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0680 - * @tc.desc : controlSize设为small时,color设为color: pink - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0680 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0680") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0680 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0690 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0690 - * @tc.desc : controlSize设为small时,color设为string:#ff0000ff(蓝色) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0690 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0690") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0690 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0700 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0700 - * @tc.desc : controlSize设为small时,color设为resource:#FF508131 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0700 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0700") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0700 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0710 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0710 - * @tc.desc : controlSize设为small时,color设为异常值:undefined/null/0/""/2% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0710 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0710") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0710 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0720 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0720 - * @tc.desc : controlsize设为small时,color设为异常值:-1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0720 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0720") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0720 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0730 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0730 - * @tc.desc : controlSize设为small时,color设为默认值是否和黑色一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0730 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0730") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0730 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0740 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0740 - * @tc.desc : controlSize设为small时backgroundColor设为number:0xffff00黄色 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0740 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0740") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0740 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0750 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0750 - * @tc.desc : controlSize设为small时,backGroundColor设为color:pink - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0750 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0750") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0750 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0760 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0760 - * @tc.desc : backgroundColor设为string:#ff0000ff(蓝色) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0760 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0760") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0760 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0770 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0770 - * @tc.desc : controlSize设为small时,backGroundColor设为resource:#FF508131 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0770 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0770") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0770 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0780 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0780 - * @tc.desc : controlSize设为small时backGroundColor设为异常值:undefined/null/-1/""/2% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0780 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0780") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0780 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0790 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0790 - * @tc.desc : controlSize设为small时,backGroundColor设为异常值0/2% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0790 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0790") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0790 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0800 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0800 - * @tc.desc : controlSize设为small时,backGroundColor不设置,默认值是否和#E5000000一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0800', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0800 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0800") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0800 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0810 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0810 - * @tc.desc : controlSize设为small时,padding{ top: 8, left: 16, bottom:8. right: 16 } - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0810 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0810") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0810 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0820 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0820 - * @tc.desc : controlSize设为small时padding设为异常值-1 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0820 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0820") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0820 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0830 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0830 - * @tc.desc : controlSize设为small时padding设为异常值null/undefined - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0830 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0830") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0830 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0840 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0840 - * @tc.desc : controlSize设为small时padding默认值是否和padding{ top: 8, left: 16, bottom: 8, right:16 }一致 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0840', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0840 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0840") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0840 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0860 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0860 - * @tc.desc : controlSize设为small时,press - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0860', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0860 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0860") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0860_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0860_002')); - await button2.click(); - await Utils.sleep(1000); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0860_003')); - await select.longClick(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0860 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0880 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0880 - * @tc.desc : 文本长度>normal宽度:80 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0880', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0880 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0880") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0880_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0880_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0880 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0890 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0890 - * @tc.desc : 文本长度大于smal小于normal:56 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0890', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0890 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0890") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0890_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0890_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0890 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0900 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0900 - * @tc.desc : 文本长度小于small:20 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0900', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0900 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0900") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0900_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0900_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0900 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0910 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0910 - * @tc.desc : 文本超长”你好我的朋友上午好早上好中午好晚上好晚安” - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0910', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0910 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0910") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0910_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0910_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0910 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0920 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0920 - * @tc.desc : 容器宽度大于normal宽度:80 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0920', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0920 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0920") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0920_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0920_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0920 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0930 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0930 - * @tc.desc : 容器宽度大于small小于normal:56 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0930', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0930 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0930") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0930_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0930_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0930 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0940 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0940 - * @tc.desc : 容器宽度小于small:20 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0940', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0940 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0940") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0940_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0940_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0940 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0950 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0950 - * @tc.desc : 不设置容器高度,文本高度>normal高度:font-size:100 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0950', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0950 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0950") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0950_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0950_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0950 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0960 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0960 - * @tc.desc : 不设置容器高度,文本高度>normal高度:font-size:35 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0960 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0960") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0960_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0960_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0960 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0970 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0970 - * @tc.desc : 不设置容器高度,文本高度 { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0970 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0970") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0970_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0970_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0970 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0980 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0980 - * @tc.desc : 容器高度大于normal高度:80 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0980', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0980 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0980") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0980_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0980_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0980 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0990 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0990 - * @tc.desc : 容器高度大于small小于normal:35 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0990', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0990 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize0990") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0990_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize0990_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_0990 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1000 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1000 - * @tc.desc : 容器高度小于small:20 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1000', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1000 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize1000") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let button1: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize1000_001')); - await button1.click(); - await Utils.sleep(1000); - let button2: Component = await driver.findComponent(ON.id('UIComponentButtonSelectControlSize1000_002')); - await button2.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1000 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1010 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1010 - * @tc.desc : controlSize不设置 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1010 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectControlSize/" + - "UIComponentButtonSelectControlSize1010") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_CONTROLSIZE_1010 finish.`); - done(); - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider.test.ets deleted file mode 100644 index 333000e8dcb33e1575f39d4ad703240f558fab92..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider.test.ets +++ /dev/null @@ -1,440 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * UIComponentButtonSelectDivider - * - * 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 UIComponentButtonSelectDivider() { - - describe('UIComponentButtonSelectDivider', () => { - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0010 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0010 - * @tc.desc : divider设置为默认值:strokeWidth("1px"),color("#33000000")1px线条细,分割线颜色为灰色 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0010 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0010") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0010_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0010_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0010_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0010 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0020 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0020 - * @tc.desc : divider为null,不显示 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0020 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0020") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0020_001')); - await isDivider.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0020_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0020 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0030 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0030 - * @tc.desc : divder设置为默认值:strokeWidth("1px"),color("#33000000")且只有一个菜单项一个菜单项,没有分割线 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0030 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0030") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0030_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0030_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0030_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0030 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0040 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0040 - * @tc.desc : divder设置strokeWidth/startMargin/endMargin(引用$r5vp),color(引用$r#00FFFF) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0040 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0040") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0040_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0040_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0040_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0040 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0050 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0050 - * @tc.desc : 异常值:startMargin - endMargin接近0:optionWidth为(100.1) divder设置startMargin(50),endMargin(50) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0050 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0050") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0050_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0050_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0050_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0050 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0060 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0060 - * @tc.desc : divder设置strokeWidth("5fp"),startMargin("5fp"),endMargin("5fp"),color("#ff00ff") - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0060 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0060") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0060_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0060_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0060_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0060 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0070 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0070 - * @tc.desc : divder设置strokeWidth("10LPX”), startMargin("10LPX”),endMargin("10LPX”),color(Color.Green) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0070 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0070") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0070_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0070_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0070_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0070 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0080 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0080 - * @tc.desc : divder不设置,默认显示 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0080 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0080") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0080_001')); - await isDivider.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0080_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0080 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0090 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0090 - * @tc.desc : 异常值负数-10:divder设置strokeWidth("-10"),startMargin("-10"),endMargin("-10"),color(null) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0090 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0090") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0090_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0090_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0090_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0090 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0100 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0100 - * @tc.desc : 异常值startMargin - endMargin等于0:optionWidth为 (56) divder设置startMargin (28),endMargin(28) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0100 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0100") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0100_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0100_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0100_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0100 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0110 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0110 - * @tc.desc : 异常值undefined,默认显示 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0110 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0110") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0110_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0110_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0110_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0110 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0120 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0120 - * @tc.desc : divder设置strokeWidth("20px"),startMargin("20px"), endMargin("10px"), color (Color.Red) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0120 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0120") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0120_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0120_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0120_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0120 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0130 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0130 - * @tc.desc : divder设置为默认值后动态切换 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0130 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0130") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0130_003')); - await select.click(); - await Utils.sleep(1000); - let change: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0130_001')); - await change.click(); - await Utils.sleep(1000); - let change130: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0130_002')); - await change130.click(); - await Utils.sleep(500); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0130 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0140 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0140 - * @tc.desc : divder设置strokeWidth("5vp"),startMargin("5vp),endMargin("5vP"),color(0xffff00) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0140 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0140") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0140_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0140_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0140_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0140 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0150 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0150 - * @tc.desc : 异常值超大整数99999,分割线的strokeWidth设置过宽时,会覆盖文字,灰色 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0150 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0150") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0150_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0150_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0150_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0150 finish.`); - done(); - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0160 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0160 - * @tc.desc : 异常值null 参数不允许null值 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0160 start.`); - Settings.createWindow("testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0160") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let isDivider: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0160_001')); - await isDivider.click(); - await Utils.sleep(500); - let dividerConfig: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0160_002')); - await dividerConfig.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentButtonSelectDivider0160_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_DIVIDER_0160 finish.`); - done(); - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonStyleTest/UIComponentButtonStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonStyleTest/UIComponentButtonStyle.test.ets deleted file mode 100644 index 2a1735642225454f0b6c2f4d37c91715d145b1e2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentButtonStyleTest/UIComponentButtonStyle.test.ets +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * 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 UIComponentButtonStyle() { - - describe('UIComponentButtonStyle', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0540 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0540 - * @tc.desc set Rating.starStyle - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0540 start.`); - Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle054"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonStyle0540")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0540 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0530 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0530 - * @tc.desc set Rating.stepSize - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0530 start.`); - Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle053"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonStyle0530")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0530 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0510 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0510 - * @tc.desc set Rating.Rating - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0510 start.`); - Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle051"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonStyle0510")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0510 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0520 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0520 - * @tc.desc set Rating.stars - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0520 start.`); - Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle052"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonStyle0520")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0520 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0570 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0570 - * @tc.desc set Radio.checked - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0570 start.`); - Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle057"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonStyle0570")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0570 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0550 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0550 - * @tc.desc radioStyle style modifies properties - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0550 start.`); - Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle055"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonStyle0550")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0550 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0560 - * @tc.name SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0560 - * @tc.desc radio style modifies properties - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0560 start.`); - Settings.createWindow("testability/pages/UIComponentButtonStyle/UIComponentButtonStyle056"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentButtonStyle0560")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_STYLE_0560 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCreateColorTest/UIComponentCreateColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCreateColorTest/UIComponentCreateColor.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..2d346a740023874160fdf8a8f2716a15e47582dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentCreateColorTest/UIComponentCreateColor.test.ets @@ -0,0 +1,1307 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, 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, MouseButton } from '@kit.TestKit' +import { Component } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentCreateColor() { + + describe('UIComponentCreateColor', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_1 + * @tc.desc Set cursor color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor001"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_SELECTION_INTERFACE_0330 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_2 + * @tc.desc Set cursor color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor001"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let redCaret = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await redCaret.click(); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_3 + * @tc.desc Set cursor color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor001"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let greenCaret = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await greenCaret.click(); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0010_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_1 + * @tc.desc Set background color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor002"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_2 + * @tc.desc Set background color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor002"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let redBackground = await driver.findComponent(ON.id("redBackground")); + await Utils.sleep(500); + await redBackground.click(); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_3 + * @tc.desc Set background color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor002"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let greenBackground = await driver.findComponent(ON.id("greenBackground")); + await Utils.sleep(500); + await greenBackground.click(); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 + * @tc.desc Set opacity + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor003"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let caretColor = await driver.findComponent(ON.id("caretColor")); + let opacity = await driver.findComponent(ON.id("opacity")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await opacity.click(); + await Utils.sleep(500); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_1 + * @tc.desc Set textInput component style + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor004"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0020_2 + * @tc.desc Set textInput component style + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor004"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let redBackground = await driver.findComponent(ON.id("redBackgroundColor")); + let redCaret = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await redBackground.click(); + await Utils.sleep(500); + await redCaret.click(); + await Utils.sleep(500); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_2 end.`); + done(); + }) + + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_3 + * @tc.desc Set textInput component style + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor004"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let greenBackgroundColor = await driver.findComponent(ON.id("greenBackgroundColor")); + let greenCaret = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await greenBackgroundColor.click(); + await Utils.sleep(500); + await greenCaret.click(); + await Utils.sleep(500); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0040_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_1 + * @tc.desc Switch input box type + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor006_1"); + await Utils.sleep(500); + let driver: Driver = Driver.create(); + let textInputFirst: Component = await driver.findComponent(ON.id('UIComponentCreateColor0060')); + let textInputSecond: Component = await driver.findComponent(ON.id('UIComponentCreateColor0061')); + let textInputThird: Component = await driver.findComponent(ON.id('UIComponentCreateColor0062')); + await Utils.sleep(1000); + await textInputFirst.inputText('abc123'); + await Utils.sleep(1000); + await textInputSecond.inputText('abc123'); + await Utils.sleep(1000); + await textInputThird.inputText('123'); + await Utils.sleep(1000); + await textInputFirst.longClick(); + await Utils.sleep(1000); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(1000); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_2 + * @tc.desc Switch input box type + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor006_2"); + await Utils.sleep(500); + let driver: Driver = Driver.create(); + let textInputFourth: Component = await driver.findComponent(ON.id('UIComponentCreateColor0063')); + let textInputFifth: Component = await driver.findComponent(ON.id('UIComponentCreateColor0064')); + let textInputSixth: Component = await driver.findComponent(ON.id('UIComponentCreateColor0065')); + let redCaret = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await redCaret.click(); + await Utils.sleep(1000); + await textInputFourth.inputText('123'); + await Utils.sleep(1000); + await textInputFifth.inputText('17825636325'); + await Utils.sleep(1000); + await textInputSixth.inputText('123'); + await Utils.sleep(1000); + await textInputFourth.longClick(); + await Utils.sleep(1000); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(1000); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_3 + * @tc.desc Switch input box type + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor006_3"); + await Utils.sleep(500); + let driver: Driver = Driver.create(); + let textInputSeventh: Component = await driver.findComponent(ON.id('UIComponentCreateColor0066')); + let textInputEighth: Component = await driver.findComponent(ON.id('UIComponentCreateColor0067')); + let textInputNinth: Component = await driver.findComponent(ON.id('UIComponentCreateColor0068')); + let greenCaret = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await greenCaret.click(); + await Utils.sleep(500); + await textInputSeventh.inputText('123'); + await Utils.sleep(500); + await textInputEighth.inputText('1234566'); + await Utils.sleep(500); + await textInputNinth.inputText('123'); + await Utils.sleep(500); + await textInputSeventh.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(500); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0060_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_1 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor007"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + await Utils.sleep(500); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_2 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor007"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_3 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor007"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('inputComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await textInput.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0070_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_1 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor008"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_2 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor008"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_3 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor008"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0080_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0090 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0090 + * @tc.desc Set opacity + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor009"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + let caretColor = await driver.findComponent(ON.id("caretColor")); + let opacity = await driver.findComponent(ON.id("opacity")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await opacity.click(); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0090 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_1 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor011"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0090 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_2 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor011"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_3 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0030 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor011"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0110_3 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0120 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0120 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0120 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0120"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + await Utils.sleep(100); + let btn: Component = await driver.findComponent(ON.id('changeButton2')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0120 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_1 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0130"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_2 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0130"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_3 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0130"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0130_3 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_1 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + let btn: Component = await driver.findComponent(ON.id('setTextSelection')); + await Utils.sleep(500); + await btn?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_2 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + let btn: Component = await driver.findComponent(ON.id('setTextSelection')); + await Utils.sleep(500); + await btn?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_3 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + let btn: Component = await driver.findComponent(ON.id('setTextSelection')); + await Utils.sleep(500); + await btn?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0140_3 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0150 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0150 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0150 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0150"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("btnCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0150 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0160 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0160 + * @tc.desc Switch to inline mode + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0160 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0160"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + await Utils.sleep(100); + let btn: Component = await driver.findComponent(ON.id('changeButton2')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0160 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_1 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + let point = await searchComponent.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_2 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + let point = await searchComponent.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_3 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0170"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + let point = await searchComponent.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0170_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_1 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + let point = await searchComponent.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_2 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + let point = await searchComponent.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_3 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0180"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + let point = await searchComponent.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_A); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0180_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_1 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0200"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_2 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0200"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_3 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0200"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textAreaComponent: Component = await driver.findComponent(ON.id('textAreaComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await textAreaComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await textAreaComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0200_3 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_1 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_1 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_1 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_2 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_2 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_2 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("redCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_3 + * @tc.name SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_3 + * @tc.desc Set caret color + */ + it('SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_3 start.`); + Settings.createWindow("testability/pages/UIComponentCreateColor/UIComponentCreateColor0210"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let searchComponent: Component = await driver.findComponent(ON.id('searchComponent')); + let caretColor = await driver.findComponent(ON.id("greenCaret")); + await Utils.sleep(500); + await caretColor.click(); + await Utils.sleep(500); + await searchComponent.inputText('testtesttesttesttesttesttesttesttest'); + await Utils.sleep(500); + await searchComponent.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_CREATE_COLOR_0210_3 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol.test.ets deleted file mode 100644 index 9be823c88a86c47cdb06cd67549fd16ee28fc402..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol.test.ets +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' -import { uiAppearance } from '@kit.ArkUI' -import { BusinessError } from '@kit.BasicServicesKit' - -/* - * UIComponentFunctionSelectSymbol - * - * 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 UIComponentFunctionSelectSymbol() { - - describe('UIComponentFunctionSelectSymbol', () => { - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0010 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0010 - * @tc.desc : select组件下拉菜单项单独设置symbolicon(fontsize:999,fontcolor: “#ffffff") - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0010', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0010 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0010") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0010_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0010_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0010 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0020 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0020 - * @tc.desc : select组件下拉菜单项同时设置symbolicon,使用modifier动态改变symbol图片和symbol(fontsize、fontcolor)样式 - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0020', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0020 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0020") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0020_001')); - await button.click(); - await Utils.sleep(500); - let button1: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0020_002')); - await button1.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0020_003')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0020 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0030 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0030 - * @tc.desc : select组件下拉菜单项单独设置symbolicon(fontsize:24,fontcolor:#E5182431) - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0030', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0030 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0030") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0030_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0030_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0030 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0040 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0040 - * @tc.desc : select组件下拉莱单项设置icon资源:引用图片,symbolicon为undefined - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0040', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0040 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0040") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0040_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0040_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0040 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0050 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0050 - * @tc.desc : select组件下拉菜单项同时设置icon、symbolicon为undefined - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0050', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0050 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0050") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0050_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0050_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0050 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0060 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0060 - * @tc.desc : select组件下拉菜单项单独设置symbolicon,icon为undefined - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0060', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0060 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0060") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0060_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0060_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0060 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0070 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0070 - * @tc.desc : select组件下拉菜单项设置icon、symbolicon (fontsize:引用"$r(app.string.string50)50",fontcolor:"$r(app.color.color1)"#ff000000"") - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0070', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0070 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0070") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0070_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0070_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0070 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0090 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0090 - * @tc.desc : select组件下拉菜单项同时不设置icon、symbolicon - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0090', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0090 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0090") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0090_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0090_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0090 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0110 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0110 - * @tc.desc : select组件下拉菜单项单独设置icon资源:引用图片 - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0110', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0110 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0110") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0110_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0110_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0110 finish.`); - done(); - }) - - /* - * @tc.number : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0120 - * @tc.name : ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0120 - * @tc.desc : select组件下拉菜单项单独设置symbolicon (fontsize:-24,fontcolor: 0xffa500) - */ - it('ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0120', 0, async (done: Function) => { - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0120 start.`); - Settings.createWindow("testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0120") - await Utils.sleep(500); - let driver: Driver = Driver.create(); - let button: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0120_001')); - await button.click(); - await Utils.sleep(500); - let select: Component = await driver.findComponent(ON.id('UIComponentFunctionSelectSymbol0120_002')); - await select.click(); - await Utils.sleep(500); - windowSnap.snapShot(); - await Utils.sleep(500); - Logger.info('TEST', `ARKUI_COMPONENTFUNCTION_SELECT_SYMBOL_0120 finish.`); - done(); - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentInputKeyboardAvoidModeTest/UIComponentInputKeyboardAvoidMode.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentInputKeyboardAvoidModeTest/UIComponentInputKeyboardAvoidMode.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..882bb6b4bea03e332fe2a83e5ca1cff3d458ec05 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentInputKeyboardAvoidModeTest/UIComponentInputKeyboardAvoidMode.test.ets @@ -0,0 +1,401 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, Component, ON } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentInputKeyboardAvoidMode() { + + describe('UIComponentInputKeyboardAvoidMode', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0010 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0010"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0010_001')); + await button.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0020 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0020"); + await Utils.sleep(1000); + const driver = Driver.create(); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0020_001')); + await Utils.sleep(1000); + await button.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(5000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0030_001')); + let toggle: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0030_002')); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await toggle.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0040 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0040"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0040_001')); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0040_002')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0040 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0050 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0050 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0050"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0050_001')); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0050_002')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0050 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0060 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0060"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0060_001')); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0060_002')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0060 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0070 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0070"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0070_001')); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0070_002')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0070 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0080 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0080"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0080_001')); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0080_002')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0080 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0090 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0090 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0090"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0090_001')); + await input.click(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0090 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0100 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0100"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0100_001')); + let button: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0100_002')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0100 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0110 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0110 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0110 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0110"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0110_001')); + await input.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0110 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0120 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0120"); + await Utils.sleep(1000); + const driver = Driver.create(); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0120_001')); + await input.click(); + await Utils.sleep(1000); + await input.click(); + await input.click(); + await Utils.sleep(1000); + let selectAll = await driver.findComponent(ON.text('全选')) + await selectAll?.click(); + await Utils.sleep(1000); + let textArea: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0120_002')); + await input.dragTo(textArea); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0120 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0130 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0130 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0130"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0130_001')); + await input.click(); + await Utils.sleep(1000); + let inputText: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0130_001')); + let point = await inputText.getBoundsCenter(); + await driver.swipe(point.x, point.y, point.x, point.y - 200, 1000); + await Utils.sleep(3000); + await inputText.click(); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_A) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0130 finish.`); + await Utils.sleep(2000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0150 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0150 start.`); + Settings.createWindow("testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0150"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentInputKeyboardAvoidMode0150_001')); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_INPUT_KEYBOARDAVOIDMODE_0150 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test.ets deleted file mode 100644 index 60f88eae7f2cd19c24f4b358609875b5c652dbe9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterFlowAddTest/UIComponentListAndGridWaterFlowAdd.test.ets +++ /dev/null @@ -1,308 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentListAndGridWaterFlowAdd() { - - describe('UIComponentListAndGridWaterFlowAdd', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0270_011 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0270_011 - * @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性: - .columnsTemplate("1fr 1fr") - .itemConstraintSize({minWidth:'0%',maxWidth:'50%',minHeight:'0%',maxHeight:'100%'}) - 3.编译安装demo - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0270_011', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0270_011 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0270011") - await Utils.sleep(1000) - - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0270_011 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0130_072 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0130_072 - * @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:columnsGap(“”) - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0130_072', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0130_072 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0130072") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0130_072 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0140_666 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0140_666 - * @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:columnsGap(10) - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0140_666', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0140_666 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0140666") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0140_666 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0160_890 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0160_890 - * @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:columnsGap('5vp') -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0160_890', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0160_890 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0160890") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0160_890 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0150_827 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0150_827 - * @tc.desc 1、添加Waterflow组件 - 2、在string.json里设置string: - "name":'width_20","value':“20" - 3、设置Waterflow的属性:columnsGap($r(app.string.width_20')) - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0150_827', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0150_827 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0150827") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0150_827 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0170_444 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0170_444 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:columnsGap("abc") -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0170_444', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0170_444 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0170444") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0170_444 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0280_056 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0280_056 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:rowsGap(“”) -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0280_056', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0280_056 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0280056") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0280_056 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0290_223 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0290_223 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:rowsGap(10) -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0290_223', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0290_223 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0290223") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0290_223 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0300_414 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0300_414 -* @tc.desc 1、添加Waterflow组件 - 2、在string.json里设置string - "name":"height_20°,"value':‘20° - 3、设置Waterflow的属性:rowsGap($r('app.string.height_20')) -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0300_414', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0300_414 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0300414") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0300_414 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0310_330 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0310_330 - * @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:rowsGap('5vp') - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0310_330', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0310_330 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0310330") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0310_330 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0320_534 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0320_534 - * @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性:rowsGap('abc') - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0320_534', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0320_534 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0320534") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0320_534 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0080_458 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0080_458 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflov的属性: - columnsTemplate("1fr 1fr") - rowsTemplate("1fr 1fr 1fr') - layoutDirection(FlexDirection.ColumnReverse) -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0080_458', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0080_458 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0080458") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0080_458 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0090_321 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0090_321 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflov的属性: - columnsTemplate("1fr 1fr") - rowsTemplate("1fr 1fr 1fr') - layoutDirection(FlexDirection.Column) -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0090_321', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0090_321 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0090321") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0090_321 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0100_678 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0100_678 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性: - columnsTemplate(”1fr 1fr") - rowsTemplate(“ifr 1fr 1fr”) - layoutDirection(FlexDirection.RowReverse) -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0100_678', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0100_678 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0100678") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0100_678 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0110_972 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0110_972 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性: - columnsTemplate(”1fr 1fr") - rowsTemplate(“ifr 1fr 1fr”) - layoutDirection(FlexDirection.Row) -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0110_972', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0110_972 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0110972") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0110_972 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0120_725 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0120_725 -* @tc.desc 1、添加Waterflow组件 - 2、设置Waterflow的属性: - colunnsTenplate(”1fr 1fr") - rowsTemplate(“1fr lfr 1fr') - 不设置layoutDirection -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0120_725', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0120_725 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0120725") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_ADD_0120_725 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test.ets deleted file mode 100644 index 0bd9f7c778dbe844413096c0c1d2d53ffcbd3ec4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentListAndGridWaterSectionsTest/UIComponentListAndGridWaterSections.test.ets +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentListAndGridWaterSections() { - - describe('UIComponentListAndGridWaterSections', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0560 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0560 - * @tc.desc 1、创建分组瀑布流 - 2、splice方法中替换的分组不设置返回高 - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0560', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0560 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0560") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0560_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0560 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0380 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0380 - * @tc.desc 1、创建分组瀑布流 - 2、push进一个分组 - 3、改变分组的columnsGap -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0380', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0380 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0380") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0380_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0380_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0380 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0370 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0370 -* @tc.desc 1、创建分组瀑布流 - 2、push进一个分组 - 3、改变分组的crossCount -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0370', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0370 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0370") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0370_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0370_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0370 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0390 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0390 -* @tc.desc 1、创建分组瀑布流 - 2、push进一个分组 - 3、改变分组的crossCount -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0390', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0390 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0390") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0390_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0390_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0390 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0410 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0410 - * @tc.desc 1、创建分组瀑布流 - 2、push进一个分组 - 3、改变分组的margin -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0410', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0410 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0410") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0410_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0410_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0410 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0400 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0400 - * @tc.desc 1、创建分组瀑布流 - 2、push进一个分组 - 3、改变分组的rowsGap -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0400', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0400 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0400") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0400_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0400_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0400 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0420 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0420 - * @tc.desc 1、创建分组瀑布流 - 2、push进一个分组 - 3、改变分组的返回高度 - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0420', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0420 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0420") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0420_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0420_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0420 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0500 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0500 - * @tc.desc 1、创建分组瀑布流,不设置crossCount - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0500', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0500 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0500") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0500 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0510 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0510 - * @tc.desc 创建分组瀑布流,不设置columnsGap - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0510', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0510 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0510") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0510 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0520 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0520 - * @tc.desc 创建分组瀑布流,不设置rowsGap - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0520', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0520 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0520") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0520 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0530 -* @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0530 -* @tc.desc 创建分组瀑布流,不设置margin -*/ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0530', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0530 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0530") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0530 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0540 - * @tc.name SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0540 - * @tc.desc 1、创建分组瀑布流 - 2、push进一个分组 - 3、改变分组的返回高度 - */ - it('SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0540', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0540 start.`); - Settings.createWindow("testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0540") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentListAndGridWaterSections0540_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_LISTANDGRID_WATERFLOW_SECTIONS_0540 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavModifierTest/UIComponentNavModifier.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavModifierTest/UIComponentNavModifier.test.ets deleted file mode 100644 index 12e9b46a299fc7bf8c4a3c3f58caf88fc3e9c9d5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavModifierTest/UIComponentNavModifier.test.ets +++ /dev/null @@ -1,484 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver, ON } from '@ohos.UiTest' - -export default function UIComponentNavModifier() { - - describe('UIComponentNavModifier', () => { - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0460 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0460 - * @tc.desc 1、添加Tabs组件 - 2、分割线设置为0xFF0000 - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0460', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0460 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier046") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0460 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0530 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0530 - * @tc.desc 1、添加Tabs组件 - 2、设置endMargin(-10) - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0530', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0530 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier053") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier053_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0530 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0560 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0560 - * @tc.desc 1、添加Tabs组件 - 2、设置endMargin(-10) - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0560', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0560 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier056") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier056_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0560 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0580 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0580 - * @tc.desc 1、添加Tabs组件 - 2、设置endMargin(-10) - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0580', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0580 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier058") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier058_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0580 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0830 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0830 - * @tc.desc 1、添加Tabs组件 - 2、barWidth设置为Resource - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0830', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0830 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier083") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier083_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0830 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0480 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0480 - * @tc.desc 1、添加Tabs组件 - 2、分割线设置为0xffc0cb - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0480', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0480 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier048") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0480 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0450 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0450 - * @tc.desc 1、添加Tabs组件 - 2、分割线设置为Color.Blue - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0450', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0450 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier045") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0450 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0410 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0410 - * @tc.desc 1、添加Tabs组件 - 2、strokeWidth设置为string类型 - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0410', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0410 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier041") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier041_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0410 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0440 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0440 - * @tc.desc 1、添加Tabs组件 - 2、strokeWidth设置为Resource类 - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0440', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0440 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier044") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier044_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0440 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0430 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0430 -* @tc.desc 1、添加Tabs组件 - 2、分割线设置为Color.Blue -*/ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0430', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0430 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier043") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier043_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0430 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0600 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0600 - * @tc.desc 1、添加Tabs组件 - 2、fadingEdge设置为false - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0600', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0600 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier060") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0600 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0650 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0650 - * @tc.desc 1、添加Tabs组件 - 2、背景色设置为’#ffffff’ - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0650', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0650 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier065") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier065_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0650 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0630 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0630 - * @tc.desc 1、添加Tabs组件 - 2、背景色设置为’#ffffff’ - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0630', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0630 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier063") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier063_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0630 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0660 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0660 - * @tc.desc 1、添加Tabs组件 - 2、背景色设置为’#ffffff’ -*/ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0660', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0660 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier066") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier066_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0660 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0810 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0810 - * @tc.desc 1、添加Tabs组件 - 2、设置barWidth为'100% - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0810', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0810 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0810") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0810 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0770 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0770 - * @tc.desc 1、添加Tabs组件 - 2、设置barWidth为负值 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0770', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0770 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0770") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0770 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0860 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0860 -* @tc.desc 1、添加Tabs组件 - 2、设置barHeight为250 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0860', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0860 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0860") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0860 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0840 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0840 - * @tc.desc 1、添加Tabs组件 - 2、设置barHeight为小于0的数 - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0840', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0840 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0840") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0840 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0900 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0900 - * @tc.desc 1、添加Tabs组件 - 2、设置animationDuration设置为小于0 - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0900', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0900 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0900") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('blue')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2: Component = await driver.findComponent(ON.id('green')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0900 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0920 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0920 - * @tc.desc 1、添加Tabs组件 - 2、设置animationDuration设置为百分比 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0920', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0920 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0920") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('blue')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2: Component = await driver.findComponent(ON.id('green')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0920 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0370 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0370 -* @tc.desc 1、添加Tabs组件 - 2、barGridAlign设置为gutter -*/ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0370', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0370 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0370") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavModifier0370_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavModifier0370_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0370 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0380 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0380 - * @tc.desc barGridAlign设置为sm - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0380 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0380") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0380 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0130 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0130 - * @tc.desc barGridAlign设置为lg - */ - it('SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0400 start.`); - Settings.createWindow("testability/pages/UIComponentNavModifier/UIComponentNavModifier0400") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_MODIFIER_0400 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsActionTest/UIComponentNavTabsAction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsActionTest/UIComponentNavTabsAction.test.ets deleted file mode 100644 index 9c7a17f444b30e9d3ddceef1830970449312938a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsActionTest/UIComponentNavTabsAction.test.ets +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsAction() { - - describe('UIComponentNavTabsAction', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0011 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0011 - * @tc.desc 1、添加Tabs组件 - 2、设置多个TabContent - 3、多次改变窗口大小,切换前后台 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0011', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0011 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0011") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button:Component = await driver.findComponent(ON.id('UIComponentNavTabsAction0011_002')); - await Utils.sleep(200) - await button.click() - await Utils.sleep(200) - await button.click() - await Utils.sleep(1000) - let tabsCenter:Component = await driver.findComponent(ON.id('UIComponentNavTabsAction0011_001')); - await Utils.sleep(1000) - let pos = await tabsCenter.getBoundsCenter() - await driver.swipe(pos.x+100,pos.y,pos.x-300,pos.y) - await Utils.sleep(1000) - let pos1 = await tabsCenter.getBoundsCenter() - await driver.swipe(pos1.x-100,pos1.y,pos1.x+300,pos1.y) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0011 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0030 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0030 - * @tc.desc 1、在pink页面点击 - 2、点击页签切换页面 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0030', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0030 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0030") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let tabBar1:Component = await driver.findComponent(ON.id('Pink')); - await Utils.sleep(100) - await tabBar1.click() - await Utils.sleep(100) - let tabBar2:Component = await driver.findComponent(ON.id('Yellow')); - await Utils.sleep(100) - await tabBar2.click() - await Utils.sleep(100) - await tabBar1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0030 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0012 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0012 - * @tc.desc 1、添加tabs组件设置100个子组件 - 2、点击页签切换页面 - 3、滑动页面切换 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0012', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0012 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0012") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let tabBar:Component = await driver.findComponent(ON.id('tab1')); - await Utils.sleep(1000) - await tabBar.click() - await Utils.sleep(1000) - let tabsCenter :Component = await driver.findComponent(ON.id('UIComponentNavTabsAction0012_001')) - await Utils.sleep(1000) - let pos = await tabsCenter.getBoundsCenter() - await Utils.sleep(100) - - await driver.swipe(pos.x-100,pos.y,pos.x+356,pos.y) - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_ACTION_0012 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test.ets deleted file mode 100644 index e5dabdb4539a51fcdee9aad9e8d08db5c89be36e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsBlurStyleTest/UIComponentNavTabsBlurStyle.test.ets +++ /dev/null @@ -1,1645 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver, ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsBlurStyle() { - - describe('UIComponentNavTabsBlurStyle', () => { - - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0016 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0016 -* @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0016', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0016 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0016") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0016_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0016 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0015 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0015 -* @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0015', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0015 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0015") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0015_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0015 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0014 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0014 -* @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0014', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0014 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0014") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0014_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0014 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0013 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0013 -* @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0013', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0013 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0013") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0013_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0013 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0012 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0012 - * @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0012', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0012 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0012") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0012_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0012 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0017 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0017 - * @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0017', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0017 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0017") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0017_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(100) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0017 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0011 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0011 - * @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0011', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0011 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0011") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0011_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(100) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0011 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0010 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0010 - * @tc.desc 1、设置13个按钮,点击后给Tabs页签组件模糊效果改为Thin、Regular、Thick、 - BACKGROUND_THIN、BACKGROUND_REGULAR、BACKGROUND_THICK、 - BACKGROUND_ULTRA_THICK、NONE、 - COMPONENT_ULTRA_THIN、 - COMPONENT_THIN、COMPONENT_REGULAR、 - COMPONENT_THICK、COMPONENT_ULTRA_THICK - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow,Blue、Green - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0010") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - let button3: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_003')); - await Utils.sleep(100) - await button3.click() - await Utils.sleep(100) - let button4: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_004')); - await Utils.sleep(100) - await button4.click() - await Utils.sleep(100) - let button5: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_005')); - await Utils.sleep(100) - await button5.click() - await Utils.sleep(100) - let button6: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_006')); - await Utils.sleep(100) - await button6.click() - await Utils.sleep(100) - let button7: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_007')); - await Utils.sleep(100) - await button7.click() - await Utils.sleep(100) - let button8: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_008')); - await Utils.sleep(100) - await button8.click() - await Utils.sleep(100) - let button9: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_009')); - await Utils.sleep(100) - await button9.click() - await Utils.sleep(100) - let button10: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_010')); - await Utils.sleep(100) - await button10.click() - await Utils.sleep(100) - let button11: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_011')); - await Utils.sleep(100) - await button11.click() - await Utils.sleep(100) - let button12: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_012')); - await Utils.sleep(100) - await button12.click() - await Utils.sleep(100) - let button13: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0010_013')); - await Utils.sleep(100) - await button13.click() - await Utils.sleep(100) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0050 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0050 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置barOverlap(true) - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(50) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0050', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0050 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0050 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0049 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0049 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置barOverlap(true) - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(100) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0049', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0049 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0049") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0049 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0048 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0048 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度,设置 - TabBar背景颜色为backgroundColor(0xF5F5F5),设置barOverlap(true) - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、设置分割线线宽为strokeWidth(1),颜色为红色 - 4、添加padding设置为10vp - 5、添加按钮Button(“关闭模糊效果),添加点击效果,backgroundBlurStyle参数设置为NONE - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0048', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0048 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0048") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0048_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0048_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0048 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0042 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0042 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Fixed),所有TabBar平均分配barWidth宽度;设置 - SelecteMode =Selectedlode.BOARD - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(50) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0042', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0042 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0042") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0042 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0046 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0046 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Fixed),所有TabBar平均分配barWidth宽度; - * 设置Selectedlode =Selectedlode.BOARD; - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green - 3、添加padding设置为10vp - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0046', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0046 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0046") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0046 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0043 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0043 - * @tc.desc 1、设置Tabs组件barMode(Barode.Scrollable),使得每一个TabBar均使用实际布局宽度; - 设置Selectedllode =Selectedlode.BOARD,BarMode参数设为Scrollable - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barVidth(80) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0043', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0043 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0043") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0043 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0045 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0045 - * @tc.desc 1、设置Tabs组件barMode(Barode.Scrollable),使得每一个TabBar均使用实际布局宽度;设置Selectedilode =Selectedlode.BOARD; - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green - 3、添加padding设置为10vp - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0045', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0045 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0045") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0045 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0044 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0044 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度; - * 设置Selectedllode =Selectedllode.BOARD - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barHeight(300) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0044', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0044 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0044") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0044 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0038 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0038 - * @tc.desc 1、设置Tabs组件barMode(Bar)ode.Scrollable),使得每一个TabBar均使用实际布局宽度 - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green - 3、添加padding设置为10vp - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0038', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0038 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0038") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0038 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0041 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0041 - * @tc.desc 1、设置Tabs组件barMode(BarIode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置barOverlap(true) - * 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(50) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0041', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0041 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0041") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0041 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0040 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0040 - * @tc.desc 1、设置Tabs组件barMode(BarIode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置barOverlap(true) - * 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(100) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0040', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0040") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0039 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0039 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置barOverlap(true) - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、设置分割线线宽为strokeWidth(1),颜色为红色 - 4、添加padding设置为10vp - 5、添加按钮Button(“关闭模糊效果),添加点击效果,backgroundBlurStyle参数设置为NONE - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0039', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0039 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0039") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0039_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0039_002')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(100) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0039 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0033 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0033 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Fixed),所有TabBar平均分配barWidth宽度; - * 设置Selectedllode =Selectedlode.BOARD - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、YellowBlue、Green、red、blue - 3、TabBar设置barWidth(50) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0033', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0033 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0033") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0033 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0034 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0034 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度; - * 设置Selectedilode =Selectedlode.BOARD,BarMode参数设为Scrollable - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(80) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0034', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0034 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0034") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0034 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0036 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0036 - * @tc.desc 1、设置Tabs组件barMode(Barode.Scrollable),使得每一个TabBar均使用实际布局宽度; - * 设置Selectedllode =Selectedlode.BOARD; - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green - 3、添加padding设置为10vp - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0036', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0036 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0036") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0036 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0035 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0035 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度; - * 设置Selectedllode =Selectedlode.BOARD - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barHeight(300) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0035', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0035 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0035") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0035 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0032 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0032 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度 - 2、Tabs组件中添加四个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green - 对Tabs组件添加Magin设置为12vp - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0032', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0032 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0032") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0032 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0031 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0031 - * @tc.desc 1、设置Tabs组件barMode(Barode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置bar0verlap(true) - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(50) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0031', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0031 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0031") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0031 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0030 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0030 - * @tc.desc 1、设置Tabs组件barMode(Barode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置bar0verlap(true) - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、TabBar设置barWidth(100) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0030', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0030") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0029 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0029 - * @tc.desc 1、设置Tabs组件barMode(BarMode.Scrollable),使得每一个TabBar均使用实际布局宽度, - * 设置TabBar背景颜色为backgroundColor(0xF5F5F5), - * 设置barOverlap(true) - 2、Tabs组件中添加六个TabContent,分别设置SubTabBarStyle为Pink、Yellow、Blue、Green、red、blue - 3、设置分割线线宽为strokeWidth(1),颜色为红色 - 4、添加padding设置为10vp - 5、添加按钮Button(“关闭模糊效果),添加点击效果,backgroundBlurStyle参数设置为NONE - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0029', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0029 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0029") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - await driver.delayMs(1000) - let button1: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0029_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0029_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0029 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0018 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0018 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0018', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0018 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0018") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0018_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0018 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0019 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0019 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0019', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0019 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0019") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsBlurStyle0019_001')) - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0019 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0020 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0020 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0020 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0020") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0020 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0021 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0021 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0021', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0021 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0021") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0021 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0022 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0022 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0022', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0022 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0022") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0022 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0023 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0023 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0023', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0023 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0023") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0023 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0024 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0024 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0024', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0024 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0024") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0024 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0025 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0025 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0025', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0025 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0025") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0025 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0026 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0026 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0026', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0026 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0026") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0026 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0027 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0027 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0027', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0026 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0027") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0027 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0028 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0028 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0028', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0028 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0028") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0028 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0047 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0047 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0047', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0047 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0047") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0047 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0051 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0051 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0051', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0051 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0051") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0051 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0052 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0052 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0052', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0052 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0052") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0052 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0053 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0053 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0053', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0053 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0053") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0053 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0060 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0060 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0060 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0060") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0060 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0080 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0080 - * @tc.desc nav width -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0080 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0080") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0080 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0100 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0100 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0100 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0100") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0100 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0110 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0110 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0110 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0110") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0110 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0160 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0160 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0160 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0160") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0160 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0170 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0170 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0170 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0170") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0170 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0180 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0180 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0180 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0180") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0180 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0190 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0190 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0190 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0190") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0190 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0200 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0200 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0200', 0, async (done: Function) => { - Logger.info('TEST', `ccSUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0200 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0200") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ccSUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0200 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0210 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0210 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0210', 0, async (done: Function) => { - Logger.info('TEST', `ccSUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0210 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0210") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ccSUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0210 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0220 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0220 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0220', 0, async (done: Function) => { - Logger.info('TEST', `ccSUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0220 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0220") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `ccSUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0220 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0230 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0230 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0230 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0230") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0230 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0240 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0240 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0240 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0240") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0240 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0250 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0250 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0250 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0250") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0250 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0260 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0260 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0260 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0260") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0260 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0270 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0270 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0270 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0270") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0270 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0280 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0280 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0280 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0280") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0280 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0290 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0290 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0290 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0290") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0290 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0300 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0300 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0300 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0300") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0300 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0310 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0310 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0310 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0310") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0310 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0320 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0320 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0320 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0320") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0320 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0340 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0340 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0340 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0340") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0340 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0350 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0350 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0350 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0350") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0350 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0360 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0360 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0360 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0360") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0360 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0370 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0370 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0370 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0370") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0370 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0380 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0380 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0380 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0380") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0380 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0390 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0390 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0390 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0390") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0390 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0400 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0400 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0400 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0400") - await Utils.sleep(1000) - await windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_BLURSTYLE_0400 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test.ets deleted file mode 100644 index 764434b8c2b2c931b4e999d6ff9f380ce62b05fb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsCachedCountTest/UIComponentNavTabsCachedCount.test.ets +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsCachedCount() { - - describe('UIComponentNavTabsCachedCount', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0140 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0140 - * @tc.desc 1、创建tabs,设置BarPosition.Start 2、设置preloadItens[1,3] - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0140', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0140 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount014") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabs014_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0140 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0150 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0150 - * @tc.desc 1、创建tabs,设置BarPosition.End 2、设置preloadItens[1,3] - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0150', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0150 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount015") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabs015_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0150 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0160 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0160 - * @tc.desc 1、创建tabs,设置BarPosition动态改变 - 2、设置preloadItens[1,3] - 3、动态切换BarPosition - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0160', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0160 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount016") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabs016_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CACHEDCOUNT_0160 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test.ets deleted file mode 100644 index 2cf0a074255dab4bb0c450dc5eb0aca3e305bd01..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsContentAdaptTest/UIComponentNavTabsContentAdapt.test.ets +++ /dev/null @@ -1,699 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsContentAdapt() { - - describe('UIComponentNavTabsContentAdapt', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0310 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0310 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0310', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0310 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0310") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let tabBar1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt0310_001')); - await Utils.sleep(1000) - await tabBar1.click() - await Utils.sleep(1000) - await tabBar1.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0310 finish.`); - done() - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0010 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0010 - * @tc.desc 创建横向tabs(BarPosition.Start),设置width为auto,设置每个页面宽度不同 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0010 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt001") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0020 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0020 - * @tc.desc 创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0020', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0020 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt002") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0020 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0030 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0030 - * @tc.desc 创建横向tabs(BarPosition.End),设置height为auto,设置每个页面高度不同 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0030', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0030 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt003") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0040 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0040 - * @tc.desc 创建横向tabs(BarPosition.End),设置width为auto,设置每个页面宽度不同 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0040', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0040 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt004") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0100 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0100 - * @tc.desc 1、创建纵向tabs(BarPosition.Start),设置width为auto,设置每个页面宽度不同 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0100', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0100 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt010") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0100 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0110 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0110 - * @tc.desc 1、创建纵向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0110', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0110 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt011") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0110 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0120 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0120 - * @tc.desc 1、创建纵向tabs(BarPosition.End),设置height为auto,设置每个页面高度不同 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0120', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0120 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt012") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0120 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0130 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0130 - * @tc.desc 1、创建纵向tabs(BarPosition.End),设置width为auto,设置每个页面宽度不同 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0130', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0130 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt013") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0130 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0330 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0330 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同,设置barPosition可以动态切换 - 2、动态切换barPosition属性观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0330', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0330 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt033") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabs033_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0330 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0340 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0340 - * @tc.desc 1、创建纵向tabs(BarPosition.Start),设置width可以动态切换(200、‘auto'、‘100%、-100) - 2、动态切换观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0340', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0340 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt034") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt034_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt034_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - let button3:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt034_003')); - await Utils.sleep(1000) - await button3.click() - await Utils.sleep(1000) - let button4:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt034_004')); - await Utils.sleep(1000) - await button4.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0340 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0350 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0350 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height可以动态切换入参(300、‘auto',50%’、-1) - 2、动态切换观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0350', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0350 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt035") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt035_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button3:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt035_002')); - await Utils.sleep(1000) - await button3.click() - await Utils.sleep(1000) - let button4:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt035_003')); - await Utils.sleep(1000) - await button4.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt035_004')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0350 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0070 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0070 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height可以动态切换入参(300、‘auto',50%’、-1) - 2、动态切换观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0070', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0070 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt007") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt007_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt007_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - let button3:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt007_003')); - await Utils.sleep(1000) - await button3.click() - await Utils.sleep(1000) - let button4:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt007_004')); - await Utils.sleep(1000) - await button4.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0070 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0320 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0320 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置width和height为auto,设置每个页面高度、宽度不同,设置vertical可以动态切换 - 2、动态切换vertical属性观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0320', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0320 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt032") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt032_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0320 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0140 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0140 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同,scrollable属性设置为false - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0140', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0140 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt014") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0140 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0270 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0270 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同,设置divider大小可以动态改变 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0270', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0270 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt027") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt027_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt027_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0270 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0280 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0280 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同, - * 设置divider可以动态改变颜色、前后Margin - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0280', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0280 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt028") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt028_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt028_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - let button3:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt028_003')); - await Utils.sleep(1000) - await button3.click() - await Utils.sleep(1000) - let button4:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt028_004')); - await Utils.sleep(1000) - await button4.click() - await Utils.sleep(1000) - let button5:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt028_005')); - await Utils.sleep(1000) - await button5.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0280 finish.`); - done() - }) - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0300 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0300 -* @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto, - 设置每个页面高度不同,设置barOverlap为true - 2、编译安装查看效果 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0300', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0300 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt030") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0300 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0080 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0080 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同;设置border可以改变 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0080', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0080 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0080") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt0080_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt0080_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0080 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0050 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0050 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto,设置每个页面高度不同;设置border可以改变 - 2、编译安装查看效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0050', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0050 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0050") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0050 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0210 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0210 - * @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto - 2、页签为BottomTabbarStyle样式,动态切换barheight观察自适应情况 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0210', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0210 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0210") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt0210_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0210 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0150 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0150 -* @tc.desc 1、创建横向tabs(BarPosition.Start),设置height为auto - 2、页签为BottomTabbarStyle样式,动态切换barwidth观察自适应情况 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0150', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0150 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0150") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt0150_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0150 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0240 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0240 - * @tc.desc 1、创建纵向tabs(BarPosition.Start),设置width为auto - 2、页签为BottomTabbarStyle样式,动态切换barheight观察自适应情况 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0240', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0240 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0240") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt0240_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0240 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0180 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0180 - * @tc.desc 1、创建纵向tabs(BarPosition.Start),设置width为auto - 2、页签为BottomTabbarStyle样式,动态切换barwidth观察自适应情况 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0180', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0180 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0180") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsContentAdapt0180_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0180 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0220 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0220 - * @tc.desc 横向 tabs(BarPosition.Start), height: auto, change barheight - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0220 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0220") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0220_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0220 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0160 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0160 - * @tc.desc 横向 tabs(BarPosition.Start), height: auto, change barwidth - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0160 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0160") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0160_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0160 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0250 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0250 - * @tc.desc 纵向 tabs(BarPosition.Start), width: auto, change barheight - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0250 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0250") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0250_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0250 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0190 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0190 - * @tc.desc 纵向 tabs(BarPosition.Start), width: auto, change barwidth - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0190 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0190") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0190_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0190 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0170 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0170 - * @tc.desc 横向 tabs(BarPosition.Start), height: auto, change barwidth - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0170 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0170") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0170_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0170 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0200 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0200 - * @tc.desc 纵向 tabs(BarPosition.Start), height: auto, change barwidth - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0200 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0200") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0200_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0200 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0230 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0230 - * @tc.desc 横向 tabs(BarPosition.Start), height: auto, change barheight - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0230 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0230") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0230_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0230 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0260 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0260 - * @tc.desc 纵向 tabs(BarPosition.Start), width: auto, change barheight - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0260 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0260") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentNavTabsContentadapt0260_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_CONTENTADAPT_0260 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsEdgeeffectTest/UIComponentNavTabsEdgeeffect.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsEdgeeffectTest/UIComponentNavTabsEdgeeffect.test.ets deleted file mode 100644 index c40fb8c1875d17bc8c262d644cbe1c6663924561..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsEdgeeffectTest/UIComponentNavTabsEdgeeffect.test.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentNavTabsEdgeeffect() { - - describe('UIComponentNavTabsEdgeeffect', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0230 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0230 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0230 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0230") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0230 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0270 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0270 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0270 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0270") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EDGEEFFECT_0270 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsExpandsafeareaTest/UIComponentNavTabsExpandsafearea.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsExpandsafeareaTest/UIComponentNavTabsExpandsafearea.test.ets deleted file mode 100644 index 48b15dd262f8ad2dd0b7efab5b306eed1b0bdd05..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsExpandsafeareaTest/UIComponentNavTabsExpandsafearea.test.ets +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentNavTabsExpandsafearea() { - - describe('UIComponentNavTabsExpandsafearea', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0090") - await Utils.sleep(2000) - // let driver: Driver = Driver.create() - // let button: Component = await driver.findComponent(ON.id('UIComponentTabTabbarTabbarsymbol0050_001')) - // await button.click() - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0010") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0090 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0120 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0120 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0120 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0120") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0120 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0050 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0050 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0050 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0050") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0050 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0080 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0080 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0080 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0080") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0080 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0070 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0070 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0070 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0070") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0070 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0060 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0060 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0060 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0060") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0060 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0040 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0040 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0040 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0040") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0040 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0030 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0030 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0030 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0030") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0030 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0020 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0020 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0020 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0020") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0020 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0100 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0100 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0100 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0100") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0100 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0110 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0110 - * @tc.desc scroller+tab - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0110 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0110") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_EXPANDSAFEAREA_0110 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test.ets deleted file mode 100644 index aad3189a1be0291fbf0d0170441db0c00781eb86..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsHeightTest/UIComponentNavTabsHeight.test.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsHeight() { - - describe('UIComponentNavTabsHeight', () => { - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_HEIGHT_0010 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_HEIGHT_0010 -* @tc.desc 1、创建tabs组件,设置tabs组件height为auto - 2、动态切换观察效果 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_HEIGHT_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_HEIGHT_0010 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsHeight/UIComponentNavTabsHeight001") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_HEIGHT_0010 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test.ets deleted file mode 100644 index ebabf71df0bd7811fd4ea809df34b7dce2e32766..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsImproTraceTest/UIComponentNavTabsImproTrace.test.ets +++ /dev/null @@ -1,354 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsImproTrace() { - - describe('UIComponentNavTabsImproTrace', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0150 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0150 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、使用index切换页面 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0150', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0150 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0150") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0150_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0150_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0150 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0140 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0140 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、使用changeindex切换页面 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0140', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0140 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0140") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0140_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0140_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0140 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0120 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0120 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、更改tabscontent宽高 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0120', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0120 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0120") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0120_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0120_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0120 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0080 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0080 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、横竖屏旋转 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0080', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0080 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0080") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0080_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0080_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0080 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0040 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0040 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、滑动页签 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0040', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0040") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0040_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let tabsCenter:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0040_002')); - let pos = await tabsCenter.getBoundsCenter() - await driver.swipe(pos.x,pos.y+250,pos.x-350,pos.y+250) - await Utils.sleep(1000) - await driver.swipe(pos.x,pos.y+250,pos.x+350,pos.y+250) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0060 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0060 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、滑动页签边缘, 触发边缘回弹效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0060', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0060 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0060") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0060_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let tabsCenter:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0060_002')); - let pos = await tabsCenter.getBoundsCenter() - await driver.swipe(pos.x,pos.y+250,pos.x+200,pos.y+250) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0060 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0070 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0070 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、滑动页面切换页签 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0070', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0070 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0070") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0070_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let tabsCenter:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0070_002')); - let pos = await tabsCenter.getBoundsCenter() - await driver.swipe(pos.x+300,pos.y,pos.x-300,pos.y) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0030 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0030 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、点击不同页签切换页面 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0030', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0030") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0030_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let tabBar:Component = await driver.findComponent(ON.id('2')); - await Utils.sleep(1000) - await tabBar.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0020 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0020 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、自定义页签 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0020', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0020 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0020") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0020 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0160 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0160 - * @tc.desc 1、设置不同初始index值 - 2、设置不同的vertical(排列方向)、barMode(布局模式)、barHeight(页签高度)、barGridAlign(栅格)、direction(镜像)等属性 - 3、设置不同的页签样式,包括子页签、底部页签(image、svg、symbol格式)、自定义页签等,设置不同页签属性,如selectedMode、layoutMode、symmetricExtensible等 - 4、进入页面查看 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0160', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0160 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0160") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(100) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_002')); - await Utils.sleep(500) - await button2.click() - await Utils.sleep(100) - let button3:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_003')); - await Utils.sleep(500) - await button3.click() - await Utils.sleep(100) - let button4:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_004')); - await Utils.sleep(500) - await button4.click() - await Utils.sleep(100) - let button5:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_005')); - await Utils.sleep(500) - await button5.click() - await Utils.sleep(100) - let button6:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_006')); - await Utils.sleep(500) - await button6.click() - await Utils.sleep(100) - let button7:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_007')); - await Utils.sleep(500) - await button7.click() - await Utils.sleep(100) - let button8:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_008')); - await Utils.sleep(500) - await button8.click() - await Utils.sleep(100) - let button9:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0160_009')); - await Utils.sleep(500) - await button9.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0160 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0130 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0130 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、镜像测试 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0130', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0130 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0130") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0130_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsImproTrace0130_002')); - await Utils.sleep(500) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0130 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0010 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0010 - * @tc.desc 1、tabs组件,设置2000个子组件,TabBar设置为Scrollable - 2、首次进入页面 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0010") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_IMPROTRACE_0010 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test.ets deleted file mode 100644 index e30fe0a5afa1508c0979cc14c8e1a4cf22feb6db..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterceptionTest/UIComponentNavTabsInterception.test.ets +++ /dev/null @@ -1,295 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsInterception() { - - describe('UIComponentNavTabsInterception', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0130 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0130 - * @tc.desc 1、创建纵向Tabs包含5个TabContent,index=0 - 2、设置onContentWil1Change接口,如果comingIndex为3,return false,编译安装 - 3、手指滑动素引2页到素引3页 - 4、手指滑动素引4页到素引3页 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0130', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0130 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0130") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let tabsCenter :Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0130_001')) - await Utils.sleep(1000) - let pos = await tabsCenter.getBoundsCenter() - await driver.swipe(pos.x,pos.y,pos.x-56,pos.y) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0130 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0040 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0040 - * @tc.desc 1、创建Tabs包合5个TabContent,index=0 - 2、设置onContentVillChange接口,如果comingIndex为3,return false; - 设置TabsController.changeIndex。编译安装 - 3、点击按钮切换到素引3的页签(调用changeIndex) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0040', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0040 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0040") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0040_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0060 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0060 - * @tc.desc 1、创建Tabs包合5个TabContent,index=0 - 2、设置onContentVillChange接口,如果comingIndex为3,return false; - 设置TabsController.changeIndex。编译安装 - 3、点击按钮切换到素引3的页签(调用changeIndex) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0060', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0060 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0060") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0060_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0060 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0080 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0080 - * @tc.desc 1、创建Tabs包合5个TabContent,index=0 - 2、设置onContentVillChange接口,如果comingIndex为3,return false; - 设置TabsController.changeIndex。编译安装 - 3、点击按钮切换到素引3的页签(调用changeIndex) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0080', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0080 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0080") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let tabBar:Component = await driver.findComponent(ON.id('我的')); - await Utils.sleep(1000) - await tabBar.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0080 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0050 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0050 - * @tc.desc 1、创建Tabs包含5个TabContent,index=0 - 2、设置onContentWillChange接口,如果comingIndex为3,return true; - 设置TabsController.changeIndex。编译安装 - 3、点击按钮切换到素引3的页签(调用changeIndex) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0050', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0050 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0050") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0050_001')); - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0050 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0070 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0070 - * @tc.desc 1、创建Tabs包含5个TabContent,index=0 - 2、设置onContentWillChange接口,如果comingIndex为3,return true; - 设置TabsController.changeIndex。编译安装 - 3、点击按钮切换到素引3的页签(调用changeIndex) - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0070', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0070 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0070") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0070_001')); - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0010 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0010 - * @tc.desc 1、创建Tabs包含5个TabContent,index=0 - 2、设置onContentWillChange接口,如果currentIndex为2,coningIndex为3,return false,编译安装 - 3、手指滑动索引2页面到素引3页面 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0010 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0010") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0010_002')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let tabsCenter :Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0010_001')) - await Utils.sleep(1000) - let pos = await tabsCenter.getBoundsCenter() - await driver.swipe(pos.x+100,pos.y,pos.x-356,pos.y) - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0030 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0030 - * @tc.desc 1、创建Tabs包含5个TabContent,index=3 - 2、设置onContentVil1Change接口,如果comingIndex为3,return true,编译安装 - 3、手指滑动素引2页到素引3页 - 4、手指滑动素引4页到索引3页 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0030', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0030 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0030") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0030_002')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - - let tabsCenter :Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0030_001')) - await Utils.sleep(1000) - let pos = await tabsCenter.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x+100,pos.y,pos.x-356,pos.y) - await Utils.sleep(2000) - - let button4:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0030_004')); - await Utils.sleep(1000) - await button4.click() - await Utils.sleep(1000) - - await driver.swipe(pos.x-100,pos.y,pos.x+356,pos.y) - await Utils.sleep(1000) - - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0030 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0150 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0150 - * @tc.desc 1、创建Tabs包含5个TabContent,index=0,设置TabContent可动态改变个数 - 2、设置onContentWil1Change接口,如果comingIndex为3,return false,编译安装 - 3、点击按钮动态减少、增加TabContent - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0150', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0150 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0150") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0150_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterception0150_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0150 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0090 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0090 - * @tc.desc 1、创建Tabs包含5个TabContent,index=0 - 2、设置onContentWil1Change接口,如果comingIndex为3,return true,编译安装 - 3、点击素引3页的tabbar - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0090', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0090 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0090") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let tabBar:Component = await driver.findComponent(ON.id('我的')); - await Utils.sleep(1000) - await tabBar.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERCEPTION_0090 finish.`); - done() - }) - - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test.ets deleted file mode 100644 index 826714182f47bfdb0b6470b6407a34dc0c625ce6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsInterfaceTest/UIComponentNavTabsInterface.test.ets +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsInterface() { - - describe('UIComponentNavTabsInterface', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_0120 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_0120 - * @tc.desc 1、添加Tabs组件 - 2、设置index:0 - 3、设置TabContent数量为4 - 4、设置barwidth超过容器宽度 - 6、不设置属性fadingEdge - 7、编译安装 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_0120', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_0120 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface012") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_0120 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1190 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1190 - * @tc.desc 1、添加Tabs组件 - 2、添加TabContent - 3、设置选中位置为新添加的位置 - 4、编译安装 - 5、动态增加tab页签个数 - 6、观察选中状态的位置 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1190', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1190 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1190") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsInterface1190_001')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1190 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1220 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1220 - * @tc.desc 1、添加Tabs组件 - 2、添加TabContent - 3、第一个tabcontent右滑 - 4、边缘效果未结束前点击返回 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1220', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1220 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1220") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - await Utils.sleep(1000) - let tabsCenter :Component = await driver.findComponent(ON.id('UIComponentNavTabsInterface1220_001')) - await Utils.sleep(1000) - let pos = await tabsCenter.getBoundsCenter() - await driver.swipe(pos.x,pos.y,pos.x-100,pos.y) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_INTERFACE_1220 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test.ets deleted file mode 100644 index 66e339f31b8f9cc6d50f0b85ff6ea41ee5e74db9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsMirrorTest/UIComponentNavTabsMirror.test.ets +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsMirror() { - - describe('UIComponentNavTabsMirror', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0100 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0100 - * @tc.desc 1、创建横向tabs页签位置BarPosition.Start,设置barOverlap属性 - 2、设置direction可以动态改变 - 3、动态切换镜像方向观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0100', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0100 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror010") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror010_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0100 finish.`); - done() - }) - - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0070 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0070 - * @tc.desc 1、创建tabs布局方向可以动态改变更新转测版本,新建ets页面 - 2、设置direction可以动态改变 - 3、动态切换属性观察效果 - */ - it('SUB_ACE_UI_0OMPONENT_NAV_TABS_MIRROR_0070', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_0OMPONENT_NAV_TABS_MIRROR_0070 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0070") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0070_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_0OMPONENT_NAV_TABS_MIRROR_0070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0030 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0030 - * @tc.desc 1、创建横向tabs页签位置可以动态改变 - 2、设置direction可以动态改变 - 3、动态切换镜像方向观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0030', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0030 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0030") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0030_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0090 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0090 - * @tc.desc 1、创建横向tabs页签位置BarPosition.Start - 2、设置direction可以动态改变 - 3、动态切换镜像方向观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0090', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0090 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0090") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0090_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0090 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0110 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0110 - * @tc.desc 1、创建tabs,设置SubTabBarStyle样式 - 2、设置镜像效果 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0110', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0110 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0110") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0110_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0110 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0160 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0160 - * @tc.desc 1、创建tabs,设置SubTabBarStyle样式 - 2、设置镜像效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0160', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0160 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0160") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0160_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0160 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0120 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0120 - * @tc.desc 1、创建tabs,设置BottomTabBarStyle样式 - 2、设置镜像效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0120', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0120 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0120") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0120_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0120 finish.`); - done() - }) - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0140 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0140 - * @tc.desc 1、创建tabs,设置BottomTabBarStyle样式 - 2、设置镜像效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0140', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0140 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0140") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0140_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0140 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0130 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0130 - * @tc.desc 1、创建tabs,设置tabbar布局模式设为BarMode.Scrollable - 2、设置镜像效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0130', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0130 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0130") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0130_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0130 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0150 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0150 - * @tc.desc 1、创建tabs,tabbar设置padding动态改变 - 2、设置镜像效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0150', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0150 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0150") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0150_001')); - await Utils.sleep(500) - await button1.click() - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0150_002')); - await Utils.sleep(500) - await button2.click() - await Utils.sleep(100) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0150 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0260 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0260 - * @tc.desc 1、创建tabs嵌套横向list - 2、设置镜像效果 - 3、切换页签 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0260', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0260 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0260") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let tabBar0:Component = await driver.findComponent(ON.id('Tab0')); - await Utils.sleep(1000) - await tabBar0.click() - await Utils.sleep(1000) - let tabBar1:Component = await driver.findComponent(ON.id('Tab1')); - await Utils.sleep(1000) - await tabBar1.click() - await Utils.sleep(1000) - await tabBar0.click() - await Utils.sleep(1000) - let button:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0260_001')); - await Utils.sleep(200) - await button.click() - await Utils.sleep(200) - await button.click() - await Utils.sleep(200) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0260 finish.`); - done() - }) - - - /* -* @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0250 -* @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0250 -* @tc.desc 1、创建tabs嵌套web - 2、设置镜像效果 - 3、切换页签 -*/ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0250', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0250 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0250") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror0250_001')); - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0250 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0080 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0080 - * @tc.desc 1、创建tabs,设置divider的前后Margin动态改变 - 2、设置direction可以动态改变 - 3、动态切换属性观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0080', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0080 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror080") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror080_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror080_002')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - let button3:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror080_003')); - await Utils.sleep(1000) - await button3.click() - await Utils.sleep(1000) - let button4:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror080_004')); - await Utils.sleep(1000) - await button4.click() - await Utils.sleep(1000) - let button5:Component = await driver.findComponent(ON.id('UIComponentNavTabsMirror080_005')); - await Utils.sleep(1000) - await button5.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_MIRROR_0080 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test.ets deleted file mode 100644 index acfc595c35a3fcee873ac41bd734968ed43fc563..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsOnWillShowTest/UIComponentNavTabsOnWillShow.test.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsOnWillShow() { - - describe('UIComponentNavTabsOnWillShow', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TABS_ONWILLSHOW_0190 - * @tc.name SUB_ACE_UI_COMPONENT_TABS_ONWILLSHOW_0190 - * @tc.desc 1、创建tabs组件,包含子组件TabContent - 2、点击底部页签或侧边页签 -*/ - it('SUB_ACE_UI_COMPONENT_TABS_ONWILLSHOW_0190', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TABS_ONWILLSHOW_0190 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsOnWillShow/UIComponentNavTabsOnWillShow0190") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('tab2')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('tab_2')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TABS_ONWILLSHOW_0190 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test.ets deleted file mode 100644 index 577359a2b716e31c682a93610342017ec229f0fc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsSubTabbarStyleTest/UIComponentNavTabsSubTabbarStyle.test.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsSubTabbarStyle() { - - describe('UIComponentNavTabsSubTabbarStyle', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_SUBTABBARSTYLE_0010 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_SUBTABBARSTYLE_0010 - * @tc.desc 1、创建tabs组件 - 2、页签为SubTabbarStyle样式,页签设置为svg图片+文本 - 3、切换页面 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_SUBTABBARSTYLE_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_SUBTABBARSTYLE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsSubTabbarStyle/UIComponentNavTabsSubTabbarStyle0010") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('Pink')); - await Utils.sleep(100) - await button1.click() - await Utils.sleep(100) - let button2:Component = await driver.findComponent(ON.id('Yellow')); - await Utils.sleep(100) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_SUBTABBARSTYLE_0010 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test.ets deleted file mode 100644 index 54b79ec31f3f5ba9066214dd83618a1c419187a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentNavTabsWidthTest/UIComponentNavTabsWidth.test.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentNavTabsWidth() { - - describe('UIComponentNavTabsWidth', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_NAV_TABS_WIDTH_0010 - * @tc.name SUB_ACE_UI_COMPONENT_NAV_TABS_WIDTH_0010 - * @tc.desc 1、创建tabs组件,设置tabs组件width为auto - 2、动态切换观察效果 - */ - it('SUB_ACE_UI_COMPONENT_NAV_TABS_WIDTH_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_WIDTH_0010 start.`); - Settings.createWindow("testability/pages/UIComponentNavTabsWidth/UIComponentNavTabsWidth001") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_NAV_TABS_WIDTH_0010 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test.ets deleted file mode 100644 index a86014eb02d477754646809d0d45533d8da4a822..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshAbilityTest/UIComponentOtherRefreshAbility.test.ets +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentOtherRefreshAbility() { - - describe('UIComponentOtherRefreshAbility', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0080 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0080 - * @tc.desc 创建Refresh组件,设置refreshOffset(-1),编译安装 -*/ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0080', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0080 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0080") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0080 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0070 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0070 - * @tc.desc 创建Refresh组件,设置refreshOffset(0),编译安装 -*/ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0070', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0070 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0070") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0090 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0090 - * @tc.desc 创建Refresh组件,组件高度为499,设置refreshOffset(500),编译安装 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0090', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0090 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0090") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0090 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0050 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0050 - * @tc.desc 创建Refresh组件,设置refreshOffset(70),编译安装 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0050', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0050 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0050") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0050 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0100 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0100 - * @tc.desc 创建Refresh组件,设置refreshOffset(60.5)编译安装 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0100', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0100 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0100") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0100 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0040 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0040 - * @tc.desc 创建Refresh组件,设置pullToRefresh值可以动态修改,编译安装 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0040', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0040 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0040") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button:Component = await driver.findComponent(ON.id('UIComponentOtherRefreshAbility0040_001')); - await Utils.sleep(1000) - await button.click() - await Utils.sleep(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_ABILITY_0040 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test.ets deleted file mode 100644 index 5982175f3a3a9ba4c186c19b9337d12d3bae81f1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterActionTest/UIComponentOtherRefreshInterAction.test.ets +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentOtherRefreshInterAction() { - - describe('UIComponentOtherRefreshInterAction', () => { - - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0380 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0380 - * @tc.desc 1、进入list builder不设置宽高页面 - 2、下拉组件刷新 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0380', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0380 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0380") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0380 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0400 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0400 - * @tc.desc 1、进入list设置高度大于刷新区域页面 - 2、下拉组件刷新 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0400', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0400 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0400") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+400) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0400 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0390 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0390 - * @tc.desc 1、进入list固定高度页面 - 2、下拉组件刷新 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0390', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0390 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0390") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+400) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0390 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0410 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0410 - * @tc.desc 1、进入list builder宽高设置百分比 - 2、下拉组件刷新 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0410', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0410 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0410") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+400) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERACTION_0410 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test.ets deleted file mode 100644 index 5243db1f0b868ca6b54197d73bfb65d499e168e5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshInterfaceTest/UIComponentOtherRefreshInterface.test.ets +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentOtherRefreshInterface() { - - describe('UIComponentOtherRefreshInterface', () => { - - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0140 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0140 - * @tc.desc 1、Refresh的offset参数:string :'0'设置friction:100 - 2、页面下拉 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0140', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0140 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0140") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0140 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0170 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0170 - * @tc.desc 1、Refresh的offset参数:nunber :-100,设置friction:100 - 2、页面下拉 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0170', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0170 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0170") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0170 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0180 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0180 - * @tc.desc 1、Refresh的offset参数:number :0 设置friction:100 - 2、页面下拉 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0180', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0180 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0180") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_INTERFACE_0180 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test.ets deleted file mode 100644 index f1c73b54f9e9d514fe6d425f5bc1449316efd3d7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentOtherRefreshPromptTextTest/UIComponentOtherRefreshPromptText.test.ets +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentOtherRefreshPromptText() { - - describe('UIComponentOtherRefreshPromptText', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0110 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0110 - * @tc.desc 1、创建refresh,设置自定义文本为Resource类型的混合内容 - 2、下拉刷新 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0110', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0110 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0110") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0110 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0100 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0100 - * @tc.desc 1、创建refresh,设置自定义文本为Resource类型的特殊字符 - 2、下拉刷新 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0100', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0100 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0100") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0100 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0060 - * @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0060 - * @tc.desc 1、创建refresh,设置自定义文本为字符串类型的混合内容 - 2、下拉刷新 - */ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0060', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0060 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0060") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0060 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0050 -* @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0050 -* @tc.desc 1、创建refresh,设置自定义文本为字符串类型的特殊字符 - 2、下拉刷新 -*/ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0050', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0050 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0050") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0050 finish.`); - done() - }) - - /* -* @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0120 -* @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0120 -* @tc.desc 1、创建refresh,设置自定义文本为字符串类型的超长文本 - 2、下拉刷新 -*/ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0120', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0120 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0120") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0120 finish.`); - done() - }) - /* -* @tc.number SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0040 -* @tc.name SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0040 -* @tc.desc 1、创建refresh,设置自定义文本为字符串类型的超长文本 - 2、下拉刷新 -*/ - it('SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0040', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0040 start.`); - Settings.createWindow("testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0040") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let refreshListItem0 :Component = await driver.findComponent(ON.id('0')) - await Utils.sleep(200) - let pos = await refreshListItem0.getBoundsCenter() - await Utils.sleep(100) - await driver.swipe(pos.x,pos.y,pos.x,pos.y+200) - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_OTHER_REFRESH_PROMPTTEXT_0040 finish.`); - done() - }) - - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxAttributeTest/UIComponentPopupBoxAttribute.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxAttributeTest/UIComponentPopupBoxAttribute.test.ets deleted file mode 100644 index 6a9868b22c0ccbf3c0ab3d0e84df9218e05bf226..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxAttributeTest/UIComponentPopupBoxAttribute.test.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { afterEach, describe, expect, it } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@ohos.UiTest' - -/* - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ - -export default function UIComponentPopupBoxAttribute() { - - describe('UIComponentPopupBoxAttribute', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0510 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0510 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0510 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute051"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxAttribute0510")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - let textCom = await driver.findComponent(ON.id("UIComponentPopupBoxAttribute0511")); - let cc = await textCom.getText(); - if (!JSON.stringify(cc).includes('弹框开启后已定时关闭')) { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0510 error.`); - done(); - } - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0510 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0500 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0500 - * @tc.desc The custom popup set is the generic showInSubWindow=true - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0500 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute050"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxAttribute0500")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - let textCom = await driver.findComponent(ON.id("UIComponentPopupBoxAttribute0501")); - let cc = await textCom.getText(); - if (!JSON.stringify(cc).includes('弹框开启后已定时关闭')) { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0500 error.`); - done(); - } - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ATTRIBUTE_0500 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test.ets deleted file mode 100644 index eb02ccf53794e15cc33243ad16576e4b5e7a0c72..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxFullDialogInterfaceTest/UIComponentPopupBoxFullDialogInterface001.test.ets +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, MouseButton, 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 UIComponentPopupBoxFullDialogInterface001() { - - describe('UIComponentPopupBoxFullDialogInterface001', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0350 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0350 - * @tc.desc customDialog test isModal为false - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0350 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface001_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0350 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0360 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0360 - * @tc.desc customDialog test isModal为true - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0360 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface008_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0360 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0370 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0370 - * @tc.desc customDialog test isModal为true - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0370 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface0010_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0370 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0310 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0310 - * @tc.desc customDialog test iterations参数设置为-1 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0310 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface001_button_001')) - await Utils.sleep(1000) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0310 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0040 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0040 - * @tc.desc customDialog test autoCancel动态更新 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface002_button_001')) - await Utils.sleep(1000) - await button?.click() - await Utils.sleep(500) - await driver?.click(50, 100) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(500) - await driver?.click(50, 100) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0040 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0080 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0080 - * @tc.desc customDialog test open Two dialog &showInSubWindow - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0080 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface009_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let buttonTwo: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface009_button_02')) - await Utils.sleep(500) - await buttonTwo?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0080 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0090 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0090 - * @tc.desc customDialog test open Two dialog - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0090 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface003") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface003_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let buttonTwo: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface003_button_02')) - await Utils.sleep(500) - await buttonTwo?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0090 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0110 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0110 - * @tc.desc customDialog test offset - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0110 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface004") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface004_button_001')) - await Utils.sleep(1000) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0110 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0050 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0050 - * @tc.desc customDialog test change markColor - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0050 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface005") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface005_button_001')) - await Utils.sleep(500) - for (let index = 0; index < 4; index++) { - await Utils.sleep(500) - await button?.click() - await Utils.sleep(500) - await driver?.click(50, 100) - } - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0050 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0020 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0020 - * @tc.desc customDialog test change alignment - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0020 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface006") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface006_button_001')) - await Utils.sleep(500) - for (let index = 0; index < 5; index++) { - await Utils.sleep(500) - await button?.click() - await Utils.sleep(500) - await driver?.click(50, 100) - } - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0020 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0060 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0060 - * @tc.desc customDialog test change offset - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0060 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxFullDialogInterface007_button_001')) - await Utils.sleep(500) - for (let index = 0; index < 6; index++) { - await Utils.sleep(500) - await button?.click() - await Utils.sleep(500) - await driver?.click(50, 100) - } - await Utils.sleep(500) - windowSnap.snapShot() - await Utils.sleep(500) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_FULLDIALOG_0060 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPopupInterfaceTest/UIComponentPopupBoxPopupInterface001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPopupInterfaceTest/UIComponentPopupBoxPopupInterface001.test.ets deleted file mode 100644 index 049f8800687b8e445e67cb8225fdebada1034d31..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPopupInterfaceTest/UIComponentPopupBoxPopupInterface001.test.ets +++ /dev/null @@ -1,206 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, MouseButton, 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 UIComponentPopupBoxPopupInterface001() { - - describe('UIComponentPopupBoxPopupInterface001', () => { - - - /* - * @tc.number SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0020 - * @tc.name SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0020 - * @tc.desc customDialog test inputMethod - */ - it('SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0020 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let textInput: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_textInput_001')) - await Utils.sleep(500) - await textInput?.inputText("This is test text") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_REVERSEANALYSIS_0020 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0030 - * @tc.name SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0030 - * @tc.desc customDialog test inputMethod & open and close - */ - it('SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0030 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let textInput: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_textInput_001')) - let text: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_text_001')) - await Utils.sleep(500) - await textInput?.inputText("test") - await Utils.sleep(500) - await driver?.triggerKey(2049) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0030 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0040 - * @tc.name SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0040 - * @tc.desc customDialog test inputMethod - */ - it('SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let textInput: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_textInput_001')) - let text: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface001_text_001')) - await Utils.sleep(500) - await textInput?.inputText("test") - await Utils.sleep(500) - await driver?.triggerKey(2049) - await Utils.sleep(500) - await textInput?.inputText("test1") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_ANALYSE_UI_COMPONENT_POPUPBOX_POPUP_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0010 - * @tc.desc prompt.showDialog - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0010 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface002_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0120 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0120 - * @tc.desc prompt.showDialog & confirm - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0120 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface002_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let confirmButton: Component = await driver.findComponent(ON.text('confirm')) - await Utils.sleep(500) - await confirmButton?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0120 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0110 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0110 - * @tc.desc promptAction - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0110 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface003") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface003_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let confirmButton: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxPopupInterface003_button_002')) - await Utils.sleep(500) - await confirmButton?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_SCENARIOS_0110 finish.`); - done() - }) - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPromptToastSequenceTest/UIComponentPopupBoxPromptToastSequence.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPromptToastSequenceTest/UIComponentPopupBoxPromptToastSequence.test.ets deleted file mode 100644 index a5589bad6bf1432e1c40456152c8fb24fc1f4949..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxPromptToastSequenceTest/UIComponentPopupBoxPromptToastSequence.test.ets +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { afterEach, describe, expect, it } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@ohos.UiTest' - -/* - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ - -export default function UIComponentPopupBoxPromptToastSequence() { - - describe('UIComponentPopupBoxPromptToastSequence', () => { - - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0020 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0020 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0020 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence002"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0020")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0020 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0150 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0150 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0150 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence015"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0151")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - let ButtonCom1 = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0150")); - let pointButtonCenter1 = await ButtonCom1.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - await driver.click(pointButtonCenter1.x, pointButtonCenter1.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0150 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0080 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0080 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0080 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence008"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0080")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(4000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0080 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0140 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0140 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0140 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence014"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0140")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - let ButtonCom1 = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0141")); - let pointButtonCenter1 = await ButtonCom1.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - await driver.click(pointButtonCenter1.x, pointButtonCenter1.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0140 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0030 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0030 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence003"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0030")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0030 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0040 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0040 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence004"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0040")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0040 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0070 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0070 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0070 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence007"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0070")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0070 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0090 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0090 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0090 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence009"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0091")); - let ButtonCom1 = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0090")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - let pointButtonCenter1 = await ButtonCom1.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - await driver.click(pointButtonCenter1.x, pointButtonCenter1.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0090 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0050 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0050 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0050 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence005"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0050")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0050 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0060 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0060 - * @tc.desc The custom popup set is the generic showInSubWindow=false - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0060 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence006"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxPromptToastSequence0060")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSEQUENCE_0060 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsPopupTest/UIComponentPopupBoxSpecificationsPopup.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsPopupTest/UIComponentPopupBoxSpecificationsPopup.test.ets deleted file mode 100644 index 4b584d61470bf4bdb306a6f24f40bfd5df091b91..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsPopupTest/UIComponentPopupBoxSpecificationsPopup.test.ets +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { afterEach, describe, expect, it } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@ohos.UiTest' - -/* - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ - -export default function UIComponentPopupBoxSpecificationsPopup() { - - describe('UIComponentPopupBoxSpecificationsPopup', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0010 - * @tc.desc Verify the Menu component and test whether the modifier configuration is consistent with the original configuration when parameter index=1 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0010 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup001"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsPopup0010")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0010 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0020 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0020 - * @tc.desc Verify the Menu component and test whether the modifier configuration is consistent with the original configuration when parameter index=2 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0020 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup002"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsPopup0020")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0020 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0030 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0030 - * @tc.desc Verify the Menu component and test whether the modifier configuration is consistent with the original configuration when parameter index=3 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0030 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup003"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsPopup0030")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0030 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0040 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0040 - * @tc.desc Verify the MenuItem component and test whether the modifier configuration is consistent with the original configuration when parameter index=1 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup004"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsPopup0040")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0040 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0050 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0050 - * @tc.desc Verify the MenuItem component and test whether the modifier configuration is consistent with the original configuration when parameter index=2 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0050 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup005"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsPopup0050")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0050 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0060 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0060 - * @tc.desc Verify the MenuItem component and test whether the modifier configuration is consistent with the original configuration when parameter index=3 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0060 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup006"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsPopup0060")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(5000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_POPUP_0060 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets deleted file mode 100644 index d1ef9fb3eb5b5fd0fd601ff3a9108f0bbdf14aec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsShadowTest/UIComponentPopupBoxSpecificationsShadow.test.ets +++ /dev/null @@ -1,242 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { afterEach, describe, it } from '@ohos/hypium' -import Logger from '../model/Logger' -import Settings from '../model/Settings' -import Utils from '../model/Utils' -import windowSnap from '../model/snapShot' -import { Driver, ON } 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 UIComponentPopupBoxSpecificationsShadow() { - describe('UIComponentPopupBoxSpecificationsShadow', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0200 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0200 - * @tc.desc SelectDialog configures shadow ({radius: reference 100vp,type: ShadowType.COLOR, color: ColoringStrategy.PRIMARY offsetX: 30vp,offsetY: 30vp,fill:false}) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0200 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow020"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0200")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0200 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170 - * @tc.desc SelectDialog configures shadow ({radius: reference 30vp,type: ShadowType.COLOR, color: Color.Black offsetX: 30vp,offsetY: 30vp,fill: true}) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow017"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0170")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0170 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120 - * @tc.desc SelectDialog Configure shadow (ShadowStyle.OUTER_DEFAULT_LG) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow012"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0120")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0120 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180 - * @tc.desc SelectDialog configures shadow ({radius: reference 100vp,type: ShadowType.COLOR, color: ColoringStrategy.AVERAGE offsetX: 30vp,offsetY: 30vp,fill: false}) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow018"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0180")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0180 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130 - * @tc.desc SelectDialog Configure shadow (ShadowStyle.OUTER_DEFAULT_SM) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow013"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0130")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0130 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140 - * @tc.desc SelectDialog Configure shadow (ShadowStyle.OUTER_DEFAULT_XS) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow014"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0140")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0140 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160 - * @tc.desc SelectDialog Configure shadow (ShadowStyle.OUTER_FLOATING_SM) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow016"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0160")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0160 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210 - * @tc.desc SelectDialog configures shadow ({radius: reference 30vp,type: ShadowType.BLUR, color: "#FF00FF" offsetX: 30vp,offsetY: 30vp,fill: false}) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow021"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0210")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0210 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220 - * @tc.desc SelectDialog configures shadow ({radius: reference 30vp,type: ShadowType.BLUR, color: reference "#00FFFF" offsetX: 100vp,offsetY: 100vp,fill: false}) - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow022"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0220")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0220 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830 - * @tc.desc The SelectDialog configures shadow: undefined - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow083"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecificationsShadow0830")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_SHADOW_0830 finish.`); - done(); - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsTest/UIComponentPopupBoxSpecifications.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsTest/UIComponentPopupBoxSpecifications.test.ets deleted file mode 100644 index df8f62febaa7068ff33755e9427ac27829cdfb9c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxSpecificationsTest/UIComponentPopupBoxSpecifications.test.ets +++ /dev/null @@ -1,609 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * 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 UIComponentPopupBoxSpecifications() { - - describe('UIComponentPopupBoxSpecifications', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0610 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0610 - * @tc.desc Set the button size to only 50vp and snug to the right of the screen - bubble flicks down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0610 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications061"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0610")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0610 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0600 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0600 - * @tc.desc Set the button size to only 50vp and snug to the right of the screen - bubble pops up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0600 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications060"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0600")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0600 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0590 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0590 - * @tc.desc Set the button size to only 50vp and snug to the left of the screen - bubble flicks down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0590 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications059"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0590")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0590 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0620 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0620 - * @tc.desc Set the button size to only 50vp and close to the top of the screen - bubble up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0620 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications062"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0620")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0620 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0690 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0690 - * @tc.desc Set the button size to only 50vp and close to the top right of the screen - bubble flicks down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0690 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications069"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0690")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0690 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0640 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0640 - * @tc.desc Set the button size to only 50vp and close to the bottom of the screen - the bubble pops up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0640 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications064"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0640")); - let pointCenter = await SliderCom.getBoundsCenter(); - ; - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0640 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0650 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0650 - * @tc.desc Set the button size to only 50vp and close to the bottom of the screen - the bubble pops down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0650 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications065"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0650")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0650 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0790 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0790 - * @tc.desc Set the button size to only 50vp, arrowoffset set to a value of <0 and close to the top of the screen - the bubble pops down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0790 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications079"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0790")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0790 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0800 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0800 - * @tc.desc Set the button size to only 50VP, set arrowofset to <0 and pop up against the bubble at the bottom of the screen - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0800', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0800 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications080"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0800")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0800 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0710 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0710 - * @tc.desc Set the button size to only 50vp and snug to the bottom left of the screen - bubble pops down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0710 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications071"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0710")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0710 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0720 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0720 - * @tc.desc Set the button size to only 50vp and snug to the bottom right of the screen - bubble pops up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0720 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications072"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0720")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0720 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0630 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0630 - * @tc.desc Set the button size to only 50vp and close to the top of the screen - bubble flicks down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0630 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications063"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0630")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0630 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0700 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0700 - * @tc.desc Set the button size to only 50VP and close to the bottom left of the screen - bubble pops up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0700 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications070"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0700")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0700 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0670 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0670 - * @tc.desc Set the button size to only 50VD and close to the top left of the screen - bubble flicks down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0670 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications067"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0670")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0670 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0660 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0660 - * @tc.desc Set the button size to only 50vP and close to the top left of the screen - bubble up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0660 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications066"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0660")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0660 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0740 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0740 - * @tc.desc Set the button size to only 50vp, set arrowOffset to a value of <0 and stick to the left side of - * the screen - bubble up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0740 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications074"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0740")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0740 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0680 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0680 - * @tc.desc Set the button size to only 50vp and close to the top right of the screen - bubble up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0680 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications068"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0680")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0680 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0730 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0730 - * @tc.desc Set the button size to only 50vp and snug to the bottom right of the screen - bubble pops down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0730 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications073"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0730")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0730 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0830 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0830 - * @tc.desc Set the button size to only 50vp and close to the right side of the screen, offset to {x:-100.y:0} - * and the bubble to the right - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0830 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications083"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0830")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0830 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0760 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0760 - * @tc.desc Set the button size to only 50vp arrowOffset to a value of <0 and snug to the right of the screen - - * the bubble pops up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0760 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications076"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0760")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0760 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0750 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0750 - * @tc.desc Set the button size to only 50vp arrowOffset set to a value of <0 and close to the left side of the - * screen - the bubble pops down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0750 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications075"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0750")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0750 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0780 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0780 - * @tc.desc Set the button size to only 50VP arrowOffset set to a value of <0 and close to the top of - * the screen - the bubble pops up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0780 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications078"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0780")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0780 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0810 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0810 - * @tc.desc Set the button size to only 50vp, arrowOffset to <0 and close to the bottom of the screen - bubble pops down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0810 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications081"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0810")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0810 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0770 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0770 - * @tc.desc Set the button size to only 50 vp arrowOffset to a value of <0 and close to the right side of - * the screen - the bubble pops down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0770 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications077"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0770")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0770 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0840 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0840 - * @tc.desc Set button size to only 50vp and close to the top of the screen, offset to {x:0.y:100) Bubble and up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0840', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0840 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications084"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0840")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0840 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0850 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0850 - * @tc.desc Set button size to only 50vp and close to the bottom of the screen, offset to {x:0.y:-100} Bubble and down - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0850', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0850 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications085"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0850")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0850 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0820 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0820 - * @tc.desc Set button size to only 50vp and close to the left of the screen, offset to {x:100.y:0} bubble and left - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0820 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications082"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0820")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0820 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0580 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0580 - * @tc.desc Set the button size to only 50vp and snug to the left of the screen - bubble pops up - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0580', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0580 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications058"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentPopupBoxSpecifications0580")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_SPECIFICATIONS_0580 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxToastStyleInterfaceTest/UIComponentPopupBoxToastStyleInterface001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxToastStyleInterfaceTest/UIComponentPopupBoxToastStyleInterface001.test.ets deleted file mode 100644 index 4ba11fad1d659f692e0920ed9c71ee9f8e36897b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupBoxToastStyleInterfaceTest/UIComponentPopupBoxToastStyleInterface001.test.ets +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, MouseButton, ON } from '@ohos.UiTest' -import uiAppearance from '@ohos.uiAppearance' - -/* - * - * 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 UIComponentPopupBoxToastStyleInterface001() { - - describe('UIComponentPopupBoxToastStyleInterface001', () => { - - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0010 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0010 - * @tc.desc toast test 单行文本&dark - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxToastStyleInterface001_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(500) - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(500) - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT) - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0020 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0020 - * @tc.desc toast test 多行文本&dark - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0020 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxToastStyleInterface002_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(500) - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK) - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(500) - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT) - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0020 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0030 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0030 - * @tc.desc toast test showMode.TOP_MOST - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface004") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxToastStyleInterface004_button_001')) - let textInput: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxToastStyleInterface004_textInput_001')) - await Utils.sleep(1000) - await textInput?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(500) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0040 - * @tc.name SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0040 - * @tc.desc toast test message 超长 - */ - it('SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface003") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupBoxToastStyleInterface003_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_Ul_COMPONENT_POPUPBOX_PROMPT_TOASTSTYLE_0040 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupPromptInterfaceTest/UIComponentPopupPromptInterface001.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupPromptInterfaceTest/UIComponentPopupPromptInterface001.test.ets deleted file mode 100644 index f6d927187a6c1ecb829392b3e1f08aeb7b95a4cb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupPromptInterfaceTest/UIComponentPopupPromptInterface001.test.ets +++ /dev/null @@ -1,605 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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, MouseButton, 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 UIComponentPopupPromptInterface001() { - - describe('UIComponentPopupPromptInterface001', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0290 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0290 - * @tc.desc changeDuration = 1000s - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0290 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface001_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1500) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0290 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0300 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0300 - * @tc.desc changeDuration = 15000s - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0300 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface001_button_001')) - let changeDuration: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface001_button_002')) - await Utils.sleep(500) - await changeDuration?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0300 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0310 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0310 - * @tc.desc changeDuration = 5000s - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0310 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface001") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface001_button_001')) - let changeDuration: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface001_button_003')) - await Utils.sleep(500) - await changeDuration?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0310 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0270 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0270 - * @tc.desc bottom = 150px - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0270 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0270 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0280 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0280 - * @tc.desc bottom = 150vp - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0280 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_button_001')) - let changeBottom: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_change_01')) - await Utils.sleep(500) - await changeBottom?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0280 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0250 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0250 - * @tc.desc bottom = '0' - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0250 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_button_001')) - let changeBottom: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_change_02')) - await Utils.sleep(500) - await changeBottom?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0250 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0320 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0320 - * @tc.desc bottom = '-100' - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0320 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_button_001')) - let changeBottom: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_change_03')) - await Utils.sleep(500) - await changeBottom?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0320 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0260 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0260 - * @tc.desc bottom = '150aaa' - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0260 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_button_001')) - let changeBottom: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface002_change_04')) - await Utils.sleep(500) - await changeBottom?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0260 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0220 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0220 - * @tc.desc bottom = -100 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0220 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface003") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface003_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0220 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0230 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0230 - * @tc.desc bottom = 0 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0230 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface003") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface003_button_001')) - let changeBottom: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface003_change_01')) - await Utils.sleep(500) - await changeBottom?.click() - await Utils.sleep(500) - await button?.click() - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0230 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0010 - * @tc.desc show ActionMenu 同步返回result - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface004") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface004_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let item: Component = await driver.findComponent(ON.text('item1')) - await Utils.sleep(500) - await item?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0010 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0020 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0020 - * @tc.desc show ActionMenu 异步返回result - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface006") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface006_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let item: Component = await driver.findComponent(ON.text('item1')) - await Utils.sleep(500) - await item?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0010 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0040 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0040 - * @tc.desc show ActionMenu set4个button - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface006") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface006_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0110 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0110 - * @tc.desc show ActionMenu no title - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0110 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface005") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface005_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0110 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0080 - * @tc.name SSUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0080 - * @tc.desc show ActionMenu no title & setColor - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0080 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface005") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface005_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0080 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0120 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0120 - * @tc.desc show ActionMenu set title - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0120 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface006") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface006_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0120 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0140 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0140 - * @tc.desc show Dialog 异步返回result - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0140 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface007") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface007_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let item: Component = await driver.findComponent(ON.text('button1')) - await Utils.sleep(500) - await item?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0140 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0130 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0130 - * @tc.desc show Dialog 同步返回result - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0130 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface008") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface008_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - let item: Component = await driver.findComponent(ON.text('button1')) - await Utils.sleep(500) - await item?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0130 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0200 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0200 - * @tc.desc show Dialog not set title - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0200 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface009") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface009_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0200 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0210 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0210 - * @tc.desc show Dialog set title为string类型 - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0210 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface008") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface008_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0210 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0150 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0150 - * @tc.desc show Dialog test not set button - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0150 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0010") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface0010_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0150 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0160 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0160 - * @tc.desc show Dialog test set three button - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0160 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface008") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface008_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0160 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0190 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0190 - * @tc.desc show Dialog test set message为string - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0190 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface009") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface009_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0190 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0170 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0170 - * @tc.desc show Dialog test set 4个button - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0170 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0011") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface0011_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0170 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0180 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0180 - * @tc.desc show Dialog test not set message - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0180 start.`); - Settings.createWindow("testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0012") - await Utils.sleep(500) - let driver: Driver = Driver.create() - let button: Component = - await driver.findComponent(ON.id('UIComponentPopupPromptInterface0012_button_001')) - await Utils.sleep(500) - await button?.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_PROMPT_INTERFACE_0180 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxCalendarpickerInterfaceTest/UIComponentPopupboxCalendarpickerInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxCalendarpickerInterfaceTest/UIComponentPopupboxCalendarpickerInterface.test.ets deleted file mode 100644 index 56efac85bdcdde66b20abef1be9ebb5a36e2bfd4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxCalendarpickerInterfaceTest/UIComponentPopupboxCalendarpickerInterface.test.ets +++ /dev/null @@ -1,374 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, MouseButton, ON } from '@kit.TestKit'; - -export default function UIComponentPopupboxCalendarpickerInterface() { - - describe('UIComponentPopupboxCalendarpickerInterface', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0070 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0070 - * @tc.desc CalendarPicker:switch month - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0070 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - await calPicker.doubleClick(); - await Utils.sleep(500); - await driver.triggerKey(2012); - await Utils.sleep(500); - await driver.triggerKey(2012); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0070 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0080 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0080 - * @tc.desc CalendarPicker:switch month - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0080 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - let point =await calPicker.getBounds(); - await Utils.sleep(500); - await calPicker.doubleClick(); - await Utils.sleep(500); - await driver.triggerKey(2012); - await Utils.sleep(500); - await driver.triggerKey(2012); - await Utils.sleep(500); - await driver.mouseClick({x:point.right-100,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0080 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0060 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0060 - * @tc.desc CalendarPicker:switch date - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0060 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(500); - await driver.mouseClick({x:point.right-100,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0060 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0250 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0250 - * @tc.desc CalendarPicker:switch date - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0250 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0250") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0250')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0250 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0300 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0300 - * @tc.desc CalendarPicker:switch date&month - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0300 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(500); - await calPicker.doubleClick(); - await Utils.sleep(500); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(500); - await driver.mouseClick({x:point.right-100,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0300 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0040 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0040 - * @tc.desc CalendarPicker:switch year - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseDoubleClick({x:point.left+20,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(500); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(500); - await driver.mouseClick({x:point.right-100,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0040 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0050 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0050 - * @tc.desc CalendarPicker:switch date - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0050 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0050 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0030 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0030 - * @tc.desc CalendarPicker:switch year - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseDoubleClick({x:point.left+20,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(500); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0030 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0020 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0020 - * @tc.desc CalendarPicker:switch all - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - for (let index = 0; index < 4; index++) { - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await calPicker.doubleClick(); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.right-20,y:point.bottom-5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.left+20,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - } - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0020 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0320 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0320 - * @tc.desc CalendarPicker:onChange callback - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0320 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0250") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0250')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseClick({x:point.right-20,y:point.bottom-5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(500); - await calPicker.doubleClick(); - await Utils.sleep(500); - await driver.triggerKey(2013); - await Utils.sleep(500); - await calPicker.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0320 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0290 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0290 - * @tc.desc CalendarPicker:switch all - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0290 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await calPicker.doubleClick(); - await Utils.sleep(300); - await driver.triggerKey(2013); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.left+20,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0290 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0310 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0310 - * @tc.desc CalendarPicker:set Illegal Date - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0310 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0310") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0310')); - await Utils.sleep(500); - await calPicker.inputText('1999-13-32'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0310 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0330 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0330 - * @tc.desc CalendarPicker:System Date - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0330 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0330") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0330')); - let btn = await driver.findComponent(ON.id('calendarpickerInterface0330_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0330 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0010 - * @tc.desc CalendarPicker:switch all - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let calPicker = await driver.findComponent(ON.id('calendarpickerInterface0070')); - await Utils.sleep(500); - let point = await calPicker.getBounds(); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await calPicker.doubleClick(); - await Utils.sleep(300); - await driver.triggerKey(2013); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.left+20,y:point.top+20},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await driver.mouseDoubleClick({x:point.right-20,y:point.top+5},MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(300); - await calPicker.click(); - await Utils.sleep(300); - await calPicker.click(); - for (let index = 0; index < 12; index++) { - await Utils.sleep(300); - await driver.triggerKey(2013); - await Utils.sleep(300); - await calPicker.click(); - } - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_CALENDARPICKER_INTERFACE_0010 finish.`); - done(); - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxDatepickerDialogLanguageHabitTest/UIComponentPopupboxDatepickerDialogLanguageHabit.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxDatepickerDialogLanguageHabitTest/UIComponentPopupboxDatepickerDialogLanguageHabit.test.ets deleted file mode 100644 index e7bd7e98d0e917bfce122b159cc5e012722dc7cd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentPopupboxDatepickerDialogLanguageHabitTest/UIComponentPopupboxDatepickerDialogLanguageHabit.test.ets +++ /dev/null @@ -1,1346 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, MouseButton, ON } from '@kit.TestKit'; - -export default function UIComponentPopupboxDatepickerDialogLanguageHabit() { - - describe('UIComponentPopupboxDatepickerDialogLanguageHabit', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0050 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0050 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0050 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - Settings.switchLocales(); - await Utils.sleep(1000) - await btn.click(); - await Utils.sleep(500); - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0050 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0070 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0070 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0070 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - await Utils.sleep(500); - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0070 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0100 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0100 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0100 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('en-Latn-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0100 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0030 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0030 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0030 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000) - await btn.click(); - await Utils.sleep(500); - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0030 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0040 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0040 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0040 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000) - await btn.click(); - await Utils.sleep(500); - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0040 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0090 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0090 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0090 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - await Utils.sleep(500); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000) - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0090 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0110 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0110 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0110 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0110 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0010 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0010 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - await Utils.sleep(500); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - await btn.click(); - await Utils.sleep(500); - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0010 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0150 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0150 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0150 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0150 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0080 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0080 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0080 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(500); - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0080 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0140 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0140 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0140 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('ug-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0140 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0060 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0060 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0060 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePicker = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(1000); - Settings.switchCusLocales('ug-CN'); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let point = await datePicker.getBoundsCenter(); - await Utils.sleep(500); - await driver.mouseScroll({ - x: point.x, y: point.y - }, true, 2); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0060 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0120 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0120 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0120 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0120 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0130 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0130 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0130 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0050_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('bo-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0130 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('bo-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 3); - await Utils.sleep(500); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - // await driver.mouseClick({x:point2.left+150,y:point2.bottom+100},MouseButton.MOUSE_BUTTON_LEFT); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('bo-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('bo-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 2); - await Utils.sleep(500); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0210_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 2); - await Utils.sleep(500); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0170_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000) - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0190_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 2); - await Utils.sleep(500); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0200_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('ug-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 3); - await Utils.sleep(500); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('ug-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('ug-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('en-Latn-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 3); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0220_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('en-Latn-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('en-Latn-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0180_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 3); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0240_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 3); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0250_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0260 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0260 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0260 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - await Utils.sleep(500); - await cb1.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('en-Latn-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0260 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0270 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0270 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0270 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - await Utils.sleep(500); - await cb1.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0270 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0280 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0280 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0280 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - await Utils.sleep(500); - await cb1.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0280 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0300 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0300 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0300 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - await Utils.sleep(500); - await cb1.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('ug-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0300 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_1 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_1 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(500); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let timePicker = await driver.findComponent(ON.type('TimePicker')); - let point1 = await datePicker.getBounds(); - let point2 = await timePicker.getBounds(); - let centerX1 = (point1.left + point1.right) / 2; - let centerY1 = (point1.top + point1.bottom) / 2; - let centerX2 = (point2.left + point2.right) / 2; - let centerY2 = (point2.top + point2.bottom) / 2; - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX1, y: centerY1 - }, true, 3); - await Utils.sleep(1000); - await driver.mouseScroll({ - x: centerX2 - 80, y: centerY2 - }, true, 3); - await Utils.sleep(1000); - await driver.click(point2.left + 150, point2.bottom + 100); - await Utils.sleep(1500); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_1 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_2 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_2 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_2 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(300); - await cb1.click(); - await Utils.sleep(300); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_2 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_3 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_3 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_3', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_3 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hant-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let cb2 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb2')); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - await Utils.sleep(500); - await cb2.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(300); - let datePicker = await driver.findComponent(ON.type('DatePicker')); - let point1 = await datePicker.getBounds(); - await Utils.sleep(300); - await driver.click(point1.left, point1.bottom + 30); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0230_3 finish.`); - done(); - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0290 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0290 - * @tc.desc DatePicker - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0290 start.`); - Settings.createWindow("testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210") - await Utils.sleep(1000); - Settings.switchCusLocales('zh-Hans-CN'); - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let btn = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_btn')); - let cb1 = await driver.findComponent(ON.id('datepickerDialogLanguageHabit0210_cb1')); - await Utils.sleep(500); - await cb1.click(); - await Utils.sleep(500); - await btn.click(); - await Utils.sleep(1000); - Settings.switchCusLocales('bo-CN'); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_LANGUAGEHABIT_0290 finish.`); - done(); - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets deleted file mode 100644 index 77c7949e6e7fe062286012c99cf86d77ba3f1087..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperAcrossTest/UIComponentScrollSwiperAcross.test.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' - -export default function UIComponentScrollSwiperAcross() { - describe('UIComponentScrollSwiperAcross', () => { - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0010 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010") - await Utils.sleep(1000) - windowSnap.snapShot() - let driver: Driver = Driver.create() - let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0010_ChangeIndex')); - button_ChangeIndex.click() - await Utils.sleep(1000) - windowSnap.snapShot() - let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0010_ShowNext')); - button_ShowNext.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0010 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0030 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0030 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0030_ChangeIndex')); - button_ChangeIndex.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0030 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0060_Remove')); - button_ChangeIndex.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button_ChangeIndex:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperAcross0060_ChangeIndex')); - button_ChangeIndex.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ACROSS_0060 finish.`); - done() - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets deleted file mode 100644 index 1169f15bc574347f786ff4b08e067cb9c29150c0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperArrowHeadTest/UIComponentScrollSwiperArrowHead.test.ets +++ /dev/null @@ -1,498 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver, ON, MouseButton, PointerMatrix } from '@ohos.UiTest' - -export default function UIComponentScrollSwiperArrowHead() { - - describe('UIComponentScrollSwiperArrowHead', () => { - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0010 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0010") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0010 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0020 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0020") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0020 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0030 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0030") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0030 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0040 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0040") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0040 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0610 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0610") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0610 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0620 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0620") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0620 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0630 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0630"); - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0630 finish.`); - done(); - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0640 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0640"); - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0640 finish.`); - done(); - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0650 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0650"); - await Utils.sleep(1000); - let driver = Driver.create(); - let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0650_001")); - let point = await swiper.getBoundsCenter(); - await driver.mouseClick({ - x: point.x, y: point.y - }, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - let rightArrow = await driver.findComponent(ON.type("RightArrow")); - let arrowPoint = await rightArrow.getBoundsCenter(); - await driver.mouseClick({ - x: arrowPoint.x, y: arrowPoint.y - }, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(3000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0650 finish.`); - done(); - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0660 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0660") - await Utils.sleep(1000); - let driver = Driver.create(); - let swiper = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0660_001")); - let point = await swiper.getBoundsCenter(); - await driver.mouseClick({ - x: point.x, y: point.y - }, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - let rightArrow = await driver.findComponent(ON.type("RightArrow")); - let arrowPoint = await rightArrow.getBoundsCenter(); - await driver.mouseClick({ - x: arrowPoint.x, y: arrowPoint.y - }, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(3000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0660 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0670 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0670") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0670_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0670 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0680 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0680") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0680_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0680 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0690 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0690") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0690 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0700 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0700") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0700 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0710 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0710") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0710 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0720 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0720") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0720 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0730 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0730") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0730_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0730 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0740 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0740") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0740_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0740 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0750 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0750") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0750_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0750 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0760 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0760") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0760_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0760 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0770 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0770") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0770_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0770 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0780 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0780") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0780_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - await driver.mouseMoveTo({x:point.x, y:point.y}); - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0780 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0790 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0790") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0790_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - - let swiper = await driver.findComponent(ON.type("SwiperIndicator")); - let swiperPoint = await swiper.getBoundsCenter(); - await driver.mouseMoveTo({ - x: swiperPoint.x, y: swiperPoint.y - }); - - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0790 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0800', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0800 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0800") - await Utils.sleep(3000); - let driver: Driver = Driver.create(); - let swiperButton = await driver.findComponent(ON.id("UIComponentScrollSwiperArrowHead0800_001")); - let button = await swiperButton.getBoundsCenter(); - await driver.mouseClick({ - x: button.x, y: button.y - }, MouseButton.MOUSE_BUTTON_LEFT); - let swiperArrow = await driver.findComponent(ON.type("RightArrow")); - let point = await swiperArrow.getBoundsCenter(); - - let swiper = await driver.findComponent(ON.type("SwiperIndicator")); - let swiperPoint = await swiper.getBoundsCenter(); - await driver.mouseMoveTo({ - x: swiperPoint.x, y: swiperPoint.y - }); - - await Utils.sleep(2000); - await driver.mouseClick({x:point.x, y:point.y}, MouseButton.MOUSE_BUTTON_LEFT); - await Utils.sleep(3000); - await swiperArrow.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_ARROWHEAD_0800 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets deleted file mode 100644 index d814c97a0e1cfcd9e1d41e2ad91f718b472128da..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperDisplaycountTest/UIComponentScrollSwiperDisplaycount.test.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' - -export default function UIComponentScrollSwiperDisplaycount() { - describe('UIComponentScrollSwiperDisplaycount', () => { - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0140 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0140 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140") - await Utils.sleep(1000) - windowSnap.snapShot() - let driver: Driver = Driver.create() - let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperDisplaycount0140_ShowPrevious')); - button_ShowNext.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0140 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0130 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0130 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140") - await Utils.sleep(1000) - windowSnap.snapShot() - let driver: Driver = Driver.create() - let button_ShowPrevious:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperDisplaycount0130_ShowNext')); - button_ShowPrevious.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_DISPLAYCOUNT_0130 finish.`); - done() - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets deleted file mode 100644 index 3611b9713ea70203d241ba3138eefe536e5adbcd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfaceTest/UIComponentScrollSwiperInterface.test.ets +++ /dev/null @@ -1,890 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' - -export default function UIComponentScrollSwiperInterface() { - describe('UIComponentScrollSwiperInterface', () => { - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0040") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0040 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0820 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0830 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0830 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0830 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3160 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3160 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3160 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3300 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3300 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3300 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3310 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3310 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3310 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3330 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3330 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3330 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3340 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3340 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3340 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3350 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3350 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3350 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3380 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3380 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3380 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3430 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3430 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3430 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3450 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3450 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3450 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3460 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3460 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3460 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3500 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3500 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3500 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3510 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3510 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3510 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3390 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3390 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3390 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3520 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3520 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3520 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3530 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3530 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3530 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1010 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1010") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1010 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1030 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1030") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1030 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1040 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1040") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1040 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1050 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1050") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1050 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1180 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1180") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1180 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1190 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1190") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1190 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1210 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1210") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1210 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1220 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1220") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1220 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1230 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1230") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1230 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1260 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1260") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1260 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1270 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1270") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1270 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2910', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2910 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2910") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2910 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3030 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3030") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3030 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3040 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3040") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3040 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3050 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3050") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3050 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3060 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3060") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3060 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3070 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3070") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3070 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3120 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3120") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3120 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3130 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3130") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3130 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3140 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3140") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3140 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3550 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3550 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3550 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3560 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3560 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3560 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3570 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3570 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3570 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3600 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3600 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3600 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3610 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3610 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3610 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3700 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3700 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3700 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2180 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2180 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2180 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2190 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2190 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2190 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2200 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2200 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2210 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2210 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2210 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2230 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2230 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2230 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2330 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2330 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2330 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2340 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2340 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2340 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2350 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2350 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2350 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2460 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2460 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2460 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2560 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2560 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2560 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2570 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2570 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2570 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2720 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2720 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2720 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2790 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2790 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2790 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0890 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0890', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0890 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0890 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0960 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0960 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0960 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0980 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0980', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0980 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0980 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0990 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0990', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0990 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_0990 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3780 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3780 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3780 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3790 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3790 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperInterface3790_ShowNext')); - button_ShowNext.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3790 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3810 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3810 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperInterface3810_ShowNext')); - button_ShowNext.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3810 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3820 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3810 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820") - await Utils.sleep(1000) - let driver: Driver = Driver.create() - let button_ShowPrevious:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperInterface3820_Previous')); - button_ShowPrevious.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_3820 finish.`); - done() - }) - - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1660 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1660") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1660 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1670 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1670") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1670 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1680 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1680") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1680 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1710 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1710") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1710 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1780 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1780") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1780 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1860', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1860 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1860") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1860 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1870', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1870 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1870") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1870 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1890', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1890 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1890") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1890 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1900', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1900 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1900") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1900 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1970', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1970 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1970") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_1970 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2050 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2050") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2050 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2060 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2060") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2060 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2110 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2110") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2110 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2160 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2160") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2160 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2370 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACE_2370 finish.`); - done() - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..add2a57e3caf2a4c26fc7aa878de4a14dff0d1f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperInterfacemixTest/UIComponentScrollSwiperInterfacemix.test.ets @@ -0,0 +1,361 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, beforeEach, 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, MouseButton, ON, Component } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { KeyCode } from '@kit.InputKit' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentScrollSwiperInterfacemix() { + + describe('UIComponentScrollSwiperInterfacemix', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0430 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0430") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + + await driver.triggerKey(KeyCode.KEYCODE_TAB) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_TAB) + await driver.triggerKey(KeyCode.KEYCODE_SPACE) + await driver.triggerKey(KeyCode.KEYCODE_ENTER) + focusControl.requestFocus('TextInput0430') + await driver.triggerKey(KeyCode.KEYCODE_DPAD_DOWN) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_LEFT) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0430 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0440 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0440") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + + await driver.triggerKey(KeyCode.KEYCODE_TAB) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_TAB) + await driver.triggerKey(KeyCode.KEYCODE_SPACE) + await driver.triggerKey(KeyCode.KEYCODE_ENTER) + focusControl.requestFocus('TextInput0440') + await driver.triggerKey(KeyCode.KEYCODE_DPAD_DOWN) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_LEFT) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0440 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0450 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0450") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + + await driver.triggerKey(KeyCode.KEYCODE_TAB) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_TAB) + await driver.triggerKey(KeyCode.KEYCODE_SPACE) + await driver.triggerKey(KeyCode.KEYCODE_ENTER) + focusControl.requestFocus('TextInput0450') + await driver.triggerKey(KeyCode.KEYCODE_DPAD_DOWN) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_LEFT) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0450 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0460 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0460") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + + await driver.triggerKey(KeyCode.KEYCODE_TAB) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_TAB) + await driver.triggerKey(KeyCode.KEYCODE_SPACE) + await driver.triggerKey(KeyCode.KEYCODE_ENTER) + focusControl.requestFocus('TextInput0460') + await driver.triggerKey(KeyCode.KEYCODE_DPAD_DOWN) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_LEFT) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0460 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0470 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0470") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + + await driver.triggerKey(KeyCode.KEYCODE_TAB) + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_TAB) + await driver.triggerKey(KeyCode.KEYCODE_SPACE) + await driver.triggerKey(KeyCode.KEYCODE_ENTER) + focusControl.requestFocus('TextInput0470') + await driver.triggerKey(KeyCode.KEYCODE_DPAD_DOWN) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_LEFT) + await driver.triggerKey(KeyCode.KEYCODE_DPAD_RIGHT) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0470 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0890 + * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0890 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0890', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0890 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0890"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('TextInput0890')); + await Utils.sleep(500); + await textInput.inputText('testtesttesawda'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let point = await textInput.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x + 320, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_0890 end.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1120 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1120") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + await driver.triggerKey(KeyCode.KEYCODE_SPACE) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1120 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1140 + * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1140 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1140 start.`); + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1140"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('TextInput1140')); + await Utils.sleep(500); + await textInput.inputText('testtesttes'); + await Utils.sleep(500); + await driver.triggerCombineKeys(2047, 2099); + await Utils.sleep(500); + await driver.triggerKey(2070); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1140 end.`); + done(); + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1150 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1150") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + let textInputCom = await driver.findComponent(ON.id('TextInput1150')) + let textInputComBounds = await textInputCom.getBounds(); + await Utils.sleep(100) + await textInputCom.inputText("123") + await Utils.sleep(2000) + let textInputComBound = await textInputCom.getBoundsCenter(); + await Utils.sleep(2000) + await driver.click((textInputComBounds.right - 30), textInputComBound.y) + await Utils.sleep(2000) + await textInputCom.inputText("456") + await Utils.sleep(2000) + await driver.mouseClick({ + x: textInputComBounds.right - 30, y: textInputComBound.y + }, MouseButton.MOUSE_BUTTON_LEFT) + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1150 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1160 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1160") + await Utils.sleep(1000) + let driver: Driver = Driver.create() + let textInputCom = await driver.findComponent(ON.id('TextInput1160')) + let textInputComBounds = await textInputCom.getBounds() + await Utils.sleep(1000) + let textInputComBound = await textInputCom.getBoundsCenter(); + await Utils.sleep(2000) + await driver.click((textInputComBounds.right - 30), textInputComBound.y) + await Utils.sleep(1000) + await driver.mouseClick({ + x: textInputComBounds.right - 30, y: textInputComBound.y + }, MouseButton.MOUSE_BUTTON_LEFT) + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1160 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1170 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1170") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1170 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1180 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1180") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1180 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1190 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1190") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1190 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1200 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1200") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1200 finish.`); + done() + }) + + it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1220 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + Settings.createWindow("testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1220") + await Utils.sleep(1000) + await windowSnap.snapShot() + await Utils.sleep(2000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_INTERFACEMIX_1220 finish.`); + done() + }) + + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets deleted file mode 100644 index 445abeb08c950163382684dac11f370114b09185..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperLayoutTest/UIComponentScrollSwiperLayout.test.ets +++ /dev/null @@ -1,2457 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { UiComponent, Component, Driver, ON, BY, MouseButton } from '@ohos.UiTest'; - -export default function UIComponentScrollSwiperLayout() { - describe('UIComponentScrollSwiperLayout', () => { - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0010 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0010 - * @tc.desc ADD SWIPER, main shaft, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0010 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0010") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0010 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0020 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0020 - * @tc.desc ADD SWIPER, crossed-axis, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0020 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0020") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0020 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0030 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0030 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0030 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0030") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0040 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0040 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0040 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0040") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0040 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0050 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0050 - * @tc.desc ADD SWIPER, crossed-axis, border = 10, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0050 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0050") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0050 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0060 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0060 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, border = 10, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0060 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0060") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0060 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0070 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0070 - * @tc.desc ADD SWIPER, crossed-axis, padding = 10, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0070 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0070") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0070 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0080 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0080 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, padding = 10, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0080 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0080") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0080 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0090 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0090 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, prevMargin/nextMargin+itemSpace - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0090 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0090") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0090 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0100 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0100 - * @tc.desc ADD SWIPER, main shaft, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0100 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0100") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0100 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0110 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0110 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0110 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0110") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0110 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0120 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0120 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0120 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0120") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0120 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0130 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0130 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0130 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0130") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0130 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0140 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0140 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayMode = AutoLinear, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0140 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0140") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0140 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0150 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0150 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = AutoLinear, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0150 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0150") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0150 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0160 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0160 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayMode = AutoLinear, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0160 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0160") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0160 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0170 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0170 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = AutoLinear, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0170 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0170") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0170 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0180 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0180 - * @tc.desc ADD SWIPER, main shaft, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0180 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0180") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0180 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0190 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0190 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0190 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0190") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0190 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0200 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0200 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0200 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0200") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0200 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0210 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0210 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0210 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0210") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0210 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0220 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0220 - * @tc.desc ADD SWIPER, main shaft, displayMode = Stretch or displayCount = 1, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0220 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0220") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0220 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0230 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0230 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = Stretch or displayCount = 1, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0230 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0230") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0230 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0240 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0240 - * @tc.desc ADD SWIPER, main shaft, displayMode = Stretch or displayCount = 1, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0240 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0240") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0240 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0250 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0250 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = Stretch or displayCount = 1, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0250 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0250") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0250 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0260 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0260 - * @tc.desc ADD SWIPER, main shaft, displayCount = 3, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0260 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0260") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0260 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0270 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0270 - * @tc.desc ADD SWIPER, crossed-axis, displayCount = 3, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0270 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0270") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0270 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0280 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0280 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayCount = 3, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0280 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0280") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0280 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0290 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0290 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayCount = 3, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0290 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0290") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0290 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0300 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0300 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayCount = 3, width = 200, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0300 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0300") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0300 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0310 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0310 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayCount = 3, width = 200, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0310 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0310") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0310 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0320 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0320 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayCount = 3, width = 200, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0320 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0320") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0320 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0330 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0330 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayCount = 3, width = 200, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0330 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0330") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0330 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0340 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0340 - * @tc.desc ADD SWIPER, main shaft, width = 200, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0340 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0340") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0340 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0350 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0350 - * @tc.desc ADD SWIPER, crossed-axis, width = 200, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0350 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0350") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0350 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0360 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0360 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, width = 200, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0360 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0360") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0360 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0370 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0370 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, width = 200, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0370 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0370") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0370 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0380 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0380 - * @tc.desc ADD SWIPER, main shaft, width = 200, displayMode = AutoLinear, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0380 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0380") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0380 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0390 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0390 - * @tc.desc ADD SWIPER, crossed-axis, width = 200, displayMode = AutoLinear, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0390 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0390") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0390 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0400 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0400 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, width = 200, displayMode = AutoLinear, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0400 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0400") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0400 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0410 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0410 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, width = 200, displayMode = AutoLinear, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0410', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0410 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0410") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0410 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0420 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0420 - * @tc.desc ADD SWIPER, main shaft, width = 200, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0420 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0420") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0420 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0430 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0430 - * @tc.desc ADD SWIPER, crossed-axis, width = 200, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0430 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0430") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0430 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0440 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0440 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, width = 200, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0440', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0440 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0440") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0440 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0450 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0450 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, width = 200, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0450 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0450") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0450 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0460 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0460 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, width = 200, border = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0460 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0460") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0460 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0470 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0470 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, width = 200, border = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0470 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0470") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0470 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0480 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0480 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, width = 200, displayCount = 3, padding = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0480', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0480 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0480") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0480 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0490 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0490 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, width = 200, displayCount = 3, padding = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0490', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0490 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0490") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0490 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0500 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0500 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, width = 200, displayCount = 3, prevMargin/nextMargin+itemSpace, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0500 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0500") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0500 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0510 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0510 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, width = 200, displayCount = 3, prevMargin/nextMargin+itemSpace - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0510 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0510") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0510 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0520 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0520 - * @tc.desc ADD SWIPER, Two pictures, Swiper sub node spindle layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0520 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0520") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0520 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0530 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0530 - * @tc.desc ADD SWIPER, Two pictures, Swiper child node cross axis layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0530 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0530") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0530 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0540 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0540 - * @tc.desc ADD SWIPER, Two pictures, Swiper sub node spindle layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0540 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0540") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0540 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0550 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0550 - * @tc.desc ADD SWIPER, Two pictures, Swiper child node cross axis layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0550 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0550") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0550 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0560 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0560 - * @tc.desc ADD SWIPER, Two pictures, Swiper sub node spindle layout, displayCount = 3, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0560 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0560") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0560 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0570 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0570 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayCount = 3, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0570 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0570") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0570 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0580 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0580 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayCount = 3, prevMargin/nextMargin+itemSpace - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0580', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0580 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0580") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0580 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0590 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0590 - * @tc.desc ADD SWIPER, main shaft, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0590 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0590") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0590 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0600 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0600 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0600 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0600") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0600 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0610 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0610 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0610 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0610") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0610 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0620 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0620 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0620 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0620") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0620 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0630 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0630 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, border = 10, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0630 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0630") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0630 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0640 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0640 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, border = 10, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0640 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0640") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0640 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0650 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0650 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, padding = 10, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0650 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0650") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0650 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0660 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0660 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, padding = 10, displayMode = AutoLinear - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0660 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0660") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0660 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0670 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0670 - * @tc.desc ADD SWIPER, main shaft, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0670 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0670") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0670 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0680 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0680 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0680 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0680") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0680 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0690 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0690 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0690 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0690") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0690 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0700 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0700 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0700 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0700") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0700 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0710 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0710 - * @tc.desc ADD SWIPER, main shaft, border = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0710 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0710") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0710 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0720 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0720 - * @tc.desc ADD SWIPER, Two pictures, crossed-axis, border = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0720 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0720") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0720 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0730 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0730 - * @tc.desc ADD SWIPER, Two pictures, main shaft, padding = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0730 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0730") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0730 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0740 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0740 - * @tc.desc ADD SWIPER, Two pictures, crossed-axis, padding = 10, displayMode = Stretch or displayCount = 1 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0740 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0740") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0740 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0750 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0750 - * @tc.desc ADD SWIPER, Two pictures, main shaft, displayCount = 3, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0750 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0750") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0750 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0760 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0760 - * @tc.desc ADD SWIPER, Two pictures, crossed-axis, displayCount = 3, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0760 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0760") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0760 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0820 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0820 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayCount = 3, width = 200, padding = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0820 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0820") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0820 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0830 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0830 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayCount = 3, prevMargin/nextMargin+itemSpace - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0830 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0830") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0830 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0840 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0840 - * @tc.desc ADD SWIPER, main shaft, displayMode = AutoLinear, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0840', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0840 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0840") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0840 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0850 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0850 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = AutoLinear, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0850', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0850 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0850") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0850 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0860 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0860 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = AutoLinear, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0860', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0860 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0860") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0860 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0870 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0870 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = AutoLinear, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0870', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0870 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0870") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0870 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0880 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0880 - * @tc.desc ADD SWIPER, main shaft, displayMode = Stretch or displayCount = 1, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0880', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0880 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0880") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0880 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0890 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0890 - * @tc.desc ADD SWIPER, crossed-axis, displayMode = Stretch or displayCount = 1, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0890', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0890 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0890") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0890 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0900 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0900 - * @tc.desc ADD SWIPER, Swiper sub node spindle layout, displayMode = Stretch or displayCount = 1, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0900', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0900 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0900") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0900 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0910 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0910 - * @tc.desc ADD SWIPER, Swiper child node cross axis layout, displayMode = Stretch or displayCount = 1, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0910', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0910 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0910") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0910 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0920 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0920 - * @tc.desc ADD SWIPER, Two pictures, Swiper sub node spindle layout, border = 10, displayMode = Stretch or displayCount = 1, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0920', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0920 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0920") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0920 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0930 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0930 - * @tc.desc ADD SWIPER, Two pictures, Swiper child node cross axis layout, border = 10, displayMode = Stretch or displayCount = 1, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0930', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0930 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0930") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0930 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0940 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0940 - * @tc.desc ADD SWIPER, Two pictures, Swiper sub node spindle layout, padding = 10, displayMode = Stretch or displayCount = 1, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0940', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0940 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0940") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0940 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0950 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0950 - * @tc.desc ADD SWIPER, Two pictures, Swiper child node cross axis layout, displayMode = Stretch or displayCount = 1, padding = 10, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0950', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0950 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0950") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0950 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0960 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0960 - * @tc.desc ADD SWIPER, Two pictures, Swiper sub node spindle layout, displayMode = Stretch or displayCount = 1, prevMargin/nextMargin+itemSpace, width = 200 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0960 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0960") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0960 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0970 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0970 - * @tc.desc ADD SWIPER, Two pictures, main shaft, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0970', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0970 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0970") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0970 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0980 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0980 - * @tc.desc ADD SWIPER, Two pictures, crossed-axis, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0980', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0980 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0980") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0980 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0990 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0990 - * @tc.desc ADD SWIPER, Two pictures, Swiper sub node spindle layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0990', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0990 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0990") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0990 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1000 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1000 - * @tc.desc ADD SWIPER, Two pictures, Swiper child node cross axis layout, displayCount = 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1000', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1000 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1000") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1000 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1010 - * @tc.name SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1010 - * @tc.desc ADD SWIPER, Two pictures, crossed-axis, displayCount = 3, border = 10 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1010 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1010") - await Utils.sleep(3000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1010 finish.`); - done() - }) - - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0770 - * @tc.name SCROLL_SWIPER_LAYOUT - * @tc.desc Normal replacement of some string styles - * @tc.level Level 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0770 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0770 finish.`); - done() - }) - - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0790 - * @tc.name SCROLL_SWIPER_LAYOUT - * @tc.desc Normal replacement of some string styles - * @tc.level Level 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0790 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0790 finish.`); - done() - }) - - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0810 - * @tc.name SCROLL_SWIPER_LAYOUT - * @tc.desc Normal replacement of some string styles - * @tc.level Level 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0810 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_0810 finish.`); - done() - }) - - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1020 - * @tc.name SCROLL_SWIPER_LAYOUT - * @tc.desc Normal replacement of some string styles - * @tc.level Level 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1020 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1020 finish.`); - done() - }) - - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1040 - * @tc.name SCROLL_SWIPER_LAYOUT - * @tc.desc Normal replacement of some string styles - * @tc.level Level 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1040 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1040 finish.`); - done() - }) - - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1050 - * @tc.name SCROLL_SWIPER_LAYOUT - * @tc.desc Normal replacement of some string styles - * @tc.level Level 3 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1050 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1050 finish.`); - done() - }) - - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1060 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1060 finish.`); - done() - }) - - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1080 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1080") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1080 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1090 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1090") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1090 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1100 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1100") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1100 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1110 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1110") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1110 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1120 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1120") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1120 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1130 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1130") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1130 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1140 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1140") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1140 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1150 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1150") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1150 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1160 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1160") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1160 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1170 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1170") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1170 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1180 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1180") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1180 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1190 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1190") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1190 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1200 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1200") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1200 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1210 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1210") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1210 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1220 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1220") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1220 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1230 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1230") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1230 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1240 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1240") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1240 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1250 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1250") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1250 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1260 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1260") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1260 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1270 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1270") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1270 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1280 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1280") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1280 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1290 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1290") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1290 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1300 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1300") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1300 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1310 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1310") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1310 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1320 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1320") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1320 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1330 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1330") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1330 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1340 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1340") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1340 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1350 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1350") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1350 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1360 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1360") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1360 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1370 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1370") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1370 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1380 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1380") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1380 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1390 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1390") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1390 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1400 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1400") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1400 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1410', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1410 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1410") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1410 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1420 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1420") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1420 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1430 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1430") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1430 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1440', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1440 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1440") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1440 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1450 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1450") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1450 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1460 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1460") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1460 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1470 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1470") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1470 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1480', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1480 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1480") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1480 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1490', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1490 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1490") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1490 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1500 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1500 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1510 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1510 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1520 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1520") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1520 finish.`); - done() - }) - - - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1530 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1530") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1530 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1540 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1540") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1540 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1550 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1550") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1550 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1560 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1560") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1560 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1570 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1570") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1570 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1580', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1580 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1580") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1580 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1590 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1590") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1590 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1600 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1600") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1600 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1610 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1610") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1610 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1620 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1620") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1620 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1630 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1630") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1630 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1640 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1640") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1640 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1650 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1650") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1650 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1660 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1660") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1660 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1670 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1670") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1670 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1680 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1680") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1680 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1690 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1690") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1690 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1700 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1700") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1700 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1710 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1710") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1710 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1720 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1720") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1720 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1730 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1730") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1730 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1740 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1740") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1740 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1750 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1750") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1750 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1760 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1760") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1760 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1770 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1770") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1770 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1780 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1780") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1780 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1790 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1790") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1790 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1860', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1860 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1860") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1860 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1870', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1870 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1870") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1870 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1880', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1880 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1880") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1880 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1890', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1890 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1890") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1890 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1900', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1900 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1900") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1900 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1910', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1910 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1910") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1910 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1920', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1920 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1920") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1920 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1930', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1930 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1930") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1930 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1940', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1940 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1940") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1940 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1950', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1950 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1950") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1950 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1960 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1960") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1960 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1970', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1970 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1970") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1970 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1980', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1980 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1980") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1980 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1990', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1990 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1990") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1990 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2000', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2000 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2000") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2000 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2010 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2010") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2010 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2020 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2020") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2020 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2030 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2030") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2030 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2040 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2040") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2040 finish.`); - done() - }) - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2050 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2050") - await Utils.sleep(4000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2050 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1800 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1800', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1800 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1800 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1810 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1810 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1810 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1820 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1820 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1820 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1830 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1830 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830") - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1830 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1850 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1840', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1840 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1840 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1850 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1850', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1850 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_1850 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2060 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2060 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2060 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2070 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2070 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2070 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2080 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2080 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2080 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2090 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2090 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2090 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2100 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2100 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2100 finish.`); - done() - }) - /** - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2110 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2110 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_LAYOUT_2110 finish.`); - done() - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets deleted file mode 100644 index 45774daa06b73cc24a86ec09b5236769d0be1526..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperTeaceTest/UIComponentScrollSwiperTeace.test.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' - -export default function UIComponentScrollSwiperTeace() { - describe('UIComponentScrollSwiperTeace', () => { - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0070 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0070 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070") - await Utils.sleep(1000) - windowSnap.snapShot() - let driver: Driver = Driver.create() - let button_ShowNext:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperTeace0070_ShowNext')); - button_ShowNext.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_Teace_0070 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0080 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_TEACE_0080 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080") - await Utils.sleep(1000) - windowSnap.snapShot() - let driver: Driver = Driver.create() - let button_ShowPrevious:Component =await driver.findComponent(ON.id('UIComponentScrollSwiperTeace0080_ShowPrevious')); - button_ShowPrevious.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_Teace_0080 finish.`); - done() - }) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets deleted file mode 100644 index 47cb0da7dbf8ad263f98c1a06e64617a281db99f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentScrollSwiperUxTest/UIComponentScrollSwiperUx.test.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON, PointerMatrix } from '@ohos.UiTest' - -export default function UIComponentScrollSwiperUx() { - - describe('UIComponentScrollSwiperUx', () => { - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0520 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0520 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520") - await Utils.sleep(1000) - let driver = Driver.create(); - await driver.fling({x: 500, y: 480},{x: 450, y: 480},5,20000); - await Utils.sleep(3000); - windowSnap.snapShot() - await Utils.sleep(4000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0520 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0010 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0010 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010") - await Utils.sleep(1000) - let driver = Driver.create(); - await driver.fling({x: 300, y: 100},{x: 0, y: 100},5,600); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0010 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0020 - */ - it('SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0020 start.`); - Settings.createWindow("testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020") - await Utils.sleep(1000) - let driver = Driver.create(); - await driver.fling({x: 300, y: 100},{x: 0, y: 100},5,600); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(3000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SCROLL_SWIPER_UX_0020 finish.`); - done() - }) - - - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFormComponentTransparentTest/UIComponentSpecialComponentsFormComponentTransparent.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFormComponentTransparentTest/UIComponentSpecialComponentsFormComponentTransparent.test.ets deleted file mode 100644 index 12c11f63f67cd94f3bfcf75b4f3b7c5f2f53145d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsFormComponentTransparentTest/UIComponentSpecialComponentsFormComponentTransparent.test.ets +++ /dev/null @@ -1,2449 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * - * 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 UIComponentSpecialComponentsFormComponentTransparent() { - - describe('UIComponentSpecialComponentsFormComponentTransparent', () => { - - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1260 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1260 - * @tc.desc Verify that Popup's CustomPopupOptions.arrowWidth parameter type Dimension (Resource):r(app.media.string ") references 30PX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1260 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent126"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1260")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1260 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1540 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1540 - * @tc.desc Verify CustomPopupOptions for Popup. The shadow(ShadowOptions) parameter type is color(ColoringStrategy):PRIMARY - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1540 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent154"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1540")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1540 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0100 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0100 - * @tc.desc Verify the arrowOffset of Popup. The parameter type is Resource: 15% - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0100 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent010"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0100")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0100 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0390 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0390 - * @tc.desc Verify that Popup's targetSpaceLength parameter type Resource:Sr(app.media.string) references 30px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0390 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent039"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0390")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0390 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1520 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1520 - * @tc.desc CustomPopupOptions for Popup, shadow (ShadowOptions) parameter type color(ColoringStrategy):INVERT - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1520 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent152"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1520")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(2000); - Logger.info('TEST', `SUB_ACE UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1520 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0130 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0130 - * @tc.desc Validate the mask of Popup with the argument type boolean: true - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0130 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent013"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0130")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0130 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1300 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1300 - * @tc.desc Validation Popup CustomPopupOptions, arrowHeight parameter type Dimension (FP) : 30 FP - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1300 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent130"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1300")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1300 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1570 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1570 - * @tc.desc Verify that CustomPopupOptions for Popup, shadow(ShadowOptions) parameter type offsetX(Resource): r("app.media.string ") references 30px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1570 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent157"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1570")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1570 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1230 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1230 - * @tc.desc Validation Popup CustomPopupOptions. ArrowWidth parameter type Dimension (FP) : 30 FP - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1230 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent123"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1230")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1230 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1500 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1500 - * @tc.desc Verify the CustomPopupOptions for Popup, shadow (ShadowOptions) parameter type color string):"ee4508de" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1500 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent150"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1500")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1500 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1770 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1770 - * @tc.desc Verify the CustomPopupOptions. backgroundBlurStyle parameter type of Popup BlurStyle. BACKGROUND_ULTRA_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1770 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent177"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1770")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1770 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0190 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0190 - * @tc.desc Verify that the messageOptions. textColor parameter type of Popup is ResourceColor(string):ee4508de - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0190 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent019"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0190")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0190 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1280 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1280 - * @tc.desc Validate the CustomPopupOptions.arrowHeight parameter type Dimension (PX):30PX for Popup - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1280 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent128"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1280")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1280 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1530 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1530 - * @tc.desc Verify the CustomPopupOptions of Popup, shadow(ShadowOptions) parameter type color(ColoringStrategy):AVERAGE - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1530 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent153"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1530")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1530 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1780 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1780 - * @tc.desc Validation Popup CustomPopupOptions, backgroundBlurStyle parameter types BlurStyle: NONE - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1780 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent178"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1780")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1780 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0820 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0820 - * @tc.desc Verify that the Popup backaroundBlurStyle parameter is set to COMPONENT_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0820 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent082"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0820")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0820 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0170 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0170 - * @tc.desc Verify that the messageOptions.textColor parameter type of Popup is ResourceColor(Color):0x008000 - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0170 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent017"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0170")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0170 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1220 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1220 - * @tc.desc Validation Popup CustomPopupOptions, arrowWidth parameter type Dimension (VP) : 30 VP - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1220 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent122"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1220")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1220 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1310 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1310 - * @tc.desc Validation Popup CustomPopupOptions. ArrowHeight parameter type Dimension (LPX) : 30 LPX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1310 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent131"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1310")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1310 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0600 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0600 - * @tc.desc Verify that Popup's shadow, references color.gray - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0600 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent060"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0600")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0600 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1290 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1290 - * @tc.desc Validation Popup CustomPopupOptions. ArrowHeight parameter type Dimension (VP) : 30 VP - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1290 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent129"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1290")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1290 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0630 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0630 - * @tc.desc Verify that the type of the Popup shadowColoringStrategy parameter is PRIMARY - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0630 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent063"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0630")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0630 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0830 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0830 - * @tc.desc Verify the backgroundBlurStyle of Popup. The type of the BlurStyle parameter is COMPONENT_ULTRA_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0830 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent083"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0830")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0830 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0620 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0620 - * @tc.desc Verify that the type of the shadow.ColoringStrategy parameter of Popup is AVERAGE - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0620 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent062"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0620")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0620 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0360 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0360 - * @tc.desc Verify that Popup messageOptions,style parameter type FontStyle:Italic - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0360 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent036"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0360")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0360 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1470 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1470 - * @tc.desc Verify CustomPopupOptions for Popup. The shadow(ShadowOptions) parameter type is BLUR - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1470 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent147"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1470")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1470 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1760 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1760 - * @tc.desc Verify the CustomPopupOptions backgroundBlurStyle parameter type of Popup BlurStyle: BACKGROUND_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1760 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent176"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1760")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1760 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1240 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1240 - * @tc.desc Validation Popup CustomPopupOptions, arrowWidth parameter type Dimension (LPX) : 30 LPX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1240 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent124"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1240")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1240 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1560 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1560 - * @tc.desc Validation of the Popup CustomPopupOptions. Shadow (ShadowOptions) parameter types offsetX (number) : 30 px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1560 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent156"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1560")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1560 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0180 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0180 - * @tc.desc Verify that the messageOptions textColor parameter type of Popup is ResourceColor(Resource) - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0180 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent018"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0180")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0180 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1800 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1800 - * @tc.desc Validation Popup CustomPopupOptions. BlurStyle backgroundBlurStyle parameter types: COMPONENT THIN - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1800', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1800 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent180"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1800")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1800 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1250 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1250 - * @tc.desc Validation Popup CustomPopupOptions. ArrowWVidth parameter type Dimension (Percentage) : 10% - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1250 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent125"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1250")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1250 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1210 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1210 - * @tc.desc Verify Popup's "CustomPopupOptions arrowWidth" parameter type Dimension(PX):30PX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1210 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent121"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1210")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1210 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1510 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1510 - * @tc.desc Verify PopuD CustomPopupOptions, shadow (ShadowOptions) parameter types color (Resource) : reference color. Gray - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1510 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent151"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1510")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1510 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1790 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1790 - * @tc.desc Validation Popup CustomPopupOptions. BlurStyle backgroundBlurStyle parameter types: COMPONENT_ULTRA_THIN - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1790 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent179"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1790")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1790 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0150 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0150 - * @tc.desc Verify the mask of Popup with parameter type Resource: reference Color.gray - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0150 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent015"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0150")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0150 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1750 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1750 - * @tc.desc Validation Popup CustomPopupOptions. BlurStyle backgroundBlurStyle parameter types: BACKGROUND_REGULAR - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1750 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent175"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1750")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1750 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0610 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0610 - * @tc.desc Verify that the Popup shadow.ColoringStrategy parameter is of INVERT type - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0610 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent061"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0610")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0610 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0140 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0140 - * @tc.desc Verify the masK of Popup. The parameter type is string: "ee4508de". - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0140 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent014"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0140")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0140 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1330 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1330 - * @tc.desc Validate Popup's CustomPopupOptions, arrowHeight parameter type Dimension(Resource): reference 30px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1330 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent133"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1330")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1330 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1590 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1590 - * @tc.desc Validation Popup CustomPopupOptions, shadow (ShadowOptions) parameter types offsetY (number) : 30 px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1590 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent159"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1590")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1590 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0920 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0920 - * @tc.desc Validation Popup CustomPopupOptions. AutoCancel parameter types Boolean: false - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0920', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0920 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent092"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0920")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - let rect = await SliderCom.getBounds(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0920 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0650 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0650 - * @tc.desc Verify the Popup shadow, offsetX parameter type Resource: reference "30px" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0650 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent065"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0650")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0650 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1020 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1020 - * @tc.desc Validation Popup CustomPopupOptions. TargetSpace parameter type string: 30 px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1020 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent102"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1020")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1020 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0940 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0940 - * @tc.desc Validate the CustomPopupOptions.onStateChange parameter type for Popup :(event: {isVisible: boolean}) =>void - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0940', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0940 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent094"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0940")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0940 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1080 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1080 - * @tc.desc Verify the CustomPopupOptions for Popup with the width parameter Dimension(PX):30PX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1080 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent108"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1080")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1080 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1350 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1350 - * @tc.desc Validation Popup CustomPopupOptions, the radius Dimension parameter type (PX) : 30 PX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1350 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent135"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1350")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1350 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0670 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0670 - * @tc.desc Verify the Popup shadow, offsetY parameter type Resource: reference "30px. - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0670 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent067"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0670")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0670 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1820 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1820 - * @tc.desc Verify Popup CustomPopupOptions. BlurStyle backgroundBlurStyle parameter types: COMPONENT_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1820', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1820 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent182"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1820")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1820 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1090 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1090 - * @tc.desc Verify the CustomPopupOptions for Popup, width parameter of type Dimension(VP):30VP - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1090 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent109"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1090")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1090 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1380 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1380 - * @tc.desc Verify CustomPopupOptions for Popup. radius parameter type Dimension(LPX):30LPX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1380 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent138"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1380")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1380 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1810 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1810 - * @tc.desc Validation Popup CustomPopupOptions. BlurStyle backgroundBlurStyle parameter types: COMPONENT_REGULAR - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1810 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent181"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1810")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1810 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1040 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1040 - * @tc.desc Validation Popup CustomPopupOptions. TargetSpace parameter types Resource: 30 px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1040 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent104"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1040")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1040 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1360 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1360 - * @tc.desc set autoCancel:false;showinSubWindow:true;onWillDismiss: true, Click empty and do not exit - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1360 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent136"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1360")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1360 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1600 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1600 - * @tc.desc Verify Popup CustomPopupOptions. Shadow (ShadowOptions) parameter types offsetY (Resource) : refer to "30 px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1600 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent160"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1600")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1600 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0960 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0960 - * @tc.desc Validation Popup CustomPopupOptions, showInSubWindow parameter types Boolean: true - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0960 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent096"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0960")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0960 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1170 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1170 - * @tc.desc Validation Popup CustomPopupOptions. ArrowPointPosition parameter types: CENTER - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1170 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent117"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1170")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1170 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1840 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1840 - * @tc.desc Validation Popup NCustomPopupOptions. Focusable parameter types Boolean: true - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1840', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1840 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent184"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1840")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1840 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1100 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1100 - * @tc.desc Verify the CustomPopupOptions for Popup,width parameter of type Dimension(FP):30FP - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1100 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent110"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1100")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1100 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0710 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0710 - * @tc.desc Verify that the backgroundBlurStyle. BlurStyle parameter type of Popup is Thin - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0710 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent071"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0710")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0710 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0980 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0980 - * @tc.desc Validates the CustomPopupOptions for Popup. The mask parameter type is boolean:true - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0980', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0980 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent098"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0980")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0980 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1370 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1370 - * @tc.desc Verify Popup CustomPopupOptions, the radius Dimension parameter type (FP) : 30 FP - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1370 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent137"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1370")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1370 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1390 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1390 - * @tc.desc Verify the CustomPopupOptions of Popup. radius parameter type Dimension(Percentage):10% - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1390 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent139"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1390")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1390 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0720 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0720 - * @tc.desc Verify that the backgroundBlurStyle. BlurStyle parameter type of Popup is Regular - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0720 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent072"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0720")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0720 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1830 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1830 - * @tc.desc Validation Popup CustomPopupOptions. BlurStyle backgroundBlurStyle parameter types: COMPONENT_ULTRA_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1830 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent183"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1830")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1830 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1120 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1120 - * @tc.desc Validate CustomPopupOptions for Popup, width parameter type Dimension(Percentage):10% - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1120 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent112"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1120")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1120 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0730 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0730 - * @tc.desc Verify the backgroundBlurStyle. BlurStyle parameter type of Popup :Thick - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0730 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent073"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0730")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0730 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0990 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0990 - * @tc.desc CustomPopupOptons of the Popup, mask parameter type ResourceColor(including string):ee4508de - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0990', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0990 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent099"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0990")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0990 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1180 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1180 - * @tc.desc Validation Popup CustomPopupOptions. ArrowPointPosition parameter types: the END - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1180 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent118"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1180")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1180 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0740 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0740 - * @tc.desc Verify the backgroundBlurStyle. BlurStyle parameter type of Popup :BACKGROUND_THIN - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0740 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent074"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0740")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0740 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1110 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1110 - * @tc.desc Verify that Popup has the CustomPopupOptions.width parameter of type Dimension(LPX):30LPX - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1110 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent111"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1110")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1110 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0760 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0760 - * @tc.desc Verify the backgroundBlurStyle. BlurStyle parameter type of Popup :BACKGROUND_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0760 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent076"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0760")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0760 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1000 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1000 - * @tc.desc Verify the CustomPopupOptions of Popup, mask parameter type ResourceColor(including Resource): reference Color.gray - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1000', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1000 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent100"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1000")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1000 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1150 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1150 - * @tc.desc Validation Popup CustomPopupOptions. ArrowPointPosition parameter types: START and placement: Bottom - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1150 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent115"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1150")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1150 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1620 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1620 - * @tc.desc Validates the CustomPopupOptions for Popup, shadOw (ShadowOptions) parameter type fill(boolean): true - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1620 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent162"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1620")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1620 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1400 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1400 - * @tc.desc Verify CustomPopupOptions for Popup, radius parameter type Resource(PX): reference 30px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1400 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent140"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1400")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1400 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0770 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0770 - * @tc.desc Card Popup backgroundBlurStyle. BlurStyle parameter types: BACKGROUND_ULTRA_THICK - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0770 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent077"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0770")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0770 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0230 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0230 - * @tc.desc Verify that the messageOptions.weight parameter of Popup is FontWeight:Normal - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0230 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent023"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0230")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0230 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1130 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1130 - * @tc.desc Verify the customPopupOptions for Popup, width parameter type Dimension(Resource): reference 30px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1130 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent113"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1130")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1130 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1640 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1640 - * @tc.desc Verify customPopupOptions for Popup, shadow parameter type ShadowStyleOUTER_DEFAULT_XS - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1640 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent164"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1640")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1640 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0220 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0220 - * @tc.desc Verify that Popup's messageOptionsweight parameter is of type FontWeight:Lighter - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0220 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent022"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0220")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0220 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0540 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0540 - * @tc.desc Verify the shadow of Popup, radius parameter type Resource: reference "-30px" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0540 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent054"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0540")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0540 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0780 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0780 - * @tc.desc Validation Popup backgroundBlurStyle. BlurStyle parameter types: NONE - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0780 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent078"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0780")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0780 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0240 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0240 - * @tc.desc Verify that the messageOptions.weight parameter of Popup is FontWeight:Regular - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0240 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent024"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0240")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0240 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0790 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0790 - * @tc.desc Verify the backgroundBlurStyle. BlurStyle parameter type of Popup :COMPONENT_ULTRA_THIN - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0790 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent079"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0790")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0790 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0250 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0250 - * @tc.desc Verify that the messageOptions.weight parameter type of Popup is FontWeight:Medium - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0250 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent025"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0250")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0250 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0530 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0530 - * @tc.desc Verify the shadow of Popup, radius parameter type Resource:r(app.media.string ") Reference "100vp" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0530 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent053"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0530")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0530 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1650 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1650 - * @tc.desc Validation Popup CustomPopupOptions, shadow parameter types ShadowStyle OUTER_DEFAULT_SM - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1650 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent165"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1650")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1650 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1670 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1670 - * @tc.desc Verify the Popup CustomPopupOptions. The shadow ShadowStyleOUTER_DEFAULT_LG parameter types - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1670 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent167"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1670")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1670 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0260 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0260 - * @tc.desc Verify that Popup has the messageOptions.weight parameter type FontWeight:Bold - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0260 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent026"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0260")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0260 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0560 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0560 - * @tc.desc Verify that the Popup shadow ShadowType parameter is of the type :COLOR - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0560 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent056"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0560")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0560 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1690 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1690 - * @tc.desc Verify CustompopupOptions for Popup, shadow parameter type ShadowStyle:OUTER_FLOATING_MD - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1690 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent169"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1690")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1690 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0270 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0270 - * @tc.desc Verify that the messageOptions weight parameter of Popup is FontWeight:Bolder - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0270 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent027"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0270")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0270 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1420 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1420 - * @tc.desc Validation Popup CustomPopupOptions. Shadow (ShadowOptions) parameter types radius (number) : 30px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1420 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent142"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1420")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1420 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0800 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0800 - * @tc.desc Verify that the backgroundBlurStyle. BlurStyle parameter type of Popup is :COMPONENT_THIN - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0800', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0800 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent080"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0800")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0800 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0570 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0570 - * @tc.desc Verify that the shadow.ShadowType parameter of Popup is of type BLUR - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0570 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent057"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0570")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0570 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1660 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1660 - * @tc.desc Verify CustomPopupOptions for Popup, shadow parameter type ShadowStyle OUTER_DEFAULT_MD - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1660 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent166"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1660")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1660 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1680 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1680 - * @tc.desc Verify CustomPopupOptionS of Popup, Shadow parameter types ShadowStyle, OUTER_FLOATING_SM - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1680 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent168"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1680")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1680 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0590 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0590 - * @tc.desc Verify the shadow,color parameter type string: "ee4508de" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0590 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent059"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0590")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0590 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1730 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1730 - * @tc.desc Validation Popup CustomPopupOptions. BlurStyle backgroundBlurStyle parameter types: Thick - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1730 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent173"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1730")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1730 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0320 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0320 - * @tc.desc Verify the messageOptions.family parameter type of Popup string:"HarmonyOS Sans" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0320 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent032"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0320")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0320 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1440 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1440 - * @tc.desc Validation Popup CustomPopupOptions, shadow (ShadowOptions) parameter types radius (Resource) : reference "-30 px - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1440', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1440 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent144"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1440")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1440 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1720 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1720 - * @tc.desc Validation Popup CustomPopupOptions, backgroundBlurStyle parameter types BlurStyle: Regular - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1720 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent172"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1720")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1720 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1430 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1430 - * @tc.desc Validation Popup CustomPopupOptions. Shadow (ShadowOptions) parameter types radius (Resource) : refer to "100 vp" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1430 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent143"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1430")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1430 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1740 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1740 - * @tc.desc Validation Popup CustomPopupOptions, backgroundBlurStyle BlurStyle parameter types: BACKGROUND_THIN - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1740 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent174"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1740")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1740 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0350 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0350 - * @tc.desc Verify the Popup messageOptions,style parameter type FontStyle:Normal - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0350 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent035"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0350")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0350 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1460 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1460 - * @tc.desc set autoCancel:false;showinSubWindow:true;onWillDismiss: true, Click empty and do not exit - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1460 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent146"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1460")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1460 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1710 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1710 - * @tc.desc Validation Popup CustomPopupOptions, backgroundBlurStyle BlurStyle parameter types: Thin - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1710 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent171"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1710")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1710 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0340 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0340 - * @tc.desc Verify the messageOptions family parameter type of Popup. Resource: references HarmonyOS Sans - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0340 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent034"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0340")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0340 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1490 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1490 - * @tc.desc Validation Popup CustomPopupOptions, shadow (ShadowOptions) parameter types color (color) : color, Pink - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1490', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1490 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent149"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1490")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1490 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0810 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0810 - * @tc.desc Verify that the type of the backgroundBlurStyle. BlurStyle parameter of Popup is COMPONENT_REGULAR - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0810', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0810 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent081"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0810")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0810 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0290 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0290 - * @tc.desc Verify that the messageOptions weight parameter of Popup is of type number:400 - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0290 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent029"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0290")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0290 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0300 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0300 - * @tc.desc Verify that the messageOptions.weight parameter type of Popup is string: 30px. - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0300 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent030"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0300")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0300 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0400 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0400 - * @tc.desc Verify Popup's targetSpaceLength parameter type Resource: "15%" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0400 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent040"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0400")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0400 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1030 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1030 - * @tc.desc Validation Popup CustomPopupOptions. TargetSpace parameter type string: 15%" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1030 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent103"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1030")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1030 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1050 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1050 - * @tc.desc Validation Popup CustomPopupOptions targetSpace parameter types Resource: "15%" - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1050 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent105"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1050")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1050 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1160 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1160 - * @tc.desc Validation Popup CustomPopupOptions. ArrowPointPosition parameter types: START and placement: Right - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1160 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent116"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1160")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1160 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1190 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1190 - * @tc.desc Validation Popup CustomPopupOptions. ArrowPointPosition parameter types: the END - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1190 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent119"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1190")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1190 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1320 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1320 - * @tc.desc Verify that the CustomPopupOptions.arrowHeight parameter type Dimension (Percentage):10% for Popup - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1320 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent132"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent1320")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_1320 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0380 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0380 - * @tc.desc Verify Popup's targetSpace.Length parameter type string: "15% - */ - it('SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0380 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent038"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let SliderCom = await driver.findComponent(ON.id("UIComponentSpecialComponentsFormComponentTransparent0380")); - let pointCenter = await SliderCom.getBoundsCenter(); - await driver.click(pointCenter.x, pointCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_FORMCOMPONENT_TRANSPARENT_0380 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsUIExtensionComponentPopupChangeTest/UIComponentSpecialComponentsUIExtensionComponentPopupChange.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsUIExtensionComponentPopupChangeTest/UIComponentSpecialComponentsUIExtensionComponentPopupChange.test.ets deleted file mode 100644 index d0b2c2a21c446ab01b898448c730df1a43340e7d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentSpecialComponentsUIExtensionComponentPopupChangeTest/UIComponentSpecialComponentsUIExtensionComponentPopupChange.test.ets +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' -import { KeyCode } from '@kit.InputKit' -import Window from '@ohos.window' - -/* - * 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 UIComponentSpecialComponentsUIExtensionComponentPopupChange() { - - describe('UIComponentSpecialComponentsUIExtensionComponentPopupChange', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0050 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0050 - * @tc.desc Verify input box After continuous text input is interrupted, popup will start changing again when text is entered again - */ - it('SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0050 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange005"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = - await driver.findComponent(ON.id("UIComponentSpecialComponentsUIExtensionComponentPopupChange0051")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - driver.triggerKey(KeyCode.KEYCODE_A); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0050 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0050_1 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0050_1 - * @tc.desc Verify input box After continuous text input is interrupted, popup will start changing again when text is entered again - */ - it('SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0050_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0050_1 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange005"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = - await driver.findComponent(ON.id("UIComponentSpecialComponentsUIExtensionComponentPopupChange0051")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - driver.triggerKey(KeyCode.KEYCODE_A); - await Utils.sleep(1000); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - driver.triggerKey(KeyCode.KEYCODE_B); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0050_1 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0060 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0060 - * @tc.desc If the incoming parameter of the interface is empty, the popup popup window does not change after the input box content changes - */ - it('SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0060 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange006"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = - await driver.findComponent(ON.id("UIComponentSpecialComponentsUIExtensionComponentPopupChange0060")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_A); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_B); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0060 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0020 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0020 - * @tc.desc Verify that the content of the input box is changed, and the popup position will change - */ - it('SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0020 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange002"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = - await driver.findComponent(ON.id("UIComponentSpecialComponentsUIExtensionComponentPopupChange0020")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_A); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - let currentWindow = await Window.getLastWindow(getContext()); - await currentWindow.setPreferredOrientation(1); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0020 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0030 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0030 - * @tc.desc Verify that the popup size does not change in position when the screen is deflecting - */ - it('SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0030 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange003"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = - await driver.findComponent(ON.id("UIComponentSpecialComponentsUIExtensionComponentPopupChange0030")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_A); - await driver.triggerKey(KeyCode.KEYCODE_B); - await driver.triggerKey(KeyCode.KEYCODE_C); - await driver.triggerKey(KeyCode.KEYCODE_D); - await driver.triggerKey(KeyCode.KEYCODE_E); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0030 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0010 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0010 - * @tc.desc Verify that the popup bit changes when the input field content changes - */ - it('SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0010 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange001"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = - await driver.findComponent(ON.id("UIComponentSpecialComponentsUIExtensionComponentPopupChange0010")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_A); - await driver.triggerKey(KeyCode.KEYCODE_B); - await driver.triggerKey(KeyCode.KEYCODE_C); - await driver.triggerKey(KeyCode.KEYCODE_D); - await driver.triggerKey(KeyCode.KEYCODE_E); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0010 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0040 - * @tc.name SUB_ACE_UI_COMPONENT_SPECIALCOMPONENTS_UIEXTENSIONCOMPONENT_POPUPCHANGE_0040 - * @tc.desc Verify that the popup size changes in the case of screen avoidance - */ - it('SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0040 start.`); - Settings.createWindow("testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange004"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = - await driver.findComponent(ON.id("UIComponentSpecialComponentsUIExtensionComponentPopupChange0040")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(2000); - await driver.triggerKey(KeyCode.KEYCODE_A); - await driver.triggerKey(KeyCode.KEYCODE_B); - await driver.triggerKey(KeyCode.KEYCODE_C); - await driver.triggerKey(KeyCode.KEYCODE_D); - await driver.triggerKey(KeyCode.KEYCODE_E); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_SPECIAL_POPUP_CHANGE_0040 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test.ets deleted file mode 100644 index 17371bd33b6103d8cb1a19d02cc62a1ef53345e1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTabTabBarSymbolTest/UIComponentTabTabBarSymbol.test.ets +++ /dev/null @@ -1,417 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' - -export default function UIComponentTabTabBarSymbol() { - - describe('UIComponentTabTabBarSymbol', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0040 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0040 - * @tc.desc 1、创建tabs,使用BottomTabBarStyle样式 - * 2、icon使用TabBarSymbol引入其他资源;selected态传系统Symbol资源 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0040', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0040 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0040") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('Blue')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - let button2:Component = await driver.findComponent(ON.id('Pink')); - await Utils.sleep(1000) - await button2.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0090 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0090 - * @tc.desc 1、创建tabs,BottomTabBarStyle,icon使用TabBarSymbol - * 2、normal态SymbolGlphlIodifier设置fontSize设置大于vidth和height的值 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0090', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0090 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0090") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0090 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0120 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0120 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSyabol - * 2、normal态SymbolGlphlIodifier设置null - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0120', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0120 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0120") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0120 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0110 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0110 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSyabol - * 2、normal态SymbolGlphlIodifier设置undefined - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0110', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0110 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0110") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0110 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0070 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0070 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSyabol - * 2、normal态SymbolGlphlIodifier渲染策略为MULTIPLE_COLOR,设置4个fontcolor属性 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0070', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0070 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0070") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0080 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0080 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSyabol - * 2、normal态SymbolGlphlIodifier渲染策略为OPACITY,设置4个fontcolor属性 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0080', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0080 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0080") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0080 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0060 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0060 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSyabol - * 2、normal态SymbolGlphlIodifier渲染策略为单色,设置4个fontcolor属性 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0060', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0060 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0060") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0060 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0140 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0140 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - * 2、normal态SymbolGlphlIodifier设置可以动态切换入参 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0140', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0140 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0140") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentTabTabBarSymbol0140_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0140 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0130 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0130 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - * 2、nornal态SymbolGlyphModifier设置可以动态切换入 -参 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0130', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0130 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0130") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentTabTabBarSymbol0130_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0130 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0260 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0260 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - * 2、nornal态SymbolGlyphModifier设置可以动态切换入参 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0260', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0260 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0260") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentTabTabBarSymbol0260_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0260 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0190 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0190 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - * 2、nornal态SymbolGlyphModifier设置可以动态切换入参 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0190', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0190 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0190") - await Utils.sleep(1000) - let driver : Driver = Driver.create(); - await driver.delayMs(1000) - let button1:Component = await driver.findComponent(ON.id('UIComponentTabTabBarSymbol0190_001')); - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - await button1.click() - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0190 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0180 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0180 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - * 2、selected态SymbolGlphlIodifier不设置 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0180', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0180 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0180") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0180 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0160 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0160 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - * 2、selected态SymbolGlphlIodifier设置null - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0160', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0160 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0160") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0160 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0170 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0170 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - * 2、selected态SymbolGlphlIodifier设置undefined - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0170', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0170 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0170") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0170 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0030 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0030 - * @tc.desc 1、创建tabs,使用BottomTabBarStyle样式 - 2、icon使用TabBarSymbol引入其他资源 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0030', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0030 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0030") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0020 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0020 - * @tc.desc 1、创建tabs,使用BottomTabBarStyle样式 - * 2、icon使用TabBarSymbol引入系统media资源 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0020', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0020 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0020") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0020 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0010 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0010 - * @tc.desc 1、创建tabs,使用BottomTabBarStyle样式 - * 2、icon使用TabBarSymbol引入系统symbol资源 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0010', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0010 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0010") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0230 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0230 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSymbol - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0230', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0230 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0230") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0230 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0150 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0150 - * @tc.desc 1、创建tabs,BottonTabBarStyle,icon使用TabBarSynbol - * 2、normal态SymbolGlphIodifier引入系统symbol资源 - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0150', 0, async (done: Function) => { - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0150 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0150") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(2000) - Logger.error('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0150 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0050 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0050 - * @tc.desc TabBarSynbol.normal & selected - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0050 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0050") - await Utils.sleep(2000) - let driver: Driver = Driver.create() - let button: Component = await driver.findComponent(ON.id('UIComponentTabTabbarTabbarsymbol0050_001')) - await button.click() - await Utils.sleep(2000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0050 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0240 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0240 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0240 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0050") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0240 finish.`); - done() - }) - /* - * @tc.number SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0250 - * @tc.name SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0250 - * @tc.desc nav width - */ - it('SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0250 start.`); - Settings.createWindow("testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0250") - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TAB_TABBAR_TABBARSYMBOL_0250 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextAttributeStringConstructsTest/UIComponentTextAttributeStringConstructs.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextAttributeStringConstructsTest/UIComponentTextAttributeStringConstructs.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..df7846686ee215f0a95af8a1875e571053e1ce2d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextAttributeStringConstructsTest/UIComponentTextAttributeStringConstructs.test.ets @@ -0,0 +1,205 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON, Component } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextAttributeStringConstructsTest() { + + describe('UIComponentTextAttributeStringConstructsTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0460 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0460 + * @tc.desc Drag and drop attribute string + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0460 start.`); + Settings.createWindow("testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0460") + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextAttributeStringConstructs0460')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextAttributeStringConstructs0460')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0460 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0220 + * @tc.desc Drag and drop attribute string + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0220 start.`); + Settings.createWindow("testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0220") + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextAttributeStringConstructs0220')); + await btn.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0220 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0320 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0320 + * @tc.desc Drag and drop attribute string + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0320 start.`); + Settings.createWindow("testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0320") + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextAttributeStringConstructs0320')); + await btn.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0320 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0330 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0330 + * @tc.desc Drag and drop attribute string + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0330 start.`); + Settings.createWindow("testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0330") + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextAttributeStringConstructs0330')); + await btn.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0330 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0340 + * @tc.desc Drag and drop attribute string + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0340 start.`); + Settings.createWindow("testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0340") + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextAttributeStringConstructs0340')); + await btn.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0340 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0350 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0350 + * @tc.desc Drag and drop attribute string + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0350 start.`); + Settings.createWindow("testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0350") + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextAttributeStringConstructs0350')); + await btn.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0350 finish.`); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0360 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0360 + * @tc.desc Drag and drop attribute string + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0360 start.`); + Settings.createWindow("testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0360") + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextAttributeStringConstructs0360')); + await btn.click(); + await Utils.sleep(2000) + await windowSnap.snapShot() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_STRING_CONSTRUCTS_0360 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextAttributeText/UIComponentTextAttribute.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextAttributeText/UIComponentTextAttribute.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..422ad1f4172a93728dbc74aac2b2c5ac603fffd9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextAttributeText/UIComponentTextAttribute.test.ets @@ -0,0 +1,1763 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextAttribute() { + + describe('UIComponentTextAttribute', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0010 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0010 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0010'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0010')); + await textInput.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0010 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0020 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0020 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0020'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0020')); + await textInput.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0020 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0030 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0030 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0030'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0030')); + await textInput.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0030 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0040 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0040 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0040'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0040')); + await textInput.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0040 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0050 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0050 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0050'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0050')); + await textInput.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0050 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0060 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0060 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0060'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0060')); + await textInput.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0060 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0080 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0080 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0080'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0080')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0080 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0090 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0090 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0090'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0090')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0090 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0100 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0100 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0100'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0100')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0100 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0110 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0110 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0110'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0110')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0110 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0120 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0120 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0120'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0120')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0120 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0130 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0130 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0130'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0130')); + await textInput.click(); + await Utils.sleep(1000); + let tp1 = await driver.findComponent(ON.id('tp1')); + await tp1.click(); + await Utils.sleep(200); + let tp2 = await driver.findComponent(ON.id('tp2')); + await tp2.click(); + await Utils.sleep(200); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0130 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0140 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0140 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0140'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0140')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0140 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0150 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0150 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0150'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0150')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0150 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0160 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0160 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0160'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0160')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0160 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0170 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0170 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0170'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0170')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0170 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0180 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0180 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0180'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0180')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0180 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0190 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0190 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0190'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0190')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0190 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0200 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0200 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0200'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0200')); + await textInput.click(); + await Utils.sleep(1000); + let tp1 = await driver.findComponent(ON.id('tp1')); + await tp1.click(); + await Utils.sleep(200); + let tp2 = await driver.findComponent(ON.id('tp2')); + await tp2.click(); + await Utils.sleep(200); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0200 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0210 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0210 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0210'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0210')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0210 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0220 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0220 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0220'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0220')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0220 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0230 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0230 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0230'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0230')); + await textInput.click(); + await Utils.sleep(1000); + let addWidth = await driver.findComponent(ON.id('addWidth')); + await addWidth.click(); + await Utils.sleep(200); + let changeWidth = await driver.findComponent(ON.id('changeWidth')); + await changeWidth.click(); + await Utils.sleep(200); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0230 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0240 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0240 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0240'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0240')); + await textInput.click(); + await Utils.sleep(1000); + let addWidth = await driver.findComponent(ON.id('addWidth')); + await addWidth.click(); + await Utils.sleep(200); + let changeWidth = await driver.findComponent(ON.id('changeWidth')); + await changeWidth.click(); + await Utils.sleep(200); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0240 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0250 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0250 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0250'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0250')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0250 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0260 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0260 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0260 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0260'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0260')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0260 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0270 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0270 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0270 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0270'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0270')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0270 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0280 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0280 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0280 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0280'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0280')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0280 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0290 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0290 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0290 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0290'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0290')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0290 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0300 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0300 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0300 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0300'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0300')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0300 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0310 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0310 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0310 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0310'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0310')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0310 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0320 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0320 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0320 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0320'); + await Utils.sleep(1000); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0320')); + await textArea.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0320 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0330 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0330 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0330 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0330'); + await Utils.sleep(1000); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0330')); + await textArea.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0330 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0340 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0340 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0340 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0340'); + await Utils.sleep(1000); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0340')); + await textArea.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let tp1 = await driver.findComponent(ON.id('tp1')); + await tp1.click(); + await Utils.sleep(200); + let tp2 = await driver.findComponent(ON.id('tp2')); + await tp2.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0340 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0350 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0350 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0350 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0350'); + await Utils.sleep(1000); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0350')); + await textArea.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0350 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0360 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0360 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0360 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0360'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0360')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0360 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0370 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0370 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0370'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0370')); + await textInput.click(); + await Utils.sleep(1000); + let tp1 = await driver.findComponent(ON.id('tp1')); + await tp1.click(); + await Utils.sleep(200); + let tp2 = await driver.findComponent(ON.id('tp2')); + await tp2.click(); + await Utils.sleep(200); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0370 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0380 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0380 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0380 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0380'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0380')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0380 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0390 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0390 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0390 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0390'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0390')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0390 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0400 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0400 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0400 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0400'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0400')); + await textInput.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0400 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0410 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0410 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0410 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0410'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0410')); + await textInput.longClick(); + await Utils.sleep(1000); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await selectAll?.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0410 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0420 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0420 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0420 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0420'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0420')); + await textInput.click(); + await Utils.sleep(1000); + let select: Component = await driver.findComponent(ON.id('select')); + await select?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0420 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0430 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0430 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0430 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0430'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0430')); + await textInput.longClick(); + await Utils.sleep(1000); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await selectAll?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0430 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0440 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0440 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0440 start.`); + let driver = Driver.create(); + await Utils.sleep(500); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0440'); + await Utils.sleep(500); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0440_01')); + await textArea.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await selectAll?.click(); + await Utils.sleep(100); + let textArea1 = await driver.findComponent(ON.id('UIComponentTextAttribute0440_02')); + await textArea1.longClick(); + await Utils.sleep(500); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await selectAll1?.click(); + await Utils.sleep(100); + let textArea2 = await driver.findComponent(ON.id('UIComponentTextAttribute0440_03')); + await textArea2.longClick(); + await Utils.sleep(500); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await selectAll2?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0440 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0450 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0450 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0450 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0450'); + await Utils.sleep(1000); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0450')); + await textArea.click(); + await Utils.sleep(1000); + let change: Component = await driver.findComponent(ON.id('change')); + await change?.click(); + await Utils.sleep(1000); + await textArea.longClick(); + await Utils.sleep(1000); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await selectAll?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0440 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0460 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0460 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0460 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0460'); + await Utils.sleep(1000); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0460')); + await textArea.click(); + await Utils.sleep(1000); + let change: Component = await driver.findComponent(ON.id('change')); + await change?.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0440 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0470 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0470 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0470 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0470'); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0470 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0480 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0480 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0480 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0480'); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0480 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0490 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0490 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0490 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0490'); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0490 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0500 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0500 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0500 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0500'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0500')); + await textInput.longClick(); + await Utils.sleep(1000); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await selectAll?.click(); + await Utils.sleep(1000); + let ch1 = await driver.findComponent(ON.id('ch1')); + await ch1.click(); + await Utils.sleep(200); + let ch2 = await driver.findComponent(ON.id('ch2')); + await ch2.click(); + await Utils.sleep(200); + let ch3 = await driver.findComponent(ON.id('ch3')); + await ch3.click(); + await Utils.sleep(200); + let ch4 = await driver.findComponent(ON.id('ch4')); + await ch4.click(); + await Utils.sleep(200); + let ch5 = await driver.findComponent(ON.id('ch5')); + await ch5.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0500 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0510 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0510 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0510 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0510'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0510')); + await textInput.click(); + await Utils.sleep(1000); + let select: Component = await driver.findComponent(ON.id('select')); + await select?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0510 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0520 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0520 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0520 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0520'); + await Utils.sleep(1000); + let textInput = await driver.findComponent(ON.id('UIComponentTextAttribute0520')); + await textInput.longClick(); + await Utils.sleep(1000); + let select: Component = await driver.findComponent(ON.text('全选')); + await select?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0520 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0530 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0530 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0530 start.`); + let driver = Driver.create(); + await Utils.sleep(500); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0530'); + await Utils.sleep(500); + let textArea = await driver.findComponent(ON.id('UIComponentTextAttribute0530_01')); + await textArea.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await selectAll?.click(); + await Utils.sleep(100); + let textArea1 = await driver.findComponent(ON.id('UIComponentTextAttribute0530_02')); + await textArea1.longClick(); + await Utils.sleep(500); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await selectAll1?.click(); + await Utils.sleep(100); + let textArea2 = await driver.findComponent(ON.id('UIComponentTextAttribute0530_03')); + await textArea2.longClick(); + await Utils.sleep(500); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await selectAll2?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0530 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0540 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0540 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0540 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0540'); + await Utils.sleep(1000); + let search = await driver.findComponent(ON.id('UIComponentTextAttribute0540')); + await search.longClick(); + await Utils.sleep(1000); + let select: Component = await driver.findComponent(ON.text('全选')); + await select?.click(); + await Utils.sleep(1000); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy?.click(); + await Utils.sleep(1000); + let search01 = await driver.findComponent(ON.id('UIComponentTextAttribute0540_01')); + await search01.click(); + await Utils.sleep(1000); + await search01.click(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await paste?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0540 end.`); + done(); + }) + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0550 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0550 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0550 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0550'); + await Utils.sleep(1000); + let search = await driver.findComponent(ON.id('UIComponentTextAttribute0550')); + await search.longClick(); + await Utils.sleep(1000); + let select: Component = await driver.findComponent(ON.text('全选')); + await select?.click(); + await Utils.sleep(1000); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy?.click(); + await Utils.sleep(1000); + let search01 = await driver.findComponent(ON.id('UIComponentTextAttribute0550_01')); + await search01.click(); + await Utils.sleep(1000); + await search01.click(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await paste?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0550 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0560 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0560 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0560 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0560'); + await Utils.sleep(1000); + let search = await driver.findComponent(ON.id('UIComponentTextAttribute0560')); + await search.inputText('aaaaaaa'); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0560 end.`); + done(); + }) + + /* +* @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0570 +* @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0570 +* @tc.desc text Attribute +*/ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0570 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0570'); + await Utils.sleep(1000); + let search = await driver.findComponent(ON.id('UIComponentTextAttribute0570')); + let change1: Component = await driver.findComponent(ON.id('change1')); + await change1?.click(); + await Utils.sleep(100); + let change2: Component = await driver.findComponent(ON.id('change2')); + await change2?.click(); + await Utils.sleep(100); + let change3: Component = await driver.findComponent(ON.id('change3')); + await change3?.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let select: Component = await driver.findComponent(ON.text('全选')); + await select?.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy?.click(); + await Utils.sleep(100); + let search01 = await driver.findComponent(ON.id('UIComponentTextAttribute0570_01')); + await search01.click(); + await Utils.sleep(100); + await search01.click(); + await Utils.sleep(100); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await paste?.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0570 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0640 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0640 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0640', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0640 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0640'); + await Utils.sleep(1000); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextAttribute0640')); + await Utils.sleep(200); + await search.click(); + await Utils.sleep(1000); + await Utils.lockAndUnlock(driver); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0640 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0600 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0600 + * @tc.desc text Attribute + */ + it('SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0600', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0600 start.`); + let driver = Driver.create(); + await Utils.sleep(1000); + Settings.createWindow('testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0600'); + await Utils.sleep(1000); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextAttribute0600')); + await Utils.sleep(200); + await search.longClick(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_ATTRIBUTE_0600 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonCopyOptionDraggableTest/UIComponentTextCommonCopyOptionDraggableTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonCopyOptionDraggableTest/UIComponentTextCommonCopyOptionDraggableTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b9a310e3b0c54c3e1e23daebc097be1f597aa9e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonCopyOptionDraggableTest/UIComponentTextCommonCopyOptionDraggableTest.test.ets @@ -0,0 +1,1237 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, Component, ON, MouseButton } from '@kit.TestKit'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextCommonCopyOptionDraggableTest() { + + describe('UIComponentTextCommonCopyOptionDraggableTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_1 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_1 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0010'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(1000); + await text.dragTo(textInput) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_1 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_2 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_2 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0010'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(100); + await btn.longClick(); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0010')); + await Utils.sleep(1000); + await text.dragTo(textInput) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0010_2 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_1 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_1 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_1 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0020'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_1 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_2 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_2 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_2 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0020'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await btn.longClick(); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0020')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0020_2 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0030 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0030 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0030'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0030')); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0030')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll1.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0030')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll2.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0030')); + await Utils.sleep(1000); + await text.dragTo(textInput) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0030 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0040 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0040 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0040'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0040')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0040')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0040')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0040')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0040 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0060 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0060 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0060'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0060')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0060')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.mouseClick(textAreaPoint, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(100); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0060')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.mouseClick(searchPoint, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0060')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + let textInputPoint = await textInput.getBoundsCenter(); + await Utils.sleep(100); + await driver.mouseClick(textInputPoint, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0060 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0070 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0070 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0070'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextCommonCopyOptionDraggable0070')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0070')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0070')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll1.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0070')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + await Utils.sleep(100); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll2.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0070')); + await Utils.sleep(1000); + await text.dragTo(textInput) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0070 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0080 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0080 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0080'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextCommonCopyOptionDraggable0080')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0080')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0080')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0080')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0080')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0080 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0090 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0090 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0090'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0090')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0090')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0090')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0090 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0100 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0100'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0100')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0100')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll1.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0100')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll2.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0100')); + await Utils.sleep(1000); + await text.dragTo(textInput) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0100 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0110 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0110 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0110'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0110')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0110')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0110')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0110')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0110 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0120 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0120 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0120'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0120')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0120')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll1.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0120')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll2.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0120')); + await Utils.sleep(1000); + await text.dragTo(textInput) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0120 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0130 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0130 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0130'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0130')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0130')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0130')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0130')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0130 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0140 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0140 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0140'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0140')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0140')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0140 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0150 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0150 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0150'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0150')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0150')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0150')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0150')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0150 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0160 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0160 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0160'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0160')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0160')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll1.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0160')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll2.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0160')); + await Utils.sleep(100); + await text.dragTo(textInput) + await Utils.sleep(100); + await textInput.doubleClick() + await Utils.sleep(100); + await textArea.longClick() + await Utils.sleep(100); + await textInput.longClick() + await Utils.sleep(100); + let btn: Component = + await driver.findComponent(ON.id('btnUIComponentTextCommonCopyOptionDraggable0160')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0160 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0170 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0170 start.`); + Settings.createWindow('testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0170'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0170')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0170')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0170')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + await search.longClick(); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0170')); + await Utils.sleep(100); + await textInput.click(); + await Utils.sleep(100); + await textInput.longClick(); + await Utils.sleep(1000); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(100); + let btn: Component = + await driver.findComponent(ON.id('btnUIComponentTextCommonCopyOptionDraggable0170')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0170 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0050 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0050 start.`); + Settings.createWindow( + 'testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0050' + ); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0050')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0050')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll1: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll1.click(); + await Utils.sleep(100); + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0050')); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, searchPoint.x, searchPoint.y) + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + await Utils.sleep(100); + let selectAll2: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll2.click(); + await Utils.sleep(100); + let textInput: Component = + await driver.findComponent(ON.id('TextInputUIComponentTextCommonCopyOptionDraggable0050')); + await Utils.sleep(1000); + await text.dragTo(textInput) + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0050 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180_1 start.`); + Settings.createWindow( + 'testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0180' + ); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + await Utils.sleep(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0180')); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(1000); + // 切换横屏 + Settings.changeOrientation(); + + await Utils.sleep(1000); + let textPoint = await text.getBoundsCenter(); + await Utils.sleep(100); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCopyOptionDraggable0180')); + await Utils.sleep(100); + let textAreaPoint = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.drag(textPoint.x, textPoint.y, textAreaPoint.x, textAreaPoint.y) + await Utils.sleep(1000); + // 切换竖屏 + Settings.changeOrientation(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180_2 start.`); + Settings.createWindow( + 'testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0180' + ); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextUIComponentTextCommonCopyOptionDraggable0180')); + await Utils.sleep(100); + await text.longClick(); + await Utils.sleep(100); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(100); + await selectAll.click(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + + // 切换横屏 + Settings.changeOrientation(); + + let search: Component = await driver.findComponent(ON.id('SearchUIComponentTextCommonCopyOptionDraggable0180')); + await Utils.sleep(100); + await search.click(); + await Utils.sleep(100); + let searchPoint = await search.getBoundsCenter(); + await Utils.sleep(100); + await driver.mouseClick(searchPoint, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(1000); + let paste1: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste1.click(); + await Utils.sleep(100); + // 切换竖屏 + Settings.changeOrientation(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_COPYOPTION_DRAGGABLE_0180_2 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..2108e2165176f71d51ee8a10fd2a820c0d106b7d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan.test.ets @@ -0,0 +1,1337 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, Component, ON } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextCommonCustomDrawingSpan() { + + describe('UIComponentTextCommonCustomDrawingSpan', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0010 + * @tc.desc Rewrite width + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan001"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan001")); + await Utils.sleep(2000); + component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0020 + * @tc.desc Input Outliers + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0020 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan002"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan002")); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0040 + * @tc.desc Rewrite height + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan004"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan004")); + await Utils.sleep(1000); + component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0050 + * @tc.desc Input Outliers + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan005"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan005")); + await Utils.sleep(1000); + component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0070 + * @tc.desc Draw content with graphic and text background colors + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0070 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan007"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0070 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0080 + * @tc.desc Draw content with text + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0080 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan008"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0080 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0090 + * @tc.desc Draw nothing + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0090 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan009"); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0090 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0120 + * @tc.desc Set text to bind SelectionMenu + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0120 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan012"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan012")); + await Utils.sleep(2000); + component.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0120 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0150 + * @tc.desc Call getString to obtain the Custom Span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0150 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan015"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan015")); + await Utils.sleep(1000); + component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0150 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0160 + * @tc.desc Obtain the length of CustomSpan + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0160 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan016"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan016")); + await Utils.sleep(1000); + component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0160 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0200 + * @tc.desc Obtain the length of CustomSpan + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0200 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan020"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let removeButton = await driver.findComponent(ON.id("removeButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0200 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0210 + * @tc.desc Obtain the length of CustomSpan + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0210 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan021"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let removeButton = await driver.findComponent(ON.id("removeButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0210 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0220 + * @tc.desc Replace the selected Customs Span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0220 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan022"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan022")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0220 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0230 + * @tc.desc Replace the selected Customs Span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0230 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan023"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan023")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0230 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0270 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0270 + * @tc.desc Specify the new style for the specified type + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0270 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan027"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan027")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0270 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0280 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0280 + * @tc.desc Specify the new style for the specified type + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0280 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan028"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan028")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0280 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0320 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0320 + * @tc.desc Clear the specified range type style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0320 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan032"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan032")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0320 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0330 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0330 + * @tc.desc Clear the specified range type style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0330 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan033"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan033")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0330 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0340 + * @tc.desc Clear the specified range type style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0340 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan034"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan034")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0340 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0350 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0350 + * @tc.desc Clear the specified range type style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0350 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan035"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan035")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0350 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0360 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0360 + * @tc.desc Clear Content + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0360 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan036"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let removeButton = await driver.findComponent(ON.id("removeButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0360 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0370 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0370 + * @tc.desc Continuous clearing + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0370 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan037"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let removeButton = await driver.findComponent(ON.id("removeButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0370 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0380 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0380 + * @tc.desc Clear Content + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0380 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan038"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let removeButton = await driver.findComponent(ON.id("removeButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0380 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0390 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0390 + * @tc.desc Clear Content + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0390 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan039"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let removeButton = await driver.findComponent(ON.id("removeButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0390 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0400 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0400 + * @tc.desc Get length + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0400 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan040"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let removeButton = await driver.findComponent(ON.id("removeButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + removeButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0400 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0410 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0410 + * @tc.desc Clear Styles + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0410 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan041"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let clearButton = await driver.findComponent(ON.id("clearButton")); + await Utils.sleep(1000); + clearButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0410 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0420 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0420 + * @tc.desc Replace to the specified location + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0420 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan042"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let replaceButton = await driver.findComponent(ON.id("replaceButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + replaceButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0420 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0430 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0430 + * @tc.desc Replace to the specified location + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0430 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan043"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let replaceButton = await driver.findComponent(ON.id("replaceButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + replaceButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0430 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0440 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0440 + * @tc.desc Replace to the specified location + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0440 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan044"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let replaceButton = await driver.findComponent(ON.id("replaceButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + replaceButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0440 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0450 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0450 + * @tc.desc Replace to the specified location + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0450 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan045"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let replaceButton = await driver.findComponent(ON.id("replaceButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + replaceButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0450 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0460 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0460 + * @tc.desc Insert Content + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0450 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan046"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let insertButton = await driver.findComponent(ON.id("insertButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + insertButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0460 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0470 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0470 + * @tc.desc Insert Content + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0470 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan047"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let insertButton = await driver.findComponent(ON.id("insertButton")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + insertButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0470 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0480 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0480 + * @tc.desc Additional content + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0470 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan048"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let appendButton = await driver.findComponent(ON.id("appendButton")); + await Utils.sleep(1000); + appendButton.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0480 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0490 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0490 + * @tc.desc Long press on Custom Span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0470 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan049"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan049")); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0490 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0510 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0510 + * @tc.desc Set obscured + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0510 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan051"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan051")); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + await component.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0510 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520 + * @tc.desc Set hidden and visible settings + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520_1 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan052"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan052")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520_1 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520 + * @tc.desc Set hidden and visible settings + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520_2 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan052"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan052")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + await button.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0520_2 finish.`); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0530 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0530 + * @tc.desc Set disable control + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0530 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan053"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let button = await driver.findComponent(ON.id("enabledButton")); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan053")); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + await component.longClick(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0530 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0540 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0540 + * @tc.desc Set drag and drop + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0540', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0540 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan054"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + await Utils.sleep(500); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan054")); + let textArea = await driver.findComponent(ON.id('textArea')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + await component.dragTo(textArea) + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0540 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0550 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0550 + * @tc.desc Set padding + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0550 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan055"); + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan055")); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0550 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0250 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0250 + * @tc.desc Specify the new style for the specified type + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0250 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0250"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan0250")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0250 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0260 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0260 + * @tc.desc Specify the new style for the specified type + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0260 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0250"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan0250")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0260 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0290 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0290 + * @tc.desc Specify the new style for the specified type + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0290 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0290"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan0290")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0290 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0300 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0300 + * @tc.desc Specify the new style for the specified type + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0300 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0290"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan0290")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0300 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0310 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0310 + * @tc.desc Specify the new style for the specified type + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0310 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0290"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan0290")); + await Utils.sleep(1000); + startButton.click(); + await Utils.sleep(1000); + lengthButton.click(); + await Utils.sleep(1000); + button.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0310 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0100 + * @tc.desc Set text to bind SelectionMenu + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0100 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan010" + ); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan010")); + await Utils.sleep(2000); + await component.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0100 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0110 + * @tc.desc Set text to bind SelectionMenu + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0110 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan011" + ); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan011")); + await Utils.sleep(1000); + await component.longClick(); + let copy: Component = await driver.findComponent(ON.text('复制')); + await copy.click(); + await Utils.sleep(500); + let textArea: Component = + await driver.findComponent(ON.id('TextAreaUIComponentTextCommonCustomDrawingSpan011')); + await textArea.click(); + await textArea.longClick(); + let paste2: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste2.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0110 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0130 + * @tc.desc Set text to bind SelectionMenu + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0130 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan013" + ); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan013_btn1")); + await Utils.sleep(2000); + await component.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0130 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0140 + * @tc.desc Set text to bind SelectionMenu + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0140 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan014" + ); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let component1 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan014_btn1")); + await Utils.sleep(1000); + await component1.click(); + + let component2 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan014_btn2")); + await Utils.sleep(1000); + await component2.click(); + + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0140 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0170 + * @tc.desc Set text to bind SelectionMenu + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0170 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan017" + ); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let component1 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan017_btn1")); + await Utils.sleep(1000); + await component1.click(); + + let component2 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan017_btn2")); + await Utils.sleep(1000); + await component2.click(); + + let component3 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan017_btn3")); + await Utils.sleep(1000); + await component3.click(); + + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0190 + * @tc.desc Set text to bind SelectionMenu + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0190 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan019" + ); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let component1 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan019_btn1")); + await Utils.sleep(1000); + await component1.click(); + + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0170 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0240 + * @tc.desc Replace the selected Customs Span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0240 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan024" + ); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + let startButton = await driver.findComponent(ON.id("startButton")); + let lengthButton = await driver.findComponent(ON.id("length")); + let button = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan024")); + await Utils.sleep(1000); + await startButton.click(); + await Utils.sleep(1000); + await lengthButton.click(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0240 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0500 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0500 + * @tc.desc Long press on Custom Span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0500 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan050"); + await Utils.sleep(2000); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan050")); + let point = await component.getBoundsCenter(); + await Utils.sleep(1000); + for (let index = 0; index <2 ; index++) { + await driver.click(point.x,point.y); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0500 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0560 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0560 + * @tc.desc Set padding + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0560 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan056"); + await Utils.sleep(2000) + let driver: Driver = Driver.create(); + let component1 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan056_1")); + await Utils.sleep(1000); + await component1.click(); + let component2 = await driver.findComponent(ON.id("UIComponentTextCommonCustomDrawingSpan056_2")); + await Utils.sleep(1000); + await component2.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_CUSTOM_DRAWINGSPAN_0560 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonItscaAttributeUpdaterTest/UIComponentTextCommonItscaAttributeUpdater.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonItscaAttributeUpdaterTest/UIComponentTextCommonItscaAttributeUpdater.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c8d9430bae990739c4f286ccf4b78c76e4b11b8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextCommonItscaAttributeUpdaterTest/UIComponentTextCommonItscaAttributeUpdater.test.ets @@ -0,0 +1,346 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextCommonItscaAttributeUpdater() { + + describe('UIComponentTextCommonItscaAttributeUpdater', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0010 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater001"); + let driver: Driver = Driver.create(); + let component = await driver.findComponent(ON.id("UIComponentTextCommonItscaAttributeUpdater001")); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0010 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0020 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0020 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater002"); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id("UIComponentTextCommonItscaAttributeUpdater002")); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0020 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0030 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater003"); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id("UIComponentTextCommonItscaAttributeUpdater003")); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0030 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0040 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater004"); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id("UIComponentTextCommonItscaAttributeUpdater004")); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0040 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0050 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater005"); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id("UIComponentTextCommonItscaAttributeUpdater005")); + component.click(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + changeBtn.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0050 finish.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMMON_ITSCAATTRIBUTEUPDATER_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMMON_ITSCAATTRIBUTEUPDATER_0130 + * @tc.desc AttributeUpdater替换Span类型 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMMON_ITSCAATTRIBUTEUPDATER_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_ITSCAATTRIBUTEUPDATER_0130 start.`); + Settings.createWindow("testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater013"); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id("UIComponentTextCommonItscaAttributeUpdater013_text")); + component.click(); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMMON_ITSCAATTRIBUTEUPDATER_0130 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0060 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0060 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater006" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let component = await driver.findComponent(ON.id("UIComponentTextCommonItscaAttributeUpdater006")); + await component.click(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + await changeBtn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0060 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0070 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0070 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater007" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + await changeBtn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0070 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0080 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0080 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater008" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + await changeBtn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0080 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0090 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0090 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater009" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + await changeBtn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0090 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0100 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0100 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater010" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + await changeBtn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0100 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0110 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0110 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater011" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + await changeBtn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0110 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0120 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0120 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater012" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let changeBtn = await driver.findComponent(ON.id("change")); + await changeBtn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0120 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0140 + * @tc.desc Replace text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0140 start.`); + Settings.createWindow( + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater014" + ); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let changeBtn1 = await driver.findComponent(ON.id("change1")); + await changeBtn1.click(); + await Utils.sleep(1000); + let changeBtn2 = await driver.findComponent(ON.id("change2")); + await changeBtn2.click(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_COMON_ITSCAATTRIBUTEUPDATER_0140 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextHyperlinkInteractionTest/UIComponentTextHyperlinkInteraction.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextHyperlinkInteractionTest/UIComponentTextHyperlinkInteraction.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..3827c39ab96eb0d4d06d4f2afb7f579834b24130 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextHyperlinkInteractionTest/UIComponentTextHyperlinkInteraction.test.ets @@ -0,0 +1,146 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, Component, ON, MouseButton } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit'; +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextHyperlinkInteraction() { + + describe('UIComponentTextHyperlinkInteraction', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextHyperlinkInteraction0030_001')); + let point = await button.getBoundsCenter(); + await driver.mouseClick({x: point.x, y: point.y}, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(4000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0030 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0040 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0040"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextHyperlinkInteraction0040_001')); + let point = await button.getBoundsCenter(); + await driver.mouseMoveTo({x: point.x, y: point.y}); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0040 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0080 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0080 start.`); + Settings.createWindow("testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0080"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextHyperlinkInteraction0080_001')); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + let point = await button.getBoundsCenter(); + await driver.mouseMoveTo({x: point.x, y: point.y}); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0080 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0090 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0090 start.`); + Settings.createWindow("testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0090"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextHyperlinkInteraction0090_001')); + let point = await button.getBoundsCenter(); + await driver.mouseMoveTo({x: point.x, y: point.y - 3}); + await Utils.sleep(2); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_HYPERLINK_INTERACTION_0090 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextImagePrivacySensitiveTest/UIComponentTextImagePrivacySensitive.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextImagePrivacySensitiveTest/UIComponentTextImagePrivacySensitive.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..0df948617aba019e84777f97e5c29462369f6e74 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextImagePrivacySensitiveTest/UIComponentTextImagePrivacySensitive.test.ets @@ -0,0 +1,73 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextImagePrivacySensitive() { + + describe('UIComponentTextImagePrivacySensitive', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_IMAGE_PRIVACYSENSITIVE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_IMAGE_PRIVACYSENSITIVE_0010 + * @tc.desc Set privacySensitive + */ + it('SUB_ACE_UI_COMPONENT_TEXT_IMAGE_PRIVACYSENSITIVE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_IMAGE_PRIVACYSENSITIVE_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextImagePrivacySensitive/UIComponentTextImagePrivacySensitive001'); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_IMAGE_PRIVACYSENSITIVE_0010 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInlineTest/UIComponentTextInline.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInlineTest/UIComponentTextInline.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..6fca30beec290b5c4301f3b48964e1142ce014fd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInlineTest/UIComponentTextInline.test.ets @@ -0,0 +1,431 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, Component, ON, MouseButton } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit'; +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextInline() { + + describe('UIComponentTextInline', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0010 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0010"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0010_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0020 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0020"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0020_001')); + await button.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0020 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_1 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input : Component = await driver.findComponent(ON.id('UIComponentTextInline0030_001')); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0030_002')); + await input.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_1 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_2 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input : Component = await driver.findComponent(ON.id('UIComponentTextInline0030_001')); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0030_002')); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_3 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0030"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input : Component = await driver.findComponent(ON.id('UIComponentTextInline0030_001')); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0030_002')); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0030_3 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0060 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0060"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0060_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0060 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0070 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0070"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0070_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0070 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0080 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0080 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0080 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0080"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0080_001')); + await button.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0080 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_1 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0090"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input : Component = await driver.findComponent(ON.id('UIComponentTextInline0090_001')); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0090_002')); + await input.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_1 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_2 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0090"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input : Component = await driver.findComponent(ON.id('UIComponentTextInline0090_001')); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0090_002')); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_2 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_3 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0090"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let input : Component = await driver.findComponent(ON.id('UIComponentTextInline0090_001')); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0090_002')); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + await driver.pressBack(); + await Utils.sleep(1000); + await button.click(); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0090_3 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0120 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0120 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0120"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0120_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0120 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130_1 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0130"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0130_001')); + await button.click(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130_1 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130_2 start.`); + Settings.createWindow("testability/pages/UIComponentTextInline/UIComponentTextInline0130"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextInline0130_001')); + await button.click(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(1000); + Settings.changeOrientation(); + await Utils.sleep(3000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_INLINE_0130_2 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputNumberDecimalTest/UIComponentTextInputNumberDecimalTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputNumberDecimalTest/UIComponentTextInputNumberDecimalTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..f4a905f587f424e0c1c40b92d93a6a4b3bf4efca --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputNumberDecimalTest/UIComponentTextInputNumberDecimalTest.test.ets @@ -0,0 +1,291 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextInputNumberDecimalTest() { + + describe('UIComponentTextInputNumberDecimalTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0010 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0010 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0010'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0010')); + await Utils.sleep(500); + await textInput.inputText('123456'); + await Utils.sleep(500); + let textInput1: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0010_1')); + await Utils.sleep(500); + await textInput1.inputText('123.456'); + await Utils.sleep(1000); + let textInput2: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0010_2')); + await Utils.sleep(500); + await textInput2.inputText('123456.'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0010 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0020 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0020 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0020'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0020')); + await Utils.sleep(500); + await textInput.inputText('123.456'); + await Utils.sleep(500); + await driver.triggerKey(2044); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0020 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0030 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0030 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0030 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0030'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0030')); + await Utils.sleep(500); + await textInput.inputText('123.5.6'); + await Utils.sleep(500); + await driver.triggerKey(2044); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0030 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0040 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0040 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0040 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0040'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0040')); + await Utils.sleep(500); + await textInput.inputText('aaaa123.5.6'); + await Utils.sleep(500); + await driver.triggerKey(2044); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0040 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0050 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0050 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0050 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0050'); + let driver = Driver.create(); + let textInput1: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0050_1')); + await Utils.sleep(500); + await textInput1.inputText('123.5.6'); + await Utils.sleep(500); + await textInput1.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll.click(); + await Utils.sleep(500); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(500); + await copy.click(); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0050')); + await Utils.sleep(500); + await textInput.doubleClick(); + await Utils.sleep(500); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(500); + await paste.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0050 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0060 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0060 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0060 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0060'); + let driver = Driver.create(); + let textInput1: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0060_1')); + await Utils.sleep(500); + await textInput1.inputText('123.5.6'); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0060')); + await Utils.sleep(500); + await textInput.inputText('dadada123@.da1'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0060 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0070 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0070 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0070 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0070'); + let driver = Driver.create(); + let textInput1: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_1')); + await Utils.sleep(500); + await textInput1.inputText('123.5.6'); + await Utils.sleep(500); + let textInput2: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_2')); + await Utils.sleep(500); + await textInput2.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput3: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_3')); + await Utils.sleep(500); + await textInput3.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput4: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_4')); + await Utils.sleep(500); + await textInput4.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput5: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_5')); + await Utils.sleep(500); + await textInput5.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput6: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_6')); + await Utils.sleep(500); + await textInput6.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput7: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_7')); + await Utils.sleep(500); + await textInput7.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput8: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_8')); + await Utils.sleep(500); + await textInput8.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput9: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_9')); + await Utils.sleep(500); + await textInput9.inputText('dadada123@.da1'); + await Utils.sleep(500); + let textInput10: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0070_10')); + await Utils.sleep(500); + await textInput10.inputText('dadada123@.da1'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0070 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0080 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0080 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0080 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0080'); + let driver = Driver.create(); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('TextInputUIComponentTextInputNumberDecimal0080')); + await Utils.sleep(500); + await textInput.inputText('123abc'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0080 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0100 + * @tc.name SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0100 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0100'); + let driver = Driver.create(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_NUMBER_DECIMAL_0100 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputSecurityKeyboardScrollTest/UIComponentTextInputSecurityKeyboardScrollTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputSecurityKeyboardScrollTest/UIComponentTextInputSecurityKeyboardScrollTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..47cd78c4a250fd43484bab6331bd44257c837388 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputSecurityKeyboardScrollTest/UIComponentTextInputSecurityKeyboardScrollTest.test.ets @@ -0,0 +1,386 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, MouseButton, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextInputSecurityKeyboardScrollTest() { + + describe('UIComponentTextInputSecurityKeyboardScrollTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0010 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0010 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0010'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0010')); + await Utils.sleep(500); + await textInput.inputText('adawdawd1213'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0010 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0020 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0020 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0020'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0020')); + await Utils.sleep(500); + await textInput.inputText('adawdawd1213'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0020 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0030 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0030 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0030 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0030'); + let driver = Driver.create(); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0030')); + await Utils.sleep(500); + await textInput.inputText('adawdawd1213'); + await Utils.sleep(500); + let textInput1: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0030_1')); + await Utils.sleep(500); + await textInput1.inputText('adawdawd1213'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0030 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0050 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0040 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0040 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0040'); + let driver = Driver.create(); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0040')); + await Utils.sleep(500); + await textInput.inputText('adawdawd1213'); + await Utils.sleep(500); + let textInput1: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0040_1')); + await Utils.sleep(500); + await textInput1.inputText('adawdawd1213'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0040 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0050 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0050 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0050 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0050'); + let driver = Driver.create(); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0050')); + await Utils.sleep(500); + await textInput.inputText('adawdawd1213'); + await Utils.sleep(500); + let textInput1: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0050_1')); + await Utils.sleep(500); + await textInput1.inputText('adawdawd1213'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0050 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0060 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0060 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0060 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0060'); + let driver = Driver.create(); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0060')); + await Utils.sleep(500); + await textInput.inputText('adawdawd1213'); + await Utils.sleep(500); + let textInput1: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0060_1')); + await Utils.sleep(500); + await textInput1.inputText('adawdawd1213'); + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextInputSecurityKeyboardScroll0060')); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(500); + await textInput1.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0060 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0070 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0070 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0070 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0070'); + let driver = Driver.create(); + await Utils.sleep(500); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0070')); + await Utils.sleep(500); + await textInput.inputText('adawdawd1213'); + await Utils.sleep(500); + await textInput.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll.click(); + await Utils.sleep(500); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(500); + await copy.click(); + await Utils.sleep(500); + let textInput1: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0070_1')); + await Utils.sleep(500); + await textInput1.longClick(); + await Utils.sleep(500); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(500); + await paste.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0070 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0080 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0080 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0080 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0080'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0080')); + await Utils.sleep(500); + await textInput.inputText('adad123'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0080 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0090 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0090 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0090 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0090'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0090')); + await Utils.sleep(500); + await textInput.inputText('12345678915151515'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0090 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0100 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0100 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0100'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0100')); + await Utils.sleep(500); + await textInput.inputText('1234512345123451234512'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0100 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0110 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0110 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0110 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0110'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0110')); + await Utils.sleep(500); + await textInput.inputText('1234512345123451234512'); + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextInputSecurityKeyboardScroll0110')); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0110 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0120 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0120 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0120 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0120'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0120')); + await Utils.sleep(500); + await textInput.inputText('1234512345123451234512123456456456654664646464646466'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0120 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0130 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0130 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0130 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0130'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0130')); + await Utils.sleep(500); + await textInput.inputText('1234566'); + await Utils.sleep(500); + let point = await textInput.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x + 320, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0130 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0140 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0140 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0140 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0140'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0140')); + await Utils.sleep(500); + await textInput.inputText('1234566'); + await Utils.sleep(500); + await driver.triggerKey(2055) + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0140 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0150 + * @tc.name SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0150 + * @tc.desc + */ + it('SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0150 start.`); + Settings.createWindow('testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0150'); + let driver = Driver.create(); + let textInput: Component = await driver.findComponent(ON.id('UIComponentTextInputSecurityKeyboardScroll0150')); + await Utils.sleep(500); + await textInput.inputText('1234566'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_TEXTINPUT_SECURITY_KEYBOARD_SCROLL_0150 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputTest/UIComponentTextInput.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputTest/UIComponentTextInput.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..dec6b5c02cb0759c4e5cf32264ef03b489a98a1a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextInputTest/UIComponentTextInput.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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, ON } from '@kit.TestKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextInput0010() { + + describe('UIComponentTextInput0010', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + it('SUB_ACE_ANALYSE_UI_COMPONENT_TEXTINPUT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_ANALYSE_UI_COMPONENT_TEXTINPUT_0010 start.`); + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { + }) + Settings.createWindow("testability/pages/UIComponentTextInput/UIComponentTextInput0010") + await Utils.sleep(2000) + let driver: Driver = Driver.create() + await Utils.sleep(1000) + let ButtonCom2 = await driver.findComponent(ON.id('button2')) + await Utils.sleep(1000) + await ButtonCom2.click() + await Utils.sleep(2000) + windowSnap.snapShot() + await Utils.sleep(2000) + let ButtonCom1 = await driver.findComponent(ON.id('button1')) + await Utils.sleep(1000) + await ButtonCom1.click() + await Utils.sleep(1000) + Logger.info('TEST', `SUB_ACE_UI_ATTRIBUTES_FONT_INTERFACE_0010 finish.`); + done() + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextReverseAnalysisTest/UIComponentTextReverseAnalysis.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextReverseAnalysisTest/UIComponentTextReverseAnalysis.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..fe68e607db87e986a920e9fe84ff8a7a67aa43f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextReverseAnalysisTest/UIComponentTextReverseAnalysis.test.ets @@ -0,0 +1,331 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' +import { Driver, Component, ON, MouseButton } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit'; +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextReverseAnalysis() { + + describe('UIComponentTextReverseAnalysis', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0200 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0200 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0200 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0200"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('insert')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0200 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0300 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0300 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0300 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0300"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0300_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0300 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0350 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0350 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0350 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0350"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0350_001')); + let point = await button.getBoundsCenter(); + await driver.mouseMoveTo({x: point.x, y: point.y}); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0350 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0480 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0480 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0480 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0480"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0480_001')); + await button.click(); + await Utils.sleep(2000); + await button.inputText('text'); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0480 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0490 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0490 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0490 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0490"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0490_001')); + await button.click(); + await Utils.sleep(2000); + await button.inputText('text'); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0490 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0500 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0500 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0500 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0500"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0500_001')); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0500 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0510 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0510 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0510 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0510"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0510_001')); + await button.click(); + await Utils.sleep(2000); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_TAB); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0510 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0390 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0390 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0390 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0390"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await Utils.homeAndBack(driver); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0390_001')); + await button.click(); + await Utils.sleep(1000); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0390 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0420 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0420 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0420 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0420"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await Utils.homeAndBack(driver); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0420_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0420 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0430 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0430 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0430 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0430"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + await Utils.homeAndBack(driver); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0430_001')); + await button.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0430 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0400 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0400 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0400 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0400"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0400_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0400 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0410 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0410 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0410 start.`); + Settings.createWindow("testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0410"); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let button : Component = await driver.findComponent(ON.id('UIComponentTextReverseAnalysis0410_001')); + await button.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_REVERSEANALYSIS_0410 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaActionTest/UIComponentTextTextAreaActionTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaActionTest/UIComponentTextTextAreaActionTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..54ea1251f5681688353c716fb269c75307365f7e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaActionTest/UIComponentTextTextAreaActionTest.test.ets @@ -0,0 +1,314 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, Component, ON } from '@kit.TestKit'; +import { KeyCode } from '@kit.InputKit'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextAreaActionTest() { + + describe('UIComponentTextTextAreaActionTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0010 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0010'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0010')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0010 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0020 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0020'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0020')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.longClick(point.x,point.y - 20); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0020 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0030 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0030 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0030'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0030')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await textArea.longClick() + await Utils.sleep(100); + await driver.pressBack(); + await Utils.sleep(100); + await driver.pressBack(); + await Utils.sleep(100); + await driver.pressBack(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0030 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0040 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0040 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0040'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0040')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let textArea1: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0040_1')); + await Utils.sleep(100); + await textArea1.click(); + await Utils.sleep(100); + await textArea.click() + await Utils.sleep(100); + await driver.triggerKey(2040) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0040 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0080 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0080 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0080'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0080')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(100); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(100); + await copy.click(); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(100); + await paste.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0080 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0090 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0090 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0090'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0090')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + await driver.triggerKey(2040) + await Utils.sleep(2000); + await driver.triggerKey(2014); + await Utils.sleep(100); + await driver.triggerKey(2014); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0090 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0100 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0100'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0100')); + await Utils.sleep(100); + await textArea.doubleClick(); + await Utils.sleep(100); + let textArea1: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0100_1')); + await Utils.sleep(100); + await textArea1.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0100 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0070 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0070 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0070'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaAction0070')); + await Utils.sleep(100); + await textArea.longClick(); + await driver.triggerKey(KeyCode.KEYCODE_H); + await driver.triggerKey(KeyCode.KEYCODE_E); + await driver.triggerKey(KeyCode.KEYCODE_L); + await driver.triggerKey(KeyCode.KEYCODE_L); + await driver.triggerKey(KeyCode.KEYCODE_O); + await Utils.sleep(100); + await textArea.longClick(); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll?.click(); + let point = await textArea.getBounds(); + await driver.click(point.left + 200, point.bottom + 100); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0070 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0110 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0110 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0110'); + await Utils.sleep(1000); + let driver: Driver = Driver.create(); + await driver.delayMs(1000); + let textArea: Component = await driver.findComponent(ON.id('TextTextAreaAction0110')); + let text: Component = await driver.findComponent(ON.id('TextTextAreaAction0110_1')); + await Utils.sleep(1000); + await textArea.inputText('textArea:测试getTextContentLineCount'); + await Utils.sleep(1000); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(200); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(200); + await driver.triggerKey(KeyCode.KEYCODE_ENTER); + await Utils.sleep(1000); + await text.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ACTION_0110 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEnhancesTest/UIComponentTextTextAreaEnhancesTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEnhancesTest/UIComponentTextTextAreaEnhancesTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..48c5254847ce9fa2f980ab34f1bad9d72ed33988 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEnhancesTest/UIComponentTextTextAreaEnhancesTest.test.ets @@ -0,0 +1,107 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, Component, ON } from '@kit.TestKit'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextAreaEnhancesTest() { + + describe('UIComponentTextTextAreaEnhancesTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_0900 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_0900 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_0900', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_0900 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances0900'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnhances0900')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1500); + windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_0900 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_2500 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_2500 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_2500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_2500 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances2500'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnhances2500')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1500); + windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTARE_ENHANCES_2500 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEnterkeyTypeTest/UIComponentTextTextAreaEnterkeyTypeTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEnterkeyTypeTest/UIComponentTextTextAreaEnterkeyTypeTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..75a5c0a9ba492ce01a43b8b71c6034dfd01bf3fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEnterkeyTypeTest/UIComponentTextTextAreaEnterkeyTypeTest.test.ets @@ -0,0 +1,442 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Driver, Component, ON } from '@kit.TestKit'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextAreaEnterkeyTypeTest() { + + describe('UIComponentTextTextAreaEnterkeyTypeTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0010 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0010 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0010'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0010')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0010')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0010 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0016 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0016 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0016', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0016 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0016'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0016')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0016')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0016 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0020 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0020 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0020'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0020')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0020')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0020 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0030 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0030 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0030 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0030'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0030')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0030')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0030 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0040 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0040 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0040 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0040'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0040')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0040')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0040 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0050 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0050 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0050 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0050'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0050')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0050')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0050 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0060 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0060 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0060 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0060'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0060')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0060')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0060 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0080 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0080 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0080 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0080'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0080')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0080')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0080 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0090 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0090 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0090 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0090'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0090')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0090')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let btn1: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0090_1')); + await Utils.sleep(100); + await btn1.click(); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0090 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0100 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0100 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0100'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0100')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0100')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let btn1: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0100_1')); + await Utils.sleep(100); + await btn1.click(); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0100 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0110 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0110 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0110 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0110'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0110')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0110')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let btn1: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0110_1')); + await Utils.sleep(100); + await btn1.click(); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0110 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0120 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0120 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0120 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0120'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0120')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0120')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let btn1: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0120_1')); + await Utils.sleep(100); + await btn1.click(); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0120 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0130 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0130 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0130 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0130'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0130')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0130')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let btn1: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0130_1')); + await Utils.sleep(100); + await btn1.click(); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0130 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0140 + * @tc.name SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0140 + * @tc.desc + */ + it('SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0140 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0140'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0140')); + await Utils.sleep(100); + await btn.click(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEnterkeyType0140')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(100); + let btn1: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaEnterkeyType0140_1')); + await Utils.sleep(100); + await btn1.click(); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(100); + await driver.triggerKey(2054); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_0OMPONENT_TEXT_TEXTAREA_ENTERKEYTYPE_0140 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEvaSaveInputMethodTest/UIComponentTextTextAreaEvaSaveInputMethodTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEvaSaveInputMethodTest/UIComponentTextTextAreaEvaSaveInputMethodTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..9709e556c95dcc0826c771c2685357d0b40f0391 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaEvaSaveInputMethodTest/UIComponentTextTextAreaEvaSaveInputMethodTest.test.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 { afterEach, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Driver, Component, ON, MouseButton, DisplayRotation } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextTextAreaEvaSaveInputMethodTest() { + + describe('UIComponentTextTextAreaEvaSaveInputMethodTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0130 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0130 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0130"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEvaSaveInputMethod0130')); + await Utils.sleep(100); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(100); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(500); + await Settings.changeOrientation(); + await Utils.sleep(200); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(500); + await Settings.changeOrientation(); + await Utils.sleep(200); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0130 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0140 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0140 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0140"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEvaSaveInputMethod0140')); + await Utils.sleep(500); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0140 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0150 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0150 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0150"); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaEvaSaveInputMethod0150')); + await Utils.sleep(500); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(500); + await Settings.changeOrientation(); + await Utils.sleep(200); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + await Settings.changeOrientation(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_EVASIVEINPUTMETHOD_0150 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterActionTest/UIComponentTextTextAreaInterActionTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterActionTest/UIComponentTextTextAreaInterActionTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..674c53df073291a8565a7f8466437f6f96a9ad67 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterActionTest/UIComponentTextTextAreaInterActionTest.test.ets @@ -0,0 +1,139 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Driver, Component, ON, MouseButton } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextTextAreaInterActionTest() { + + describe('UIComponentTextTextAreaInterActionTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0010 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0010"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterAction0010')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + await textArea.longClick(); + await Utils.sleep(500); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(1000); + await driver.drag(point.x + 300, point.y, point.x - 20, point.y) + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0010 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0030"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterAction0030')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + await textArea.longClick(); + await Utils.sleep(500); + let copy: Component = await driver.findComponent(ON.text('剪切')); + await Utils.sleep(200); + await copy.click(); + await Utils.sleep(200); + await driver.triggerCombineKeys(2072, 2014); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0030 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0040 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0040"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterAction0040')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(1000); + await driver.mouseDrag({ + x: point.x + 300, y: point.y, + }, { + x: point.x - 20, y: point.y + }) + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERACTION_0040 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterActiveTest/UIComponentTextTextAreaInterActiveTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterActiveTest/UIComponentTextTextAreaInterActiveTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..9cfe4d9baad7c951eac5a24d05c997eec7600f0b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterActiveTest/UIComponentTextTextAreaInterActiveTest.test.ets @@ -0,0 +1,373 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Driver, Component, ON, MouseButton } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextTextAreaInterActiveTest() { + + describe('UIComponentTextTextAreaInterActiveTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0010 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0010 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0010"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0010')); + await Utils.sleep(100); + await textArea.inputText('123ab?_!A123'); + await Utils.sleep(1000); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(1000); + await driver.click(point.x, point.y + 100) + await Utils.sleep(1000); + await textArea.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0010 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0020 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0020 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0020 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0020"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0020')); + await Utils.sleep(100); + await textArea.inputText('123ab?_!A123'); + await Utils.sleep(100); + await driver.triggerKey(2014) + await Utils.sleep(100); + await textArea.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0020 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0030 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0030"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0030')); + await Utils.sleep(100); + await textArea.inputText('123ab?_!A123aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') + await Utils.sleep(100); + await textArea.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0030 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0040 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0040 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0040"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0040')); + await Utils.sleep(100); + await textArea.inputText('123ab?_!A123aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') + await Utils.sleep(100); + await textArea.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0040 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0050 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0050 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0050"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0050')); + await Utils.sleep(100); + await textArea.inputText('123ab?_!A123aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') + await Utils.sleep(100); + await textArea.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0050 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0060 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0060 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0060 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0060"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0060')); + await Utils.sleep(100); + await textArea.inputText('123ab?_!A123') + await Utils.sleep(100); + let btn: Component = await driver.findComponent(ON.id('btnTextAreaUIComponentTextTextAreaInterActive0060')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(100); + await textArea.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0060 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0070 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0070 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0070 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0070"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0070')); + await Utils.sleep(100); + await textArea.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0070 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0300 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0300 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0300 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0300"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0300')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0300 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0320 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0320 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0320 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0320"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0320')); + await Utils.sleep(100); + await textArea.inputText('aaaaaa'); + await Utils.sleep(100); + await driver.triggerCombineKeys(2047, 2099); + await Utils.sleep(1001); + await driver.triggerKey(2070); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0320 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0330 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0330 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0330 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0330"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0330')); + await Utils.sleep(100); + await textArea.inputText('aahello worldaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0330 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0340 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0340 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0340 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0340"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0340')); + await Utils.sleep(100); + await textArea.inputText('aahellodaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0340 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0350 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0350 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0350 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0350"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0350')); + await Utils.sleep(100); + await textArea.inputText('aahe大家好llo worldaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0350 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0360 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0360 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0360 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0360"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0360')); + await Utils.sleep(100); + await textArea.inputText('aahe大家好大家好dllo worldaaaa'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0360 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0370 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0370 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0370 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0370"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0370')); + await Utils.sleep(100); + await textArea.inputText('abc_ABC@#*/?llo world'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0370 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0380 + * @tc.name : SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0380 + * @tc.desc : + */ + it('SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0380 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0380"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterActive0380')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CONPONENT_TEXT_TEXTAREA_INTERACTIVE_0380 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterfaceTest/UIComponentTextTextAreaInterfaceTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterfaceTest/UIComponentTextTextAreaInterfaceTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..98acdcff36078e3868cacb33bfb2b89e7261e979 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaInterfaceTest/UIComponentTextTextAreaInterfaceTest.test.ets @@ -0,0 +1,203 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextAreaInterfaceTest() { + + describe('UIComponentTextTextAreaInterfaceTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0670 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0670 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0670 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0670'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0670')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0670 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0680 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0680 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0680 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0680'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0680')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0680 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0690 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0690 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0690 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0690'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0690')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0690 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0700 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0700 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0700 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0700'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0700')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0700 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0710 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0710 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0710 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0710'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0710')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0710 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0720 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0720 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0720 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0720'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0720')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0720 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0730 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0730 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0730', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0730 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0730'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0730')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0730 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0740 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0740 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0740', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0740 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0740'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface0740')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_0740 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1020 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface1020'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaInterface1020')); + await Utils.sleep(100); + await textArea.inputText('大家好_helloadada'); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_INTERFACE_1020 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaLayoutTest/UIComponentTextTextAreaLayoutTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaLayoutTest/UIComponentTextTextAreaLayoutTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..b57db91e08c30ebde59b40463701a99c444af168 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaLayoutTest/UIComponentTextTextAreaLayoutTest.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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextAreaLayoutTest() { + + describe('UIComponentTextTextAreaLayoutTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0010 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0010'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaLayout0010')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0010 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0020 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0020'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaLayout0020')); + await Utils.sleep(100); + await textArea.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_LAYOUT_0020 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaOnEditChangeTest/UIComponentTextTextAreaOnEditChangeTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaOnEditChangeTest/UIComponentTextTextAreaOnEditChangeTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..f7093e5348d658c1f75ce3bb9198c3ede3938418 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaOnEditChangeTest/UIComponentTextTextAreaOnEditChangeTest.test.ets @@ -0,0 +1,127 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { afterEach, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Driver, Component, ON } from '@kit.TestKit'; +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextTextAreaOnEditChangeTest() { + + describe('UIComponentTextTextAreaOnEditChangeTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0100 + * @tc.desc : Text component dynamically switches theme modes + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0100 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0100"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let textArea = await driver.findComponent(ON.id('UIComponentTextTextAreaOnEditChange0100_textArea')); + await Utils.sleep(1000); + await textArea.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0100 finish.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0090 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0090 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0090'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let text: Component = await driver.findComponent(ON.id('TextAreaOnEditChange0090')); + let textArea: Component = await driver.findComponent(ON.id('TextAreaOnEditChange0090_1')); + await Utils.sleep(1000); + await text.dragTo(textArea); + await Utils.sleep(1000); + await text.dragTo(textArea); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0090 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0130 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0130 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0130'); + await Utils.sleep(100); + let driver: Driver = Driver.create(); + await driver.delayMs(100); + let textArea1: Component = await driver.findComponent(ON.id('TextAreaOnEditChange0130_1')); + let textArea2: Component = await driver.findComponent(ON.id('TextAreaOnEditChange0130_2')); + await Utils.sleep(1000); + await textArea1.dragTo(textArea2); + await Utils.sleep(1000); + await textArea1.dragTo(textArea2); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_ONEDITCHANGE_0130 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaSelectionTest/UIComponentTextTextAreaSelectionTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaSelectionTest/UIComponentTextTextAreaSelectionTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..a0aaed0c1cffcb7f7005af217b2cbf3d2561e9b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaSelectionTest/UIComponentTextTextAreaSelectionTest.test.ets @@ -0,0 +1,523 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Driver, Component, ON, MouseButton } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextTextAreaSelectionTest() { + + describe('UIComponentTextTextAreaSelectionTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0020 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0020 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0020 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0020"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0020')); + await Utils.sleep(1000); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') + await Utils.sleep(1000); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0020')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(500); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0020 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0030"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0030')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0030')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(500); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x, y: point.y + }, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0030 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0040 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0040"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0040')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0040')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0040 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0050 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0050 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0050"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0050')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa'); + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0050')); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(500); + await driver.triggerKey(2055); + await Utils.sleep(100); + await textArea.inputText('bbbbbbbbbbbbbbbbbb'); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0050 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0060 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0060 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0060"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0060')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa'); + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0060')); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(500); + let textArea1: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0060_1')); + await Utils.sleep(500); + await textArea1.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0060 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0070 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0070 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0070 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0070"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0070')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0070')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0070 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_1 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_1 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_1 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0090')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0090_1')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_1 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_2 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_2 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_2 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0090')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0090_2')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_2 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_3 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_3 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_3 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0090')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0090_3')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_3 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_4 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_4 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_4 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0090')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0090_4')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0090_4 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0100 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0100 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0100 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0100"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0100')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0100')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0100 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0110 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0110 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0110 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0110"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0110')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0110')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0110 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0120 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0120 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0120 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0120"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0120')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0120')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(500); + let btn1: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0120_1')); + await Utils.sleep(500); + await btn1.click() + await Utils.sleep(500); + await btn.click() + await Utils.sleep(500); + await btn1.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0120 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0130 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0130 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0130 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0130"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0130')); + await Utils.sleep(100); + await textArea.inputText('aaaaa'); + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0130')); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(500); + await textArea.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll.click(); + await Utils.sleep(500); + let cut: Component = await driver.findComponent(ON.text('剪切')); + await Utils.sleep(500); + await cut.click(); + await Utils.sleep(500); + await textArea.longClick(); + await Utils.sleep(500); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(500); + await paste.click(); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0130 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0140 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0140 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0140 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0140"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0140')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0140')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(500); + let point = await textArea.getBoundsCenter(); + await Utils.sleep(500); + await driver.mouseClick({ + x: point.x + 200, y: point.y + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0140 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0150 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0150 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0150 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0150"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0150')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0150')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(500); + await textArea.longClick(); + await Utils.sleep(500); + let selectAll: Component = await driver.findComponent(ON.text('全选')); + await Utils.sleep(500); + await selectAll.click(); + await Utils.sleep(500); + let copy: Component = await driver.findComponent(ON.text('复制')); + await Utils.sleep(500); + await copy.click(); + await Utils.sleep(500); + await textArea.longClick(); + await Utils.sleep(500); + let paste: Component = await driver.findComponent(ON.text('粘贴')); + await Utils.sleep(500); + await paste.click(); + await Utils.sleep(500); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0150 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0160 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0160 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0160 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0160"); + await Utils.sleep(500); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaSelection0160')); + await Utils.sleep(100); + await textArea.inputText('aaaaaaaaa') + await Utils.sleep(500); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaSelection0160')); + await Utils.sleep(500); + await btn.click() + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_SELECTION_0160 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaUxComsistencyTest/UIComponentTextTextAreaUxComsistencyTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaUxComsistencyTest/UIComponentTextTextAreaUxComsistencyTest.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..7fc2cbde9f7142d283833085b880db8f08241d46 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextAreaUxComsistencyTest/UIComponentTextTextAreaUxComsistencyTest.test.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextAreaUxComsistencyTest() { + + describe('UIComponentTextTextAreaUxComsistencyTest', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_UXCONSISTENCY_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_UXCONSISTENCY_0060 + * @tc.desc + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_UXCONSISTENCY_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_UXCONSISTENCY_0060 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextAreaUxComsistency/UIComponentTextTextAreaUxComsistency0060'); + let driver = Driver.create(); + let textArea: Component = await driver.findComponent(ON.id('TextAreaUIComponentTextTextAreaUxComsistency0060')); + await Utils.sleep(500); + await textArea.inputText('aaaaaaaaa'); + await Utils.sleep(1000); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextAreaUxComsistency0060')); + await Utils.sleep(500); + await btn.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTAREA_UXCONSISTENCY_0060 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextEditableTest/UIComponentTextTextEditable.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextEditableTest/UIComponentTextTextEditable.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..8290d92ee84a6e8a44a8d58184f98c7fc4bb69d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextEditableTest/UIComponentTextTextEditable.test.ets @@ -0,0 +1,309 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextEditable() { + + describe('UIComponentTextTextEditable', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0140 + * @tc.desc Add test span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0140 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable014'); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0140 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0150 + * @tc.desc Add test span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0150 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable015'); + let driver: Driver = Driver.create(); + let add: Component = await driver.findComponent(ON.id('add')); + await Utils.sleep(1000); + add.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0150 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0160 + * @tc.desc Add image span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0160 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable016'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0160 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0170 + * @tc.desc Add image span + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0170 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable017'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let add: Component = await driver.findComponent(ON.id('add')); + await Utils.sleep(1000); + add.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0170 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0180 + * @tc.desc Delete spans + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0180 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable018'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let deleteButton: Component = await driver.findComponent(ON.id('deleteButton')); + await Utils.sleep(1000); + deleteButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0180 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0190 + * @tc.desc Delete spans + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0190 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable019'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let deleteButton: Component = await driver.findComponent(ON.id('deleteButton')); + await Utils.sleep(1000); + deleteButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0190 end.`); + done(); + }) + + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0200 + * @tc.desc Delete spans + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0200 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable020'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let deleteButton: Component = await driver.findComponent(ON.id('deleteButton')); + await Utils.sleep(1000); + deleteButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0200 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0210 + * @tc.desc Delete spans + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0210 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable021'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let deleteButton: Component = await driver.findComponent(ON.id('deleteButton')); + await Utils.sleep(1000); + deleteButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0210 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0220 + * @tc.desc Update span style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0220 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable022'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let updateButton: Component = await driver.findComponent(ON.id('updateButton')); + await Utils.sleep(1000); + updateButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0220 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0230 + * @tc.desc Update span style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0230 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable023'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let updateButton: Component = await driver.findComponent(ON.id('updateButton')); + await Utils.sleep(1000); + updateButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0230 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0240 + * @tc.desc Update span style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0240 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable024'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let updateButton: Component = await driver.findComponent(ON.id('updateButton')); + await Utils.sleep(1000); + updateButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0240 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0250 + * @tc.desc Update span style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0250 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable025'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let updateButton: Component = await driver.findComponent(ON.id('updateButton')); + await Utils.sleep(1000); + updateButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0250 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0260 + * @tc.desc Update span style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0260 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026'); + let driver: Driver = Driver.create(); + await Utils.sleep(1000); + let updateButton: Component = await driver.findComponent(ON.id('updateButton')); + await Utils.sleep(1000); + updateButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EDITABLE_0260 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextEvasiveInputMethodTest/UIComponentTextTextEvasiveInputMethod.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextEvasiveInputMethodTest/UIComponentTextTextEvasiveInputMethod.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..92e6ea406384d437e9708197e2cd4d6f7eb1cb81 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextEvasiveInputMethodTest/UIComponentTextTextEvasiveInputMethod.test.ets @@ -0,0 +1,155 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, MouseButton, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { i18n } from '@kit.LocalizationKit'; +import { uiAppearance } from '@kit.ArkUI'; + +export default function UIComponentTextTextEvasiveInputMethod() { + + describe('UIComponentTextTextEvasiveInputMethod', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0010 + * @tc.desc 输入框底部贴近弹窗屏幕中部均分线 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput001'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput001_button')); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput001_input')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0010 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0020 + * @tc.desc 输入框位于靠近弹窗底部 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput002'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput002_button')); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput002_input')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0020 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0030 + * @tc.desc 输入框位于屏幕中部均分线偏下位置 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0030 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput003'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput003_button')); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput003_input')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0030 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0040 + * @tc.desc 输入框位于屏幕靠近中部均分线位置 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0040 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput004'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput004_button')); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + let input: Component = await driver.findComponent(ON.id('UIComponentTextTextEvasiveInput004_input')); + await Utils.sleep(1000); + await input.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_EVASIVEINPUTMETHOD_0040 end.`); + done(); + }) + }) +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextGestureStyleTest/UIComponentTextTextGestureStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextGestureStyleTest/UIComponentTextTextGestureStyle.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..c773356171bed5e635e7ffe928803cfd9c9c0c1a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextGestureStyleTest/UIComponentTextTextGestureStyle.test.ets @@ -0,0 +1,1032 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, MouseButton, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextGestureStyle() { + + describe('UIComponentTextTextGestureStyle', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0010 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0010 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0010 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle001'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle001')); + await Utils.sleep(1000); + let pointButtonCenter = await component.getBoundsCenter(); + await driver.click(pointButtonCenter.x, pointButtonCenter.y); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0010 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0020 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0020'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0020')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.click(pointButtonCenter.x, pointButtonCenter.y); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0020 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0030 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0030 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0030 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0030'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0030')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.click(pointButtonCenter.x + 50, pointButtonCenter.y); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0030 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0040 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0040 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0040'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0040')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseClick({ + x: pointButtonCenter.x + 50, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0040 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0050 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0050 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0050'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0050')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0050 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0060 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0060 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0060'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0060')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x + 50, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0060 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0070 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0070 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0070'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0070')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x + 50, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0070 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0080 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0080 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0080'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0080')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x + 50, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0080 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0230 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0230 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0230'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0230')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseClick({ + x: pointButtonCenter.x + 50, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(1000); + await driver.mouseLongClick({ + x: pointButtonCenter.x, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0230 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_1 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_1 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_1 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0260'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0260')); + await Utils.sleep(1000); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextGestureStyle0260_1')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(100); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x - 20, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(1000); + await driver.mouseClick({ + x: pointButtonCenter.x, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_1 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_2 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_2 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_2 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0260'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0260')); + await Utils.sleep(1000); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextGestureStyle0260_2')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(100); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x - 20, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(1000); + await driver.mouseClick({ + x: pointButtonCenter.x, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_2 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_3 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_3 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_3 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0260'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0260')); + await Utils.sleep(1000); + let btn: Component = await driver.findComponent(ON.id('btnUIComponentTextTextGestureStyle0260_3')); + await Utils.sleep(100); + await btn.click(); + await Utils.sleep(100); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x - 20, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(1000); + await driver.mouseClick({ + x: pointButtonCenter.x, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_LEFT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0260_3 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0270 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0270 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0270'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0270')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x - 20, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0270 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0280 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0280 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0280'); + const driver = Driver.create(); + await Utils.sleep(1000); + let text: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0280')); + await Utils.sleep(1000); + let pointButtonCenter = await text.getBoundsCenter(); + await driver.mouseLongClick({ + x: pointButtonCenter.x - 20, + y: pointButtonCenter.y, + }, MouseButton.MOUSE_BUTTON_RIGHT); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0280 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0090 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COIPONENT_TEXT_TEXT_GESTURESTYLE_0090 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle009'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle009')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0090 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0100 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle010'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle010')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0100 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0110 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0110 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle011'); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0110 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0120 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0120 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle012'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle012')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0120 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0130 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0130 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle013'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle013')); + await Utils.sleep(1000); + component.click(); + await Utils.sleep(1000); + component.doubleClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0130 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0140 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0140 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle014'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle014')); + await Utils.sleep(1000); + await component.click(); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0140 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0160 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0160 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle016'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle016')); + await Utils.sleep(1000); + await component.click(); + await component.longClick(); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0160 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0170 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0170 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle017'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle017')); + let updateAttribute: Component = await driver.findComponent(ON.id('updateAttribute')); + await Utils.sleep(1000); + updateAttribute.click(); + await Utils.sleep(1000); + await component.click(); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0170 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_1 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018'); + await Utils.sleep(500); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle018')); + let updateAttribute: Component = await driver.findComponent(ON.id('updateAttribute')); + await Utils.sleep(500); + await component.longClick(); + await Utils.sleep(500); + updateAttribute.click(); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_2 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018'); + await Utils.sleep(500); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle018')); + await Utils.sleep(500); + await component.longClick(); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_3 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018'); + await Utils.sleep(2000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_3 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_4', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_4 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018'); + await Utils.sleep(500); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle018')); + let updateAttribute: Component = await driver.findComponent(ON.id('updateAttribute')); + await Utils.sleep(500); + await component.longClick(); + await Utils.sleep(500); + updateAttribute.click(); + await Utils.sleep(500); + updateAttribute.click(); + await Utils.sleep(500); + await component.click(); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0180_4 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190_1 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle019'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle019')); + let updateAttribute: Component = await driver.findComponent(ON.id('updateAttribute')); + await Utils.sleep(1000); + updateAttribute.click(); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190_1 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190_2 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle019'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle019')); + let updateAttribute: Component = await driver.findComponent(ON.id('updateAttribute')); + await Utils.sleep(1000); + updateAttribute.click(); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0190_2 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0200 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0200 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle020'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle020')); + await Utils.sleep(1000); + await component.click(); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0200 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0210 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0210 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0210'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0210')); + await Utils.sleep(1000); + let point = await component.getBoundsCenter() + await Utils.sleep(1000); + await driver.click(point.x - 100, point.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0210 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0220 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0220 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0220'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0220')); + await Utils.sleep(1000); + let point = await component.getBoundsCenter() + await Utils.sleep(1000); + await driver.click(point.x, point.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0220 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0250 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0250 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0250'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle0250')); + await Utils.sleep(1000); + let point = await component.getBoundsCenter() + await Utils.sleep(1000); + await driver.click(point.x, point.y); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0250 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0310 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0310 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0310 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle031'); + const driver = Driver.create(); + await Utils.sleep(1000); + let equals: Component = await driver.findComponent(ON.id('equals')); + await Utils.sleep(1000); + equals.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0310 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0330 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0330 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle033'); + const driver = Driver.create(); + await Utils.sleep(1000); + let replaceStyle: Component = await driver.findComponent(ON.id('replaceStyle')); + await Utils.sleep(1000); + replaceStyle.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0330 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0340 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0340 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle034'); + const driver = Driver.create(); + await Utils.sleep(1000); + let replaceStyle: Component = await driver.findComponent(ON.id('setStyle')); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle034')); + await Utils.sleep(1000); + replaceStyle.click(); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0340 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0350 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0350 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0350 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle035'); + const driver = Driver.create(); + await Utils.sleep(1000); + let removeStyle: Component = await driver.findComponent(ON.id('removeStyle')); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle035')); + await Utils.sleep(1000); + removeStyle.click(); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0350 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0360 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0360 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle036'); + const driver = Driver.create(); + await Utils.sleep(1000); + let removeStyles: Component = await driver.findComponent(ON.id('removeStyles')); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle036')); + await Utils.sleep(1000); + removeStyles.click(); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0360 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0370 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0370 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle037'); + const driver = Driver.create(); + await Utils.sleep(1000); + let insertString: Component = await driver.findComponent(ON.id('insertString')); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle037')); + await Utils.sleep(1000); + insertString.click(); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0370 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0150 + * @tc.desc Set click gesture + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0150 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle015'); + const driver = Driver.create(); + await Utils.sleep(1000) + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle015')); + await Utils.sleep(1000); + await component.click(); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0150 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0240 + * @tc.desc focusable=false + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0240 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle024'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle024')); + let changeButton: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle024_button')); + await Utils.sleep(1000); + await changeButton.click(); + await Utils.sleep(1000); + let rect = await component.getBounds(); + await driver.click(rect.left + 5, rect.top + 5) + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0240 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0290 + * @tc.desc esubStyledstring获取属性字符串的子字符串 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0290 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle029'); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle029')); + await Utils.sleep(1000); + let rect = await component.getBounds(); + await driver.click(rect.left + 5, rect.top + 5) + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0290 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0300 + * @tc.desc esubStyledstring获取属性字符串的子字符串 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0300 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle030'); + const driver = Driver.create(); + await Utils.sleep(1000); + let changeButton: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle030_button')); + await Utils.sleep(1000); + await changeButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0300 end.`); + done(); + }) + + /** + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0320 + * @tc.desc esubStyledstring获取属性字符串的子字符串 + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0320 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle032'); + const driver = Driver.create(); + await Utils.sleep(1000); + let changeButton: Component = await driver.findComponent(ON.id('UIComponentTextTextGestureStyle032_button')); + await Utils.sleep(1000); + await changeButton.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_GESTURESTYLE_0320 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextImageSpanAltTest/UIComponentTextTextImageSpanAlt.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextImageSpanAltTest/UIComponentTextTextImageSpanAlt.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..b822f860eade65a6c399ef8e2a0dcb33a0ff8363 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextImageSpanAltTest/UIComponentTextTextImageSpanAlt.test.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 { afterEach, beforeEach, describe, it } from '@ohos/hypium' +import Logger from '../model/Logger' +import Settings from '../model/Settings' +import Utils from '../model/Utils' +import windowSnap from '../model/snapShot' +import { i18n } from '@kit.LocalizationKit' +import { uiAppearance } from '@kit.ArkUI' + +export default function UIComponentTextTextImageSpanAlt() { + + describe('UIComponentTextTextImageSpanAlt', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done() + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0040 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0040 + * @tc.desc test imageSpan alt + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt004"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0040 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0050 + * @tc.desc test imageSpan alt + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt005"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0050 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0060 + * @tc.desc test imageSpan alt + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0060 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt006"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0060 finish.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0070 + * @tc.desc test imageSpan alt + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0070 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt007"); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(3000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_IMAGESPAN_ALT_0070 finish.`); + done(); + }) + }) + +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextInterfaceTest/UIComponentTextTextInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextInterfaceTest/UIComponentTextTextInterface.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..4cdb0a75f9e9f19b6c6d4bfb316586b59d7a122f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextInterfaceTest/UIComponentTextTextInterface.test.ets @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { i18n } from '@kit.LocalizationKit'; +import { uiAppearance } from '@kit.ArkUI'; + +export default function UIComponentTextTextInterface() { + + describe('UIComponentTextTextInterface', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_0290 + * @tc.desc Resource type parameter + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_0290 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface029'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_0290 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_1870 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_1870 + * @tc.desc Resource type parameter + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_1870', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_1870 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface187'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_1870 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_2020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_2020 + * @tc.desc Set fontWeight undefined + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_2020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_2020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface202'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_INTERFACE_2020 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextLongPressTest/UIComponentTextTextLongPress.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextLongPressTest/UIComponentTextTextLongPress.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..5c2fd5e102d7b40be52f835ff721897070c60dec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextLongPressTest/UIComponentTextTextLongPress.test.ets @@ -0,0 +1,144 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { i18n } from '@kit.LocalizationKit'; +import { uiAppearance } from '@kit.ArkUI'; + +export default function UIComponentTextTextLongPress() { + + describe('UIComponentTextTextLongPress', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0100 + * @tc.desc Test long press + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress010'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextLongPress010')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0100 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0110 + * @tc.desc Test long press + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0110 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress011'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextLongPress011')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0110 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0120 + * @tc.desc Test long press + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0120 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress012'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextLongPress012')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0120 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0130 + * @tc.desc Test long press + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0130 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress013'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextLongPress013')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_LONGPRESS_0130 end.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextMarqueeTest/UIComponentTextTextMarquee.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextMarqueeTest/UIComponentTextTextMarquee.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..4737b03cdcebab981137b7b29dab779b72c21043 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextMarqueeTest/UIComponentTextTextMarquee.test.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 { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import { uiAppearance } from '@kit.ArkUI'; +import { i18n } from '@kit.LocalizationKit'; + +export default function UIComponentTextTextMarquee() { + + describe('UIComponentTextTextMarquee', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0020 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0020 + * @tc.desc Set the textOverflow of the Text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0020', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0020 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee002'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let setOverflow: Component = await driver.findComponent(ON.id('setOverflow')); + await Utils.sleep(1000); + setOverflow.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0020 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0050 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0050 + * @tc.desc Set the textOverflow of the Text component + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0050 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee005'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let setOverflow: Component = await driver.findComponent(ON.id('setOverflow')); + let setTextAlign: Component = await driver.findComponent(ON.id('setTextAlign')); + await Utils.sleep(1000); + setOverflow.click(); + await Utils.sleep(1000); + setTextAlign.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_MARQUEE_0050 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextPrivacyMaskTest/UIComponentTextTextPrivacyMask.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextPrivacyMaskTest/UIComponentTextTextPrivacyMask.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ea37027d9efe752209de43893dfd623d99a53b9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextPrivacyMaskTest/UIComponentTextTextPrivacyMask.test.ets @@ -0,0 +1,81 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { afterEach, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import { i18n } from '@kit.LocalizationKit'; +import { uiAppearance } from '@kit.ArkUI'; + +export default function UIComponentTextTextPrivacyMask() { + + describe('UIComponentTextTextPrivacyMask', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXT_PRIVACYMASK_0280 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXT_PRIVACYMASK_0280 + * @tc.desc Test copy and paste + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_PRIVACYMASK_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_PRIVACYMASK_0280 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextPrivacyMask/UIComponentTextTextPrivacyMask028'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextPrivacyMask028')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_PRIVACYMASK_0280 end.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextStringParagraphStyleTest/UIComponentTextTextStringParagraphStyle.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextStringParagraphStyleTest/UIComponentTextTextStringParagraphStyle.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..0bc74a37a0d5947265e9bd385d79e9d933da0e9b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextStringParagraphStyleTest/UIComponentTextTextStringParagraphStyle.test.ets @@ -0,0 +1,835 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium'; +import Logger from '../model/Logger'; +import Settings from '../model/Settings'; +import Utils from '../model/Utils'; +import windowSnap from '../model/snapShot'; +import { Component, Driver, ON } from '@ohos.UiTest'; +import { i18n } from '@kit.LocalizationKit'; +import { uiAppearance } from '@kit.ArkUI'; + +export default function UIComponentTextTextStringParagraphStyle() { + + describe('UIComponentTextTextStringParagraphStyle', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return + } + + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`) + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0060 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0060 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0060 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle006'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextStringParagraphStyle006')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0060 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0070 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0070 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0070 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle007'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextStringParagraphStyle007')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0070 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0080 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0080 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0080 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle008'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let component: Component = await driver.findComponent(ON.id('UIComponentTextTextStringParagraphStyle008')); + await Utils.sleep(1000); + await component.longClick(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0080 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0090 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0090 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0090 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle009'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0090 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0100 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0100 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0100 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle010'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0100 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0110 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0110 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0110', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0110 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle011'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0110 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0120 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0120 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0120', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0120 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle012'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0120 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0130 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0130 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0130', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0130 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle013'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0130 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0140 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0140 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0140', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0140 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle014'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0140 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0150 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0150 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0150 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle015'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0150 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0160 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0160 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0160 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle016'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0160 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0170 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0170 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0170 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle017'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0170 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0180 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0180 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0180 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle018'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0180 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0190 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0190 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0190 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle019'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0190 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0200 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0200 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0200 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle020'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0200 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0210 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0210 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0210 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle021'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0210 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0220 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0220 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0220 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle022'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0220 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0230 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0230 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0230 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle023'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0230 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0240 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0240 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0240 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle024'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0240 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0250 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0250 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0250 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle025'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0250 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0260 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0260 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0260 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle026'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0260 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0270 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0270 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0270 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle027'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0270 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0280 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0280 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0280 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle028'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0280 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0290 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0290 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0290 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle029'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0290 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0300 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0300 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0300 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle030'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0300 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0310 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0310 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0310 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle031'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0310 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0320 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0320 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0320 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle032'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0320 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0330 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0330 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0320 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle033'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let changeSize: Component = await driver.findComponent(ON.id('changeSize')); + await Utils.sleep(1000); + changeSize.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0330 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0340 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0340 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0340 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle034'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0340 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0350 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0350 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0350 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle035'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0350 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0360 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0360 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0360 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle036'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0360 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0370 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0370 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0370 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle037'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0370 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0380 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0380 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0380 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle038'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0380 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0390 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0390 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0390 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle039'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0390 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0400 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0400 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0400 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle040'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0400 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0410 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0410 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0410 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle041'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0410 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0420 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0420 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0420 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle042'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0420 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0430 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0430 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0430 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle043'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0430 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0440 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0440 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0440 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle044'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0440 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0450 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0450 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0450 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle045'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0450 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0460 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0460 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0460 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle046'); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0460 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0470 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0470 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0470 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle047'); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0470 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0480 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0480 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0480 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle048'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let getStyles: Component = await driver.findComponent(ON.id('getStyles')); + await Utils.sleep(1000); + await getStyles.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0480 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0490 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0490 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0490 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle049'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let getStyles: Component = await driver.findComponent(ON.id('getStyles')); + await Utils.sleep(1000); + await getStyles.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0490 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0500 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0500 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0500 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle050'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let getStyles: Component = await driver.findComponent(ON.id('getStyles')); + await Utils.sleep(1000); + await getStyles.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0500 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0510 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0510 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0510 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle051'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let getStyles: Component = await driver.findComponent(ON.id('getStyles')); + await Utils.sleep(1000); + await getStyles.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0510 end.`); + done(); + }) + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0520 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0520 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0520 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle052'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let getStyles: Component = await driver.findComponent(ON.id('getStyles')); + await Utils.sleep(1000); + await getStyles.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0520 end.`); + done(); + }) + + /* + * @tc.number SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0530 + * @tc.name SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0530 + * @tc.desc Set paragraph style + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0530', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0530 start.`); + Settings.createWindow('testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle053'); + await Utils.sleep(1000); + const driver = Driver.create(); + await Utils.sleep(1000); + let getStyles: Component = await driver.findComponent(ON.id('getStyles')); + await Utils.sleep(1000); + await getStyles.click(); + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(1000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXTSTRING_PARAGRAPHSTYLE_0530 end.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextSupportFontTest/UIComponentTextTextSupportFont.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextSupportFontTest/UIComponentTextTextSupportFont.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..bdce765899696bc04349b9314a6908226a5c70c5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTextSupportFontTest/UIComponentTextTextSupportFont.test.ets @@ -0,0 +1,333 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, 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 } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextTextSupportFont() { + + describe('UIComponentTextTextSupportFont', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0010 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0010 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0010', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0010 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0030"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0010 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0170 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0170 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0170 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0170"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0170 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0180 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0180 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0180 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0180"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0180 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0190 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0190 + * @tc.desc : + */ + + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0190 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0190"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0190 finish.`) + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0200 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0200 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0200 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0200"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0200 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0210 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0210 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0210 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0210"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0210 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0220 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0220 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0220 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0220"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0220 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0230 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0230 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0230 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0230"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0230 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0240 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0240 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0240 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0240"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0240 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0250 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0250 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0250 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0250"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0250 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0260 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0260 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0260 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0260"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0260 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0270 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0270 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0270 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0270"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0270 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0280 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0280 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0280 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0280"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0280 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0290 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0290 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0290', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0290 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0290"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0290 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0300 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0300 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0300 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0300"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0300 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0310 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0310 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0310 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0310"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0310 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0320 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0320 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0320 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0320"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0320 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0330 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0330 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0330 start.`); + Settings.createWindow("testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0330"); + await Utils.sleep(1000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_TEXT_TEXT_SUPPORTFONT_0330 finish.`); + done(); + }) + + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTransparencyTest/UIComponentTextTransparency.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTransparencyTest/UIComponentTextTransparency.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..4bffc77bbd53a4030a70aacbde4043710647f4f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentTextTransparencyTest/UIComponentTextTransparency.test.ets @@ -0,0 +1,133 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, 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 } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UIComponentTextTransparency() { + + describe('UIComponentTextTransparency', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0030 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0030 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0030', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0030 start.`); + Settings.createWindow("testability/pages/UIComponentTextTransparency/UIComponentTextTransparency003"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + await driver.drag(100, 100, 200, 200, 400) + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0030 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0040 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0040 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0040 start.`); + Settings.createWindow("testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0040"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + await driver.drag(100, 100, 200, 200, 400) + await Utils.sleep(100); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0040 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0050 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0050 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0050 start.`); + Settings.createWindow("testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0050"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + await driver.drag(100, 100, 200, 200, 400) + await Utils.sleep(500); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0050 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0060 + * @tc.name : SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0060 + * @tc.desc : + */ + it('SUB_ACE_UI_COMPONENT_TEXT_TRANSPARENCY_0060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0060 start.`); + Settings.createWindow("testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0060"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + await driver.drag(100, 100, 200, 200, 400) + await Utils.sleep(1000); + windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENTT_TEXT_TRANSPARENCY_0060 finish.`); + done(); + }) + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets index daf797ea095d73d75a47ee5fe88209d0fec33dae..ed25dd78bad4e016d110ea9af851082ecf471133 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UIComponentUISupportColorTest/UIComponentUISupportColor.test.ets @@ -13,381 +13,192 @@ * limitations under the License. */ -import { describe, afterEach, it } from '@ohos/hypium'; -import Settings from '../model/Settings'; -import windowSnap from '../model/snapShot'; -import Logger from '../model/Logger'; -import Utils from '../model/Utils'; -import uiAppearance from '@ohos.uiAppearance'; -import { Driver ,ON } from '@ohos.UiTest' +import { afterEach, beforeEach, 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' -/* - * UIComponentUISupportColor - * - * Settings.createWindow(config.url): - * 创建窗口,更改窗口基本配置,更改方式详见model/Settings createWindow方法 - * - * windowSnap.snapShot(globalThis.context): - * 窗口截屏&图片文件保存,存储在设备端 - * 存储文件固定,单挑用例执行后覆盖,用于自动化UI对比 - * 支持调试更改文件名为时间戳格式,更改model/snapShot createAndGetFile方法 注释L35,放开L32,L33 - * - * Logger日志使用方法: - * import Logger form './model/Logger' - * Logger.info(TAG,`config = ${config}, err = ${JSON.stringify(exception)}`) - * */ +import { Driver, ON } from '@ohos.UiTest' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' export default function UIComponentUISupportColor() { describe('UIComponentUISupportColor', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010 - * @tc.desc Verify that the Rating component dynamically switches between dark mode and light mode - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor101"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor1011")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1010 finish.`); + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); done(); }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050 - * @tc.desc Verify that the Rating component follows the system shade change - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor105"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor1051")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - await Utils.sleep(2000); - windowSnap.snapShot(); + 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); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050 finish.`); done(); }) /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1 - * @tc.desc Verify that the Rating component follows the system shade change + * @tc.number : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2040 + * @tc.name : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2040 + * @tc.desc : Text component dynamically switches theme modes */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor105"); + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2040', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2040 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor204"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let lightButton = await driver.findComponent(ON.id('UIComponentUISupportColor204')); + await Utils.sleep(1000); + await lightButton.click(); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor1051")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); + await windowSnap.snapShot(); await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1050_1 finish.`); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2040 finish.`); done(); }) /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020 - * @tc.desc Verify that the Rating component dynamically switches dark mode - Dark mode switches normally + * @tc.number : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2050 + * @tc.name : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2050 + * @tc.desc : Text component dynamically switches theme modes */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor102"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor1021")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2050', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2050 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor205"); + await Utils.sleep(500); + let driver = Driver.create(); await Utils.sleep(1000); - windowSnap.snapShot(); + let changeButton = await driver.findComponent(ON.id('UIComponentUISupportColor205')); await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1020 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040 - * @tc.desc Verify that the Rating component is fixed in dark mode - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040 start.`); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor104"); + await changeButton.click(); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK); await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor1041")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1040 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000 - * @tc.desc Verify that the Rating component dynamically switches between light mode and dark mode - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor100"); await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor1001")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1000 finish.`); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2050 finish.`); done(); }) /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030 - * @tc.desc Verify that the Rating component is fixed in a light-colored mode + * @tc.number : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2060 + * @tc.name : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2060 + * @tc.desc : Text component dynamically switches theme modes */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030 start.`); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor103"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor1031")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2060', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2060 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor206"); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK); + await Utils.sleep(500); + let driver = Driver.create(); await Utils.sleep(1000); - windowSnap.snapShot(); + let changeButton = await driver.findComponent(ON.id('UIComponentUISupportColor206')); await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_1030 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990 - * @tc.desc Verify that the Rating component dynamically switches light mode - light mode switches normally - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor099"); + await changeButton.click(); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0991")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0990 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940 - * @tc.desc Verify that the Radio component dynamically switches between dark mode and light mode - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor094") + await windowSnap.snapShot(); await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0940")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0940 finish.`); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2060 finish.`); done(); }) /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930 - * @tc.desc Verify that the Radio component dynamically switches between light mode and dark mode + * @tc.number : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2070 + * @tc.name : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2070 + * @tc.desc : Text component dynamically switches theme modes */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor093") - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0930")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2070', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2070 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor207"); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK); + await Utils.sleep(500); + let driver = Driver.create(); await Utils.sleep(1000); - windowSnap.snapShot(); + let changeButton = await driver.findComponent(ON.id('UIComponentUISupportColor207')); await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0930 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970 - * @tc.desc Verify that the Radio component is fixed in dark mode - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970 start.`); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor097") + await changeButton.click(); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK); await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0970")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0970 finish.`); - done(); - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980 - * @tc.desc Verify that the Radio component follows the system shade - */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor098"); await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0980")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - await Utils.sleep(1000); - windowSnap.snapShot('UIComponentUISupportColor0980'); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - await Utils.sleep(1000); - windowSnap.snapShot('UIComponentUISupportColor0981'); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0980 finish.`); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); + await Utils.sleep(500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2070 finish.`); done(); }) /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920 - * @tc.desc Verify that the Radio component dynamically switches Light mode - Light mode switches normally + * @tc.number : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2080 + * @tc.name : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2080 + * @tc.desc : Text component dynamically switches theme modes */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor092"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0920")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { - }); + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2080', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2080 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor208"); + await Utils.sleep(500); + await windowSnap.snapShot(); await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0920 finish.`); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2080 finish.`); done(); }) /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960 - * @tc.desc Verify that the Radio component is fixed in light mode + * @tc.number : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2090 + * @tc.name : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2090 + * @tc.desc : Text component dynamically switches theme modes */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960 start.`); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor096"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0960")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0960 finish.`); + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2090', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2090 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor209"); + await Utils.sleep(1500); + await windowSnap.snapShot(); + await Utils.sleep(1500); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2090 finish.`); done(); }) /* - * @tc.number SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950 - * @tc.name SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950 - * @tc.desc Verify that the Radio component dynamically switches to dark mode - The dark mode switches normally + * @tc.number : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2100 + * @tc.name : SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2100 + * @tc.desc : Text component dynamically switches theme modes */ - it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950 start.`); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor095"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UIComponentUISupportColor0950")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { - }); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_0950 finish.`); + it('SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2100', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2100 start.`); + Settings.createWindow("testability/pages/UIComponentUISupportColor/UIComponentUISupportColor210"); + await Utils.sleep(500); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); + await Utils.sleep(500); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK); + await Utils.sleep(500); + uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_COMPONENT_UISUPPORT_COLOR_2100 finish.`); done(); }) }) diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement.test.ets new file mode 100644 index 0000000000000000000000000000000000000000..3eb5ae42605cfc51424c782de9a817b09119a4d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement.test.ets @@ -0,0 +1,1592 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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, beforeEach, describe, it } from '@ohos/hypium' +import Settings from '../model/Settings' +import windowSnap from '../model/snapShot' +import Logger from '../model/Logger' +import Utils from '../model/Utils' + +import { Driver, ON } from '@ohos.UiTest' +import { KeyCode } from '@kit.InputKit' +import { uiAppearance } from '@kit.ArkUI' +import { i18n } from '@kit.LocalizationKit' + +export default function UICustomTextShortCutKeyReplacement() { + + describe('UICustomTextShortCutKeyReplacement', () => { + beforeEach(async (done: Function) => { + if (uiAppearance.getDarkMode() == uiAppearance.DarkMode.ALWAYS_DARK) { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT).then(() => { + console.info('Setting before Set dark-mode successfully.'); + }).catch((error: Error) => { + console.error('Setting before Set dark-mode failed, ' + error.message); + }); + Utils.sleep(1000); + } else { + console.info('Setting before dark-mode is uiAppearance.DarkMode.ALWAYS_LIGHT'); + } + i18n.System.setAppPreferredLanguage('zh-Hans-CN'); // 设置系统当前Locale为 "zh-CN" + let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 + console.log(`Switch before CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); + done(); + }) + afterEach(async (done: Function) => { + if (Settings.windowClass == undefined) { + return; + } + Settings.windowClass.destroyWindow((err) => { + if (err.code) { + Logger.error('TEST', `Failed to destroy the window. Cause : ${JSON.stringify(err)}`); + return; + } + Logger.info('TEST', `Succeeded in destroy the window.`); + }) + await Utils.sleep(1000); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0150 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0150 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0150', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0150 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT,KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0150 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0160 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0160 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0160', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0160 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + for (let index = 0; index <= 3; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0160 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0170 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0170 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0170', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0170 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0170 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0180 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0180 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0180', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0180 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0180 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0190 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0190 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0190', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0190 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0190 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0200 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0200 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0200', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0200 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0200 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0210 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0210 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0210', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0210 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0210 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0220 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0220 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0220', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0220 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0220 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0230 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0230 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0230', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0230 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0230 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0240 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0240 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0240', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0240 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0240 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0250 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0250 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0250', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0250 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0250 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0260 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0260 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0260', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0260 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0260 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0270 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0270 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0270', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0270 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0270 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0280 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0280 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0280', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0280 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0280 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0290 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0290 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0300', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0300 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0300 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0310 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0310 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0310', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0310 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0310 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0320 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0320 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0320', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0320 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_LEFT); + await Utils.sleep(100); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0320 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0330 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0330 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0330', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0330 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0330 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0340 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0340 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0340', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0340 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0340 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0350 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0350 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0350', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0350 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0350 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0360 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0360 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0360', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0360 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0360 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0370 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0370 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0370', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0370 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0370 finish.`); + done(); + }) + + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0380 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0380 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0380', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0380 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let changeText = await driver.findComponent(ON.id('changeText')); + await changeText.click(); + await Utils.sleep(1000); + for (let index = 0; index <= 20; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0380 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0390', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0410"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0400"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0400 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0410 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0410 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0410', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0410 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0410"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0410 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0420 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0420 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0420', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0420 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0420"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 2; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0420 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0430 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0430 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0430', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0430 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0430"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 8; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0430 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0440 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0440 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0440', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0440 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0440"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn3')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_UP); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0440 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0450 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0450 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0450', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0450 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0460"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + for (let index = 0; index < 3; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_UP); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0450 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0460 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0460 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0460', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0460 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0460"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_UP); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0460 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0470 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0470 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0470', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0470 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0490"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + let btn3 = await driver.findComponent(ON.id('TextShortCutKey_btn3')); + await Utils.sleep(1000); + btn3.click(); + await Utils.sleep(1000); + btn.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_DOWN); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0470 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0480 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0480 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0480', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0480 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0490"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + for (let index = 0; index < 3; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_DOWN); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0480 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0490 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0490 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0490', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0490 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0490"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_DOWN); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0490 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0500 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0500 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0500', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0500 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0500"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + await Utils.sleep(1000); + for (let index = 0; index < 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0500 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0510 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0510 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0510', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0510 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0510"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn4')); + let rich = await driver.findComponent(ON.id('TextShortCutKey_4')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + for (let index = 0; index < 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(1000); + await rich.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0510 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0520 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0520 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0520', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0520 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn4')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + for (let index = 0; index < 10; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0520 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0550 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0550 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0550', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0550 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn3')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_DOWN); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0550 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0560 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0560 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0560', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0560 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let textInput = await driver.findComponent(ON.id('TextShortCutKey_2')); + await Utils.sleep(1000); + await text.dragTo(textInput); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(1000); + await text.dragTo(textInput); + await Utils.sleep(1000); + await text.longClick(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); + await Utils.sleep(1000); + await textInput.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0560 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0570 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0570 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0570', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0570 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn2')); + let textInput = await driver.findComponent(ON.id('TextShortCutKey_2')); + let textInput2 = await driver.findComponent(ON.id('TextShortCutKey_3')); + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(1000); + await text.dragTo(textInput); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_DOWN); + await Utils.sleep(1000); + await text.dragTo(textInput); + await Utils.sleep(1000); + await text.longClick(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); + await Utils.sleep(1000); + await textInput2.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0570 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0590 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0590 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0590', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0590 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await text.longClick(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(1000); + await btn.click(); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0590 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0610 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0610 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0610', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0610 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + await Utils.sleep(1000); + await text.longClick(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0610 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_1 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_1 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_1 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0620"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn8')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_1 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0620"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn9')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0620"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0620_2 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_1 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_1 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_1 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let rich = await driver.findComponent(ON.id('TextShortCutKey_3')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn6')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(1000); + let copy = await driver.findComponent(ON.text('复制')); + await copy.click(); + await Utils.sleep(1000); + await rich.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_1 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_2 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_2 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_1 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn7')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0630_1 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_1 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_1 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_1 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn6')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_1 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_2 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_2 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_2 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn7')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0640_2 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_1 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_1 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_1 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn4')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_1 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_2 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_2 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_2 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn5')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0650_2 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_1 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_1 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_1', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_1 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn1')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_1 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_2 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_2 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_2', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_2 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn2')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_2 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_3 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_3 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_3', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_3 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let btn1 = await driver.findComponent(ON.id('TextShortCutKey_btn3')); + await Utils.sleep(1000); + await btn1.click(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0660_3 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0670 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0670 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0670', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0670 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0670"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0670 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0680 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0680 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0680', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0680 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let textInput = await driver.findComponent(ON.id('TextShortCutKey_2')); + await Utils.sleep(1000); + await text.longClick(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_C); + await Utils.sleep(1000); + await textInput.click(); + await Utils.sleep(1000); + await driver.triggerCombineKeys(KeyCode.KEYCODE_CTRL_LEFT, KeyCode.KEYCODE_V); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0680 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0690 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0690 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0690', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0700 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + let point = await text.getBoundsCenter(); + await driver.longClick(point.x, point.y); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0690 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0700 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0700 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0700', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0700 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(1000); + let point = await text.getBoundsCenter(); + await driver.click(point.x, point.y); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0700 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0710 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0710 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0710', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0710 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + let textInput = await driver.findComponent(ON.id('TextShortCutKey_2')); + await Utils.sleep(1000); + await text.dragTo(textInput); + await Utils.sleep(1000); + for (let index = 0; index < 5; index++) { + await driver.triggerCombineKeys(KeyCode.KEYCODE_SHIFT_LEFT, KeyCode.KEYCODE_DPAD_RIGHT); + await Utils.sleep(100); + } + await Utils.sleep(1000); + await text.dragTo(textInput); + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0710 finish.`); + done(); + }) + /* + * @tc.number : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0720 + * @tc.name : SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0720 + * @tc.desc : Text + */ + it('SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0720', 0, async (done: Function) => { + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0720 start.`); + Settings.createWindow("testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0720"); + await Utils.sleep(500); + let driver = Driver.create(); + await Utils.sleep(1000); + let text = await driver.findComponent(ON.id('TextShortCutKey_1')); + await Utils.sleep(1000); + let point = await text.getBoundsCenter(); + for (let index = 0; index < 2; index++) { + await driver.click(point.x, point.y); + await Utils.sleep(100); + } + await Utils.sleep(2000); + await windowSnap.snapShot(); + await Utils.sleep(2000); + Logger.info('TEST', `SUB_ACE_UI_CUSTOM_TEXT_SHORTCUT_KEY_0720 finish.`); + done(); + }) + + }) +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UITestCaseTest/UITestCaseTest.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UITestCaseTest/UITestCaseTest.test.ets deleted file mode 100644 index 3eb298841d45ba5327799ebf74cac6a88d27c69a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UITestCaseTest/UITestCaseTest.test.ets +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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'; - -/* - * 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 UITestCaseTest() { - - describe('UITestCaseTest', () => { - - - /* - * @tc.number TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_1 - * @tc.name TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_1 - * @tc.desc indicatorBuilder add Popup component, can be accepted to click out of focus pop bubble, click the bubble cancel button can close the bubble - */ - it('TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_1', 0, async (done: Function) => { - Logger.info('TEST', `TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_1 start.`); - Settings.createWindow("testability/pages/UITestCase/UITestCase001"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UITestCase0010")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_1 finish.`); - done(); - }) - - /* - * @tc.number TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_2 - * @tc.name TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_2 - * @tc.desc indicatorBuilder add Popup component, can be accepted to click out of focus pop bubble, click the bubble cancel button can close the bubble - */ - it('TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_2', 0, async (done: Function) => { - Logger.info('TEST', `TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_2 start.`); - Settings.createWindow("testability/pages/UITestCase/UITestCase001"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UITestCase0010")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - let bounds = await ButtonCom.getBounds(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - await driver.click(pointButtonCenter.x, bounds.top - 20); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `TestCase_6eb28b4e7e20410ea8a92fc7bb5809fc_2 finish.`); - done(); - }) - - /* - * @tc.number TestCase_8f7f773ecd634e0299eeaf06572766d6 - * @tc.name TestCase_8f7f773ecd634e0299eeaf06572766d6 - * @tc.desc indicatorBuilder value set to image Radio set to 50vp,image passed 20vp image - */ - it('TestCase_8f7f773ecd634e0299eeaf06572766d6', 0, async (done: Function) => { - Logger.info('TEST', `TestCase_8f7f773ecd634e0299eeaf06572766d6 start.`); - Settings.createWindow("testability/pages/UITestCase/UITestCase002"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UITestCase0020")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `TestCase_8f7f773ecd634e0299eeaf06572766d6 finish.`); - done(); - }) - - /* - * @tc.number TestCase_d087a60e6a7b48ca972deccca5b79d53 - * @tc.name TestCase_d087a60e6a7b48ca972deccca5b79d53 - * @tc.desc indicatorBuilder value is set to image, Radio is set to 50,image is passed 100vp image - */ - it('TestCase_d087a60e6a7b48ca972deccca5b79d53', 0, async (done: Function) => { - Logger.info('TEST', `TestCase_d087a60e6a7b48ca972deccca5b79d53 start.`); - Settings.createWindow("testability/pages/UITestCase/UITestCase003"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UITestCase0030")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `TestCase_d087a60e6a7b48ca972deccca5b79d53 finish.`); - done(); - }) - - /* - * @tc.number TestCase_bf3141f96575428e895b380b081b0d89 - * @tc.name TestCase_bf3141f96575428e895b380b081b0d89 - * @tc.desc Add Checkbox to indicatorBuilder, click Checkbox to be selected - */ - it('TestCase_bf3141f96575428e895b380b081b0d89', 0, async (done: Function) => { - Logger.info('TEST', `TestCase_bf3141f96575428e895b380b081b0d89 start.`); - Settings.createWindow("testability/pages/UITestCase/UITestCase004"); - await Utils.sleep(2000); - let driver: Driver = Driver.create(); - let ButtonCom = await driver.findComponent(ON.id("UITestCase0041")); - let pointButtonCenter = await ButtonCom.getBoundsCenter(); - await driver.click(pointButtonCenter.x, pointButtonCenter.y); - await Utils.sleep(3000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `TestCase_bf3141f96575428e895b380b081b0d89 finish.`); - done(); - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign.test.ets deleted file mode 100644 index a09b5277a3b64943ed6dd032dd72a0cf3d92d9ee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign.test.ets +++ /dev/null @@ -1,839 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -/* - * UiComponentButtonSelectAlign - * - * 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 UiComponentButtonSelectAlign() { - - describe('UiComponentButtonSelectAlign', () => { - - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0010 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0010 - * @tc.desc : optionWidth-OptionWidthMode-FIT_CONTENT. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0010 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0010") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0010_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0010 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0020 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0020 - * @tc.desc : optionWidth-OptionWidthMode-FIT_TRIGGER. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0020 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0020") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0020_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0020 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0030 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0030 - * @tc.desc : optionWidth-Dimension-50px. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0030 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0030") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0030_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0030 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0040 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0040 - * @tc.desc : optionWidth-Dimension-0px. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0040 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0040") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0040_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0040 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0050 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0050 - * @tc.desc : optionWidth-Dimension-(-50)px. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0050 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0050") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0050_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0050 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0060 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0060 - * @tc.desc : optionWidth-Dimension-50vp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0060 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0060") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0060_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0060 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0070 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0070 - * @tc.desc : optionWidth-Dimension-0vp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0070 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0070") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0070_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0070 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0080 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0080 - * @tc.desc : optionWidth-Dimension-(-50)vp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0080 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0080") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0080_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0080 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0090 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0090 - * @tc.desc : optionWidth-Dimension-50fp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0090 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0090") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0090_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0090 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0100 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0100 - * @tc.desc : optionWidth-Dimension-0fp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0100 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0100") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0100_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0100 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0110 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0110 - * @tc.desc : optionWidth-Dimension-(-50)fp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0110 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0110") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0110_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0110 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0120 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0120 - * @tc.desc : optionWidth-Dimension-50lpx. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0120 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0120") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0120_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0120 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0130 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0130 - * @tc.desc : optionWidth-Dimension-0lpx. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0130 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0130") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0130_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0130 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0140 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0140 - * @tc.desc : optionWidth-Dimension-(-50)lpx. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0140 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0140") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0140_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0140 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0150 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0150 - * @tc.desc : optionWidth-Dimension-80%. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0150 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0150") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0150_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0150 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0160 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0160 - * @tc.desc : optionWidth-Dimension-0. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0160 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0160") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0160_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0160 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0170 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0170 - * @tc.desc : optionWidth-Dimension-(-50%). - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0170 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0170") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0170_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0170 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0180 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0180 - * @tc.desc : optionWidth-Dimension-Resource. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0180 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0180") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0180_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0180 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0190 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0190 - * @tc.desc : Extreme width value of the dropdown menu item is -50000vp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0190 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0190") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0190_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0190 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0200 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0200 - * @tc.desc : optionHeight-Dimension-50px - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0200 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0200") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0200_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0200 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0210 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0210 - * @tc.desc : optionHeight-Dimension-0px - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0210 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0210") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0210_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0210 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0220 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0220 - * @tc.desc : optionHeight-Dimension-(-50)px - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0220 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0220") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0220_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0220 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0230 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0230 - * @tc.desc : optionHeight-Dimension-50vp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0230 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0230") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0230_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0230 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0240 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0240 - * @tc.desc : optionHeight-Dimension-0vp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0240 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0240") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0240_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0240 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0250 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0250 - * @tc.desc : optionHeight-Dimension-(-50)vp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0250 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0250") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0250_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0250 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0260 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0260 - * @tc.desc : optionHeight-Dimension-50fp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0260 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0260") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0260_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0260 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0270 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0270 - * @tc.desc : optionHeight-Dimension-0fp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0270 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0270") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0270_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0270 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0280 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0280 - * @tc.desc : optionHeight-Dimension-(-50)fp - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0280 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0280") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0280_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0280 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0290 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0290 - * @tc.desc : optionHeight-Dimension-50lpx - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0290 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0290") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0290_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0290 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0300 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0300 - * @tc.desc : optionHeight-Dimension-0lpx - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0300 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0300") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0300_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0300 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0310 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0310 - * @tc.desc : optionHeight-Dimension-(-50)lpx - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0310 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0310") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0310_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0310 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0320 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0320 - * @tc.desc : optionHeight-Dimension-80% - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0320 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0320") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0320_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0320 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0330 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0330 - * @tc.desc : optionHeight-Dimension-0 - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0330 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0330") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0330_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0330 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0340 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0340 - * @tc.desc : optionHeight-Dimension-(-50%) - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0340 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0340") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0340_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0340 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0350 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0350 - * @tc.desc : optionHeight-Dimension-Resource - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0350 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0350") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0350_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0350 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0360 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0360 - * @tc.desc : Extreme height value of the dropdown menu item is -50000VP - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0360 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0360") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0360_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0360 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0370 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0370 - * @tc.desc : Set the dropdown menu text to be smaller (8vp) and the dropdown item height to be larger (50vp). - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0370 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0370") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0370_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0370 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0380 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0380 - * @tc.desc : Set dropdown menu text size larger (50vp) and item height smaller (20vp). - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0380 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0380") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0380_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0380 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0390 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0390 - * @tc.desc : Longer dropdown text, smaller dropdown width (10vp). - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0390 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0390") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0390_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0390 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0400 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0400 - * @tc.desc : Dropdown menu text is long and large (50vp), Dropdown width and height are small (20vp). - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0400 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0400") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0400_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0400 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0410 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0410 - * @tc.desc : Normal ui, set backgroundcolor is red. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0410', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0410 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0410") - await Utils.sleep(1000); - let driver: Driver = Driver.create(); - let select: Component = await driver.findComponent(ON.id('UiComponentButtonSelectAlign0410_001')); - await select.click(); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0410 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0420 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0420 - * @tc.desc : Minimum width layout for dropdown buttons. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0420 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0420") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ALIGN_0420 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement.test.ets deleted file mode 100644 index 4fbfa47e38af2ff483dc2cfc63041a4ea34fb578..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement.test.ets +++ /dev/null @@ -1,370 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Component, Driver ,ON } from '@ohos.UiTest' -import { KeyCode } from '@kit.InputKit' -import Window from '@ohos.window' - -/* - * UiComponentButtonSelectEnhancement - * - * 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 UiComponentButtonSelectEnhancement() { - - describe('UiComponentButtonSelectEnhancement', () => { - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0030 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0030 - * @tc.desc : Set select linearGradient. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0030 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0030") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0030 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0040 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0040 - * @tc.desc : select-padding - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0040 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0040") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0040 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0050 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0050 - * @tc.desc : Text length is limited and cannot display characters. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0050 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0050") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0050 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0060 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0060 - * @tc.desc : Text length is limited to 120vp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0060 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0060") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0060 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0070 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0070 - * @tc.desc : Text length is limited to 1900vp. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0070 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0070") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0070 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0080 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0080 - * @tc.desc : Text is limited to only display one character. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0080 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0080") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0080 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0090 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0090 - * @tc.desc : Select component adapts to percentage width and height - 0. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0090 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0090") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0090 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0100 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0100 - * @tc.desc : Select component adapts to percentage width and height - 100%. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0100 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0100") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0100 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0110 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0110 - * @tc.desc : Select component adapts to percentage width and height - 60%. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0110 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0110") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0110 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0120 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0120 - * @tc.desc : Select component adapts to percentage width and height - 80%. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0120 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0120") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0120 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0130 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0130 - * @tc.desc : Select component adapts to percentage width and height - <0. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0130 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0130") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0130 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0140_1 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0140_1 - * @tc.desc : Set a gradient border for the Select without specifying width and height. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0140_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0140_1 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0140") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0140_1 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0150 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0150 - * @tc.desc : Set the value of the Select interface to a float type reference. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0150 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0150") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0150 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0160 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0160 - * @tc.desc : Set padding for the select component without setting width and height. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0160 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0160") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0160 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0170 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0170 - * @tc.desc : Set the backgroundimage for the Select component. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0170 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0170") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0170 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0180 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0180 - * @tc.desc : Select component adapts to percentage width and height - 90%. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0180 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0180") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0180 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0190 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0190 - * @tc.desc : Set a color gradient for the Select component. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0190 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0190") - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0190 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0220 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0220 - * @tc.desc : Trigger the select dropdown menu with the keyboard and move focus. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0220 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0220") - await Utils.sleep(1000); - let driver : Driver = Driver.create(); - await driver.triggerKey(KeyCode.KEYCODE_F1); - await Utils.sleep(1000); - // 走焦 - for (let i = 0; i < 4; i++) { - await driver.triggerKey(KeyCode.KEYCODE_TAB); - await Utils.sleep(1000); - } - // 竖屏 - await driver.triggerKey(KeyCode.KEYCODE_F2); - await Utils.sleep(2000); - windowSnap.snapShot(); - await Utils.sleep(1000); - let currentWindow = await Window.getLastWindow(getContext()); - await currentWindow.setPreferredOrientation(1); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0220 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_1 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_1 - * @tc.desc : Trigger the select dropdown menu with the keyboard. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_1 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0230") - await Utils.sleep(1000); - let driver : Driver = Driver.create(); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_1 finish.`); - done() - }) - - /* - * @tc.number : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_2 - * @tc.name : SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_2 - * @tc.desc : Trigger the select dropdown menu with the keyboard and toggle properties by clicking on menu items. - */ - it('SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_2', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_2 start.`); - Settings.createWindow("testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0230") - await Utils.sleep(1000); - let driver : Driver = Driver.create(); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_F1); - await Utils.sleep(1000); - await driver.triggerKey(KeyCode.KEYCODE_DPAD_UP); - await Utils.sleep(1000); - windowSnap.snapShot(); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_BUTTON_SELECT_ENHANCEMENT_0230_2 finish.`); - done() - }) - - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface.test.ets deleted file mode 100644 index bc20143f7a22bcbe35428a3620cd11a3941b5309..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface.test.ets +++ /dev/null @@ -1,2121 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@kit.TestKit' -import { KeyCode } from '@kit.InputKit' - -/* - * UiComponentPopupboxDatePickerDialogInterface - * - * 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 UiComponentPopupboxDatePickerDialogInterface() { - - describe('UiComponentPopupboxDatePickerDialogInterface', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0010 - * @tc.desc Call getUIContext()-showDatePickerDialog()-start-Date("1888-1-1"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0010 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0010") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0010_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0020 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0020 - * @tc.desc Call getUIContext()-showDatePickerDialog()-start-Date("-1970-1-1"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0020 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0020") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0020_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0020 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0030 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0030 - * @tc.desc Call getUIContext()-showDatePickerDialog()-start-Date("1970-13-1"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0030 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0030") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0030_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0040 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0040 - * @tc.desc Call getUIContext()-showDatePickerDialog()-start-Date("1970-1-32"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0040 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0040") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0040_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0050 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0050 - * @tc.desc Call getUIContext()-showDatePickerDialog()-start-Date("1970-1-1"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0050 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0050_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0050 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0060 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0060 - * @tc.desc Call getUIContext()-showDatePickerDialog()-start-Date("2023-5-16"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0060 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0060") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0060_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0060 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0070 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0070 - * @tc.desc Call getUIContext()-showDatePickerDialog()-end-Date("2111-1-1"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0070 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0070_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0080 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0080 - * @tc.desc Call getUIContext()-showDatePickerDialog()-end-Date("-2100-1-1"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0080 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0080") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0080_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0080 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0090 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0090 - * @tc.desc Call getUIContext()-showDatePickerDialog()-end-Date("2100-13-1"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0090 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0090") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0090_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0090 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0100 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0100 - * @tc.desc Call getUIContext()-showDatePickerDialog()-end-Date("2100-1-32"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0100 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0100") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0100_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0100 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0110 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0110 - * @tc.desc Call getUIContext()-showDatePickerDialog()-end-Date("2100-12-31"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0110 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0110") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0110_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0110 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0120 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0120 - * @tc.desc Call getUIContext()-showDatePickerDialog()-end-Date < start-Date. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0120 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0120") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0120_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0120 finish.`); - done() - }) - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0130 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0130 - * @tc.desc Call getUIContext()-showDatePickerDialog()-select-Date("2023-5-18"). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0130 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0130") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0130_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0130 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0140 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0140 - * @tc.desc Call getUIContext()-showDatePickerDialog()-select-not in the time range. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0140', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0140 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0140") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0140_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0140 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0150 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0150 - * @tc.desc Call getUIContext()-showDatePickerDialog()-lunar-true. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0150 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0150") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0150_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0150 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0160 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0160 - * @tc.desc Call getUIContext()-showDatePickerDialog()-lunar-false. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0160 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0160") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0160_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0160 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0170 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0170 - * @tc.desc Call getUIContext()-showDatePickerDialog()-showtime-true. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0170 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0170") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0170_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0170 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0180 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0180 - * @tc.desc Call getUIContext()-showDatePickerDialog()-showtime-false. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0180 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0180") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0180_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0180 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0190 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0190 - * @tc.desc Call getUIContext()-showDatePickerDialog()-useMilitaryTime-true. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0190 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0190") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0190_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0190 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0200 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0200 - * @tc.desc Call getUIContext()-showDatePickerDialog()-useMilitaryTime-false. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0200', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0200 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0200") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0200_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0200 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0210 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0210 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-color-Color.Blue. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0210 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0210") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0210_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0210 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0220 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0220 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-color-0x0000ff. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0220 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0220") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0220_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0220 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0230 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0230 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-color-"rgb(255,0,0)". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0230 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0230") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0230_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0230 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0240 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0240 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-color-$r(app.color.blue). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0240 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0240") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0240_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0240 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0250 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0250 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-size-"10px". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0250 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0250") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0250_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0250 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0260 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0260 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-size-10. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0260 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0260") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0260_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0260 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0270 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0270 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-size-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0270', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0270 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0270") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0270_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0270 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0280 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0280 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Lighter. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0280 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0280") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0280_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0280 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0290 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0290 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0290 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0290") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0290_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0290 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0300 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0300 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Regular. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0300', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0300 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0300") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0300_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0300 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0310 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0310 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Medium. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0310', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0310 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0310") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0310_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0310 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0320 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0320 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Bold. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0320', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0320 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0320") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0320_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0320 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0330 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0330 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-FontWeight-Bolder. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0330', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0330 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0330") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0330_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0330 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0340 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0340 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-number-400. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0340', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0340 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0340") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0340_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0340 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0350 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0350 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-number-500. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0350', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0350 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0350") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0350_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0350 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0360 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0360 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-weight-string-"500". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0360', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0360 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0360") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0360_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0360 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0370 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0370 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-family-string. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0370', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0370 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0370") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0370_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0370 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0380 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0380 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-family-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0380', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0380 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0380") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0380_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0380 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0390 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0390 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-style-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0390', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0390 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0390") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0390_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0390 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0400 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0400 - * @tc.desc Call getUIContext()-showDatePickerDialog()-disappearTextStyle-PickerTextStyle-font-style-Italic. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0400', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0400 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0400") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0400_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0400 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0410 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0410 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-color-Color.Blue. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0410', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0410 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0410") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0410_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0410 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0420 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0420 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-color-0x0000ff. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0420', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0420 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0420") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0420_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0420 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0430 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0430 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-color-"rgb(255,0,0)". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0430', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0430 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0430") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0430_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0430 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0440 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0440 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-color-$r(app.color blue). - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0440', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0440 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0440") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0440_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0440 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0450 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0450 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-size-"10px". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0450 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0450") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0450_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0450 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0460 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0460 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-size-10. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0460 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0460") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0460_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0460 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0470 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0470 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-size-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0470 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0470") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0470_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0470 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0480 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0480 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Lighter. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0480', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0480 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0480") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0480_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0480 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0490 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0490 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0490', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0490 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0490") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0490_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0490 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0500 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0500 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Regular. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0500', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0500 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0500") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0500_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0500 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0510 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0510 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Medium. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0510', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0510 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0510") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0510_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0510 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0520 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0520 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Bold. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0520', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0520 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0520") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0520_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0520 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0530 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0530 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-FontWeight-Bolder. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0530', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0530 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0530") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0530_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0530 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0540 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0540 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-number-400. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0540', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0540 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0540") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0540_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0540 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0550 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0550 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-number-500. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0550', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0550 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0550") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0550_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0550 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0560 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0560 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-weight-string-"500". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0560', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0560 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0560") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0560_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0560 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0570 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0570 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-family-string. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0570', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0570 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0570") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0570_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0570 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0580 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0580 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-family-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0580', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0580 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0580") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0580_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0580 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0590 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0590 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-style-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0590', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0590 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0590") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0590_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0590 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0600 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0600 - * @tc.desc Call getUIContext()-showDatePickerDialog()-textStyle-PickerTextStyle-font-style-Italic. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0600', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0600 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0600") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0600_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0600 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0610 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0610 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-size-"10px". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0610', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0610 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0610") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0610_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0610 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0620 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0620 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-size-10. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0620', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0620 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0620") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0620_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0620 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0630 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0630 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-size-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0630', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0630 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0630") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0630_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0630 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0640 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0640 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Lighter. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0640', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0640 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0640") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0640_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0640 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0650 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0650 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0650', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0650 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0650") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0650_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0650 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0660 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0660 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Regular. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0660', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0660 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0660") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0660_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0660 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0670 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0670 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Medium. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0670', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0670 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0670") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0670_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0670 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0680 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0680 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Bold. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0680', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0680 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0680") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0680_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0680 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0690 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0690 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-FontWeight-Bolder. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0690', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0690 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0690") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0690_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0690 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0700 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0700 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-number-400. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0700', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0700 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0700") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0700_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0700 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0710 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0710 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-number-500. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0710', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0710 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0710") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0710_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0710 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0720 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0720 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-weight-string-"500". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0720', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0720 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0720") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0720_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0720 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0730 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0730 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-family-string. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0730', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0730 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0730") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0730_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0730 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0740 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0740 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-family-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0740', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0740 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0740") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0740_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0740 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0750 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0750 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-style-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0750', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0750 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0750") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0750_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0750 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0760 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0760 - * @tc.desc Call getUIContext()-showDatePickerDialog()-selectedTextStyle-PickerTextStyle-font-style-Italic. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0760', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0760 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0760") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0760_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0760 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0770 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0770 - * @tc.desc Call getUIContext()-showDatePickerDialog()-onAccept. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0770', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0770 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0770") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0770_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_ENTER); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0770 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0780 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0780 - * @tc.desc Call getUIContext()-showDatePickerDialog()-onCancel. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0780', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0780 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0780") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0780_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_ENTER); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0780 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0790 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0790 - * @tc.desc Call getUIContext()-showDatePickerDialog()-Continuous invocation. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0790', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0790 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0790") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0790_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0790 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0830 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0830 - * @tc.desc Regular call DatePickerDialog-disappearTextStyle-PickerTextStyle-font-size-"10px". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0830', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0830 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0830") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0830_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0830 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0840 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0840 - * @tc.desc Regular call DatePickerDialog-disappearTextStyle-PickerTextStyle-font-size-10. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0840', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0840 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0840") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0840_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0840 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0850 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0850 - * @tc.desc Regular call DatePickerDialog-disappearTextStyle-PickerTextStyle-font-size-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0850', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0850 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0850") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0850_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0850 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0880 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0880 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-size-"10px". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0880', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0880 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0880") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0880_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0880 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0890 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0890 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-size-10. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0890', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0890 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0890") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0890_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0890 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0900 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0900 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-size-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0900', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0900 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0900") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0900_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0900 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0910 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0910 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-weight-FontWeight-Lighter. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0910', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0910 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0910") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0910_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0910 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0920 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0920 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-weight-FontWeight-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0920', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0920 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0920") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0920_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0920 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0930 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0930 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-weight-FontWeight-Regular. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0930', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0930 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0930") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0930_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0930 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0940 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0940 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-weight-FontWeight-Medium. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0940', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0940 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0940") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0940_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0940 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0950 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0950 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-weight-FontWeight-Bold. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0950', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0950 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0950") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0950_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0950 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0960 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0960 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-weight-FontWeight-Bolder. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0960', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0960 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface0960") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface0960_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_0960 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1000 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1000 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-family-string. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1000', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1000 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1000") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1000_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1000 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1010 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-family-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1010 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1010") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1010_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1020 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1020 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-style-Normal. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1020 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1020") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1020_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1020 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1030 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1030 - * @tc.desc Regular call DatePickerDialog-textStyle-PickerTextStyle-font-style-Italic. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1030 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1030") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1030_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1070 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1070 - * @tc.desc Regular call DatePickerDialog-selectedTextStyle-PickerTextStyle-font-size-"10px". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1070 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1070_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1080 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1080 - * @tc.desc Regular call DatePickerDialog-selectedTextStyle-PickerTextStyle-font-size-10. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1080', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1080 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1080") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1080_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1080 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1090 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1090 - * @tc.desc Regular call DatePickerDialog-selectedTextStyle-PickerTextStyle-font-size-Resource. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1090 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1090") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1090_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1090 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1170 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1170 - * @tc.desc Regular call DatePickerDialog-onAccept. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1170 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1170") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1170_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_ENTER); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1170 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1180 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1180 - * @tc.desc Regular call DatePickerDialog-onCancel. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1180 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1180") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1180_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_ENTER); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1180 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1450 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1450 - * @tc.desc Regular call DatePickerDialog-start Date(normal)-end Date(normal)-onAccept. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1450', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1450 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1450") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1450_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_ENTER); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1450 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1460 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1460 - * @tc.desc Regular call DatePickerDialog-start Date(normal)-end Date(normal)-onCancel. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1460', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1460 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1460") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1460_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_ENTER); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1460 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1470 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1470 - * @tc.desc Regular call DatePickerDialog-start Date(normal)-end Date(normal)-onChange. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1470', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1470 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogInterface/" + - "UiComponentPopupboxDatePickerDialogInterface1470") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogInterface1470_001')); - await datePickerButton.click(); - await Utils.sleep(1000); - await driver.fling({x: 300, y: 700}, {x: 300, y: 200}, 5, 600); - await Utils.sleep(2000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_INTERFACE_1470 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios.test.ets deleted file mode 100644 index b505ee8b3feae25d89a2138e5b25a5361f1c8eb8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios.test.ets +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@kit.TestKit' -import { KeyCode } from '@kit.InputKit' -import { uiAppearance } from '@kit.ArkUI' -import Window from '@ohos.window' - -/* - * UiComponentPopupboxDatePickerDialogScenarios - * - * 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 UiComponentPopupboxDatePickerDialogScenarios() { - - describe('UiComponentPopupboxDatePickerDialogScenarios', () => { - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0010 - * @tc.desc Two methods coexist - call TimePickerDialog after getting UIContext. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0010 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogScenarios/" + - "UiComponentPopupboxDatePickerDialogScenarios0010") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0010_001')); - await datePickerButton.click(); - await Utils.sleep(3000); - Settings.changeOrientation(); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - let currentWindow = await Window.getLastWindow(getContext()); - await currentWindow.setPreferredOrientation(1); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0020 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0020 - * @tc.desc Two methods coexist - getting UIContext after call TimePickerDialog. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0020', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0020 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogScenarios/" + - "UiComponentPopupboxDatePickerDialogScenarios0020") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0020_001')); - await datePickerButton.click(); - await Utils.sleep(3000); - Settings.changeOrientation(); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - let currentWindow = await Window.getLastWindow(getContext()); - await currentWindow.setPreferredOrientation(1); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0020 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0090 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0090 - * @tc.desc After the date picker popup (sub-window) appears, click 'Confirm' to exit the sub-window. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0090 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogScenarios/" + - "UiComponentPopupboxDatePickerDialogScenarios0090") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0090_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - await driver.triggerKey(KeyCode.KEYCODE_ENTER); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0090 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110 - * @tc.desc Popup displays correctly and functions stably when switching light/dark modes. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogScenarios/" + - "UiComponentPopupboxDatePickerDialogScenarios0110") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let dateButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110_001')); - await dateButton.click(); - await Utils.sleep(1000); - let pushButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110_002')); - await pushButton.click(); - await Utils.sleep(1000); - let pageShowButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110Page_001')); - await pageShowButton.click(); - await Utils.sleep(1000); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110Page_002')); - await datePickerButton.click(); - await Utils.sleep(1000); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => {}); - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => {}); - await Utils.sleep(1000); - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110_1 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110_1 - * @tc.desc Popup displays correctly and functions stably when switching light/dark modes for many times. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110_1', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110_1 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxDatePickerDialogScenarios/" + - "UiComponentPopupboxDatePickerDialogScenarios0110") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let dateButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110_001')); - await dateButton.click(); - await Utils.sleep(1000); - let pushButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110_002')); - await pushButton.click(); - await Utils.sleep(1000); - let pageShowButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110Page_001')); - await pageShowButton.click(); - await Utils.sleep(1000); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxDatePickerDialogScenarios0110Page_002')); - await datePickerButton.click(); - await Utils.sleep(1000); - for (let i = 0; i < 2; i++) { - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => {}); - await Utils.sleep(500); - await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => {}); - await Utils.sleep(500); - } - await Utils.sleep(1000); - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_DATEPICKERDIALOG_SCENARIOS_0110_1 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxZero/UiComponentPopupboxZero.test.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxZero/UiComponentPopupboxZero.test.ets deleted file mode 100644 index e74f0b0b0a85f524fdef6269946388faeba8c80f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/UiComponentPopupboxZero/UiComponentPopupboxZero.test.ets +++ /dev/null @@ -1,566 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { describe, beforeAll, beforeEach, afterEach, afterAll, it, expect } from '@ohos/hypium' -import Settings from '../model/Settings' -import windowSnap from '../model/snapShot' -import Logger from '../model/Logger' -import Utils from '../model/Utils' -import { Driver, ON } from '@kit.TestKit' - -/* - * UiComponentPopupboxZero - * - * 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 UiComponentPopupboxZero() { - - describe('UiComponentPopupboxZero', () => { - - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0010 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0010 - * @tc.desc Set TimePickerDialog is 12-hour with dateTimeOptions as hour: "2-digit", minute: "numeric". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0010', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0010 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0010") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0010_001')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0010 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0030 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0030 - * @tc.desc Set TimePickerDialog is 12-hour with dateTimeOptions as hour: "", minute: "". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0030', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0030 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0030") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0030_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0030_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0030 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0040 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0040 - * @tc.desc Set TimePickerDialog is 12-hour with dateTimeOptions as hour: undefined, minute: undefined. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0040', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0040 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0040") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0040_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0040_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0040 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0050 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0050 - * @tc.desc Set TimePickerDialog is 12-hour with dateTimeOptions as hour: "numeric", minute: "2-digit". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0050', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0050 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0050") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0050_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0050_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0050 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0060 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0060 - * @tc.desc Set TimePickerDialog is 12-hour with dateTimeOptions as hour: "hour", minute: "minute". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0060', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0060 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0060") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0060_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0060_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0060 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0070 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0070 - * @tc.desc Set DatePickerDialog is 12-hour with dateTimeOptions as hour: "2-digit", minute: "numeric". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0070', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0070 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0070") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0070_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0070 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0090 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0090 - * @tc.desc Set DatePickerDialog is 12-hour with dateTimeOptions as hour: "", minute: "". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0090', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0090 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0090") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0090_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0090_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0090 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0100 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0100 - * @tc.desc Set DatePickerDialog is 12-hour with dateTimeOptions as hour: undefined, minute: undefined. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0100', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0100 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0100") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0100_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0100_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0100 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0110 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0110 - * @tc.desc Set DatePickerDialog is 12-hour with dateTimeOptions as hour: "numeric", minute: "2-digit". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0110', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0110 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0110") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0110_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0110_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0110 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0120 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0120 - * @tc.desc Set DatePickerDialog is 12-hour with dateTimeOptions as hour: "hour", minute: "minute". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0120', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0120 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0120") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0120_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0120_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0120 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0130 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0130 - * @tc.desc Set TimePickerDialog is 24-hour with dateTimeOptions as hour: "2-digit", minute: "numeric". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0130', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0130 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0130") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0130_001')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0130 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0150 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0150 - * @tc.desc Set TimePickerDialog is 24-hour with dateTimeOptions as hour: "", minute: "". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0150', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0150 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0150") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0150_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0150_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0150 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0160 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0160 - * @tc.desc Set TimePickerDialog is 24-hour with dateTimeOptions as hour: undefined, minute: undefined. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0160', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0160 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0160") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0160_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0160_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0160 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0170 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0170 - * @tc.desc Set TimePickerDialog is 24-hour with dateTimeOptions as hour: "numeric", minute: "2-digit". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0170', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0170 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0170") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0170_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0170_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0170 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0180 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0180 - * @tc.desc Set TimePickerDialog is 24-hour with dateTimeOptions as hour: "hour", minute: "minute". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0180', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0180 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0180") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0180_001')); - await button.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0180_002')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0180 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0190 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0190 - * @tc.desc Set DatePickerDialog is 24-hour with dateTimeOptions as hour: "2-digit", minute: "numeric". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0190', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0190 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0190") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0190_001')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0190 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0210 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0210 - * @tc.desc Set DatePickerDialog is 24-hour with dateTimeOptions as hour: "", minute: "" - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0210', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0210 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0210") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0210_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0210_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0210 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0220 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0220 - * @tc.desc Set DatePickerDialog is 24-hour with dateTimeOptions as hour: undefined, minute: undefined. - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0220', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0220 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0220") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0220_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0220_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0220 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0230 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0230 - * @tc.desc Set DatePickerDialog is 24-hour with dateTimeOptions as hour: "numeric", minute: "2-digit". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0230', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0230 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0230") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0230_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0230_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0230 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0240 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0240 - * @tc.desc Set DatePickerDialog is 24-hour with dateTimeOptions as hour: "hour", minute: "minute". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0240', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0240 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0240") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0240_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0240_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0240 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0250 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0250 - * @tc.desc Switch lunar calendar affect the leading zero settings of "DatePickerDialog 24-hour"? - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0250', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0250 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0250") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0250_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0250_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0250 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0260 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0260 - * @tc.desc Switch lunar calendar affect the leading zero settings of "DatePickerDialog 12-hour"? - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0260', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0260 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0260") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0260_001')); - await button.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0260_002')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0260 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0280 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0280 - * @tc.desc Verify if other dateTimeOptions parameters affect the leading zero settings of "DatePickerDialog 24-hour". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0280', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0280 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0280") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0280_001')); - await button.click(); - await Utils.sleep(1000) - let button1 = await driver.findComponent(ON.id('UiComponentPopupboxZero0280_002')); - await button1.click(); - await Utils.sleep(1000) - let datePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0280_003')); - await datePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0280 finish.`); - done() - }) - - /* - * @tc.number SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0290 - * @tc.name SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0290 - * @tc.desc Verify if other dateTimeOptions parameters affect the leading zero settings of "TimePickerDialog 24-hour". - */ - it('SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0290', 0, async (done: Function) => { - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0290 start.`); - Settings.createWindow("testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0290") - await Utils.sleep(1000) - let driver: Driver = Driver.create(); - let button = await driver.findComponent(ON.id('UiComponentPopupboxZero0290_001')); - await button.click(); - await Utils.sleep(1000) - let button1 = await driver.findComponent(ON.id('UiComponentPopupboxZero0290_002')); - await button1.click(); - await Utils.sleep(1000) - let timePickerButton = await driver.findComponent(ON.id('UiComponentPopupboxZero0290_003')); - await timePickerButton.click(); - await Utils.sleep(1000) - windowSnap.snapShot() - await Utils.sleep(1000) - Logger.info('TEST', `SUB_ACE_UI_COMPONENT_POPUPBOX_ZERO_0290 finish.`); - done() - }) - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/LeadingMaginCreator.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/LeadingMaginCreator.ets deleted file mode 100644 index 8a727f463650a8215b253ceae9be7bbcef5bbfef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/LeadingMaginCreator.ets +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -const canvasWidth = 1000; -const canvasHeight = 100; -const Indentation = 40; - -export default class LeadingMarginCreator { - private settings: RenderingContextSettings = new RenderingContextSettings(true); - private offscreenCanvas: OffscreenCanvas = new OffscreenCanvas(canvasWidth, canvasHeight); - private offContext: OffscreenCanvasRenderingContext2D = this.offscreenCanvas.getContext("2d", this.settings); - public static instance: LeadingMarginCreator = new LeadingMarginCreator(); - - // 获得字体字号级别,分别是从0到4级 - public getFontSizeLevel(fontSize: number) { - const fontScaled: number = Number(fontSize) / 16; - - enum FontSizeScaleThreshold { - SMALL = 0.9, - NORMAL = 1.1, - LEVEL_1_LARGE = 1.2, - LEVEL_2_LARGE = 1.4, - LEVEL_3_LARGE = 1.5 - } - - let fontSizeLevel: number = 1; - - if (fontScaled < FontSizeScaleThreshold.SMALL) { - fontSizeLevel = 0; - } else if (fontScaled < FontSizeScaleThreshold.NORMAL) { - fontSizeLevel = 1; - } else if (fontScaled < FontSizeScaleThreshold.LEVEL_1_LARGE) { - fontSizeLevel = 2; - } else if (fontScaled < FontSizeScaleThreshold.LEVEL_2_LARGE) { - fontSizeLevel = 3; - } else if (fontScaled < FontSizeScaleThreshold.LEVEL_3_LARGE) { - fontSizeLevel = 4; - } else { - fontSizeLevel = 1; - } - - return fontSizeLevel; - } - - // 获得字体字号级别,分别是从0到4级 - public getmarginLevel(Width: number) { - let marginlevel: number = 1; - if (Width == 40) { - marginlevel = 2.0; - } else if (Width == 80) { - marginlevel = 1.0; - } else if (Width == 120) { - marginlevel = 2 / 3; - } else if (Width == 160) { - marginlevel = 0.5; - } else if (Width == 200) { - marginlevel = 0.4; - } - return marginlevel; - } - - public genStrMark(fontSize: number, str: string): PixelMap { - this.offContext = this.offscreenCanvas.getContext("2d", this.settings); - this.clearCanvas(); - this.offContext.font = fontSize + 'vp sans-serif'; - this.offContext.fillText(str + '.', 0, fontSize * 0.9); - return this.offContext.getPixelMap(0, 0, fontSize * (str.length + 1) / 1.75, fontSize); - } - - public genSquareMark(fontSize: number): PixelMap { - this.offContext = this.offscreenCanvas.getContext("2d", this.settings); - this.clearCanvas(); - const coordinate = fontSize * (1 - 1 / 1.5) / 2; - const sideLength = fontSize / 1.5; - this.offContext.fillRect(coordinate, coordinate, sideLength, sideLength); - return this.offContext.getPixelMap(0, 0, fontSize, fontSize); - } - - // 生成圆圈符号 - public genCircleMark(fontSize: number, width: number, level?: number): PixelMap { - const indentLevel = level ?? 1; - const offsetLevel = [22, 28, 32, 34, 38]; - const fontSizeLevel = this.getFontSizeLevel(fontSize); - const marginlevel = this.getmarginLevel(width); - const newCanvas = new OffscreenCanvas(canvasWidth, canvasHeight); - const newOffContext: OffscreenCanvasRenderingContext2D = newCanvas.getContext("2d", this.settings); - const centerCoordinate = 50; - const radius = 10; - this.clearCanvas(); - newOffContext.ellipse(100 * (indentLevel + 1) - centerCoordinate * marginlevel, offsetLevel[fontSizeLevel], - radius * marginlevel, radius, 0, 0, 2 * Math.PI); - newOffContext.fillStyle = '66FF0000'; - newOffContext.fill(); - return newOffContext.getPixelMap(0, 0, 100 + 100 * indentLevel, 100); - } - - private clearCanvas() { - this.offContext.clearRect(0, 0, canvasWidth, canvasHeight); - } -} - - - - 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..9d658dc1e2599bfe1f00e5a64aa61ec2965fbdfc 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 @@ -22,7 +22,6 @@ import Window from '@ohos.window' import common from '@ohos.app.ability.common'; import { i18n } from '@kit.LocalizationKit'; import { router } from '@kit.ArkUI'; -import { systemDateTime } from '@kit.BasicServicesKit'; const TAG: string = '[TEST]'; @@ -36,14 +35,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) { @@ -265,21 +264,6 @@ class Settings { console.log(`Switch Locales,appPreferredLanguage2=${appPreferredLanguage2}`); } - /** - * 切换应用内部语言 - * @param locale:(zh-Hans-CN(简体中文),zh-Hant-CN(繁体中文),en-Latn-CN(英文),ug-CN(维语),bo-CN(藏语)) - */ - switchCusLocales(locale: string) { - try { - i18n.System.setAppPreferredLanguage(locale); // 设置系统当前Locale为 "zh-CN" - } catch (error) { - let err: BusinessError = error as BusinessError; - console.error(`call System.setAppPreferredLanguage failed, error code: ${err.code}, message: ${err.message}.`); - } - let appPreferredLanguage2: string = i18n.System.getAppPreferredLanguage(); // 获取应用偏好语言 - console.log(`Switch CusLocales,appPreferredLanguage2=${appPreferredLanguage2}`); - } - changeOrientation(object?: Object) { // 获取上下文,使用common模块 let context = getContext() @@ -331,21 +315,6 @@ class Settings { } ; } - - getSysDateTime(): Date { - try { - systemDateTime.getDate().then((date: Date) => { - console.info(`Succeeded in getting date : ${date}`); - return date; - }).catch((error: BusinessError) => { - console.info(`Failed to get date. message: ${error.message}, code: ${error.code}`); - }); - } catch (e) { - let error = e as BusinessError; - console.info(`Failed to get date. message: ${error.message}, code: ${error.code}`); - } - return new Date(); - } } export default new Settings() \ No newline at end of file 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..a72ee624db4eaee1ae0b91d9b71177cbbeae3a2b 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 @@ -14,6 +14,9 @@ */ 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 { @@ -39,6 +42,45 @@ 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/test/model/snapShot.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets index 773f21352336973e8a11bce347632a45bd62dd62..caa2a7695306ade9cb3f37b46080cc92ddf862fd 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/test/model/snapShot.ets @@ -130,6 +130,7 @@ class windowSnap { await this.deleteFile(webpFilePath); let driver = Driver.create(); let orientation = display.getDefaultDisplaySync().orientation; + //竖屏 let captureRes: boolean; if (orientation == window.Orientation.PORTRAIT || orientation == window.Orientation.UNSPECIFIED) { 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..aecaf9f7e68346a72b833d05ba8f64964fffb191 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,28 @@ export default class TestAbility extends UIAbility { hilog.info(0x0000, 'testTag', '%{public}s', 'TestAbility onWindowStageCreate'); GlobalThis.getInstance().setContext("context", this.context) - windowStage.loadContent('testability/pages/Index', (err) => { - if (err.code) { - hilog.error(0x0000, 'testTag', 'Failed to load the content. Cause: %{public}s', JSON.stringify(err) ?? ''); - return; + let atManager = abilityAccessCtrl.createAtManager(); + let appFlags = bundleManager.BundleFlag.GET_BUNDLE_INFO_WITH_APPLICATION; + let permissionFlags = 0; + bundleManager.getBundleInfoForSelf(appFlags, (err, data) => { + if (err) { + Logger.error(TAG, 'getAllApplicationInfo failed: %{public}s', err.message); + console.error("") } - hilog.info(0x0000, 'testTag', 'Succeeded in loading the content.'); - }); + let tokenID = + data.appInfo.accessTokenId; //系统应用可以通过bundleManager.getApplicationInfo获取,普通应用可以通过bundleManager.getBundleInfoForSelf获取 + atManager.grantUserGrantedPermission(tokenID, 'ohos.permission.READ_MEDIA', permissionFlags, (err, data) => { + if (err) { + Logger.info(TAG, `grantUserGrantedPermission fail, err->${JSON.stringify(err)}`) + } + }) + atManager.grantUserGrantedPermission(tokenID, 'ohos.permission.WRITE_MEDIA', permissionFlags, (err, data) => { + if (err) { + Logger.info(TAG, `grantUserGrantedPermission fail, err->${JSON.stringify(err)}`) + } + }) + }) + } onWindowStageDestroy() { diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..1e0a88915a2ed72159cd0b703d07b4de6d564a42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150.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 UICustomTextShortCutKeyReplacement0150 { + @State msg: string = 'HH测试223% U测72试#'; + @State start: number = 0 + @State end: number = 0 + build() { + Text(this.msg) + .width('100%') + .height(60) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..6b3297dd1c9c2d04c6ef603b9b3a11774d9c1426 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160.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 UICustomTextShortCutKeyReplacement0160 { + @State msg: string = 'HH测试223% U测72试#'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Text(this.msg) + .width('100%') + .height(60) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=1) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..02ff1187993515cdbd45d44fa3d25e3715689fc2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170.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 UICustomTextShortCutKeyReplacement0170 { + @State msg: string = 'HH测试223% U测72试# 1/2 @&*ئاھ چوڭ \uD83D\uDE00'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Text(this.msg) + .width('100%') + .height(60) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=1) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d4b70bcec92203a56c4f2276d54ce5f92f24ba4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180.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 UICustomTextShortCutKeyReplacement0180 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试XXX2!'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=-1) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..324983114d0ac69e6e070863a14934308c34c4dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190.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 UICustomTextShortCutKeyReplacement0190 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..d663a25d6388838842e3b2268f240c7a9dfa7cd8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200.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 UICustomTextShortCutKeyReplacement0200 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..5545ddb2c8ca2e802fcbdf41dfec23b0525c5878 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210.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 UICustomTextShortCutKeyReplacement0210 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..6713c6bd51c5781fe79b3056a18e693fcbf35385 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220.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 UICustomTextShortCutKeyReplacement0220 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ddf46fe359ced1a09ae4e20d37536b399ca85ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230.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 UICustomTextShortCutKeyReplacement0230 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..6faa65631bf44f4155a342b34ced4113e2ea1051 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240.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 UICustomTextShortCutKeyReplacement0240 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..72d300fe02c37a7cb3a42cca9f47c52f91d5a16b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250.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 UICustomTextShortCutKeyReplacement0250 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 10; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..2ae850c6c627214687de1d33e10b76d04d0567e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260.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 UICustomTextShortCutKeyReplacement0260 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 10; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..8f6eaac819941d51db4f7c26b331db13b29fdb26 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270.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 UICustomTextShortCutKeyReplacement0270 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..319067ee443cb41c7cabec8297c036e75706f904 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280.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 UICustomTextShortCutKeyReplacement0280 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b8a66b159325cad43e3a5330f6c5c22ce15ad63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300.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 UICustomTextShortCutKeyReplacement0300 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..ae4ce8845351e929a9b6986154bbf079153f6244 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310.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 UICustomTextShortCutKeyReplacement0310 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..d998c5ff307517770417632875e0da54bcb543ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320.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 UICustomTextShortCutKeyReplacement0320 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..5bbc5d856ca301466c9c4453fb562611c8a41b9d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330.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 UICustomTextShortCutKeyReplacement0330 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..eaf5dd10420120e7cdfc1e90c625a95f821d4a66 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340.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 UICustomTextShortCutKeyReplacement0340 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..851d4d630e8aebc108c1417e369ff10fa47b6fcb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350.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 UICustomTextShortCutKeyReplacement0350 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c71867c4fee6f34a7a69992f3a7815361f38e2e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360.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 UICustomTextShortCutKeyReplacement0360 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfd428d2307b94a69fed5266420dde1c6088e4d0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370.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 UICustomTextShortCutKeyReplacement0370 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..e147dbce219ebb3bed84c4e2a94d7510253a4cf4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380.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 UICustomTextShortCutKeyReplacement0380 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabScrollable/ArkUITabScrollable001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabScrollable/ArkUITabScrollable001.ets deleted file mode 100644 index ce563b90c4e724a4f104d65714b79b980ab56ab3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabScrollable/ArkUITabScrollable001.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabScrollable001 { - @State scrollable: boolean = true; - build() { - Column({ space: 5 }) { - - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')) - } - .vertical(false).scrollable(this.scrollable).barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .id('ArkUITabScrollable001_001') - .width('100%') - .backgroundColor(0xF1F3F5); - - Button('设置').width('50%').margin({ top: 20 }) - .onClick(() => { - this.scrollable = !this.scrollable; - }).id('ArkUITabScrollable001_002'); - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabScrollable/ArkUITabScrollable002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabScrollable/ArkUITabScrollable002.ets deleted file mode 100644 index 227af26c95835a6b4bb6af9f4ea1a932470f76de..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabScrollable/ArkUITabScrollable002.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabScrollable0012 { - @State scrollable: boolean = true; - build() { - Column({ space: 5 }) { - - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')) - } - .vertical(false).scrollable(this.scrollable).barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .id('ArkUITabScrollable002_001') - .width('100%') - .backgroundColor(0xF1F3F5); - - Button('设置').width('50%').margin({ top: 20 }) - .onClick(() => { - this.scrollable = !this.scrollable; - }).id('ArkUITabScrollable002_002'); - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor001.ets deleted file mode 100644 index bb8627a2dce1480130aa67c08cdc253782708e37..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor001.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor001 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: Color.Black }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor004.ets deleted file mode 100644 index 33230a59147f3975f24f3603ec1f7893e5317662..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor004.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor004 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: Color.Gray }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: Color.Gray }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor008.ets deleted file mode 100644 index b7e659d37151d474a06f026c894bc423acaa36b7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor008.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor008 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: Color.Red }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: Color.Red }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor013.ets deleted file mode 100644 index 81885689f95d87e504dceb85a967758d6a0d6c68..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor013.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor013 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: 0xa52a2a }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: 0xa52a2a }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor014.ets deleted file mode 100644 index 526dc72ce4d26c23f54977415ac60f0f1039cacc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor014.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor014 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: 0x808080 }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: 0x808080 }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor022.ets deleted file mode 100644 index 8bdbf643db4447f2c2867e7ddf9a8b6562035c1a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor022.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor022 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: "#ff000000" }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: "#ff000000" }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor024.ets deleted file mode 100644 index d53645f86da7899cb5041b1107a4fab5a70a04f3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor024.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor024 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: "rgba(255,100,255,0.5)" }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: "rgba(255,100,255,0.5)" }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor025.ets deleted file mode 100644 index 2e01b109a06668fd66fb3b426888f84df5bfb992..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor025.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor025 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: $r("sys.color.titlebar_title_tertiary_color") }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: $r("sys.color.titlebar_title_tertiary_color") }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor026.ets deleted file mode 100644 index 245d756fd9edf1296183ec92b2ce7b17f6426116..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor026.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor026 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: $r("sys.color.toast_outer_border_color") }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: $r("sys.color.toast_outer_border_color") }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor027.ets deleted file mode 100644 index 25d18afa27537b2d0b0e30491962a6dc9fe898f9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor027.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor027 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: 0xFFFFFFFFFFFFFFFF }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: 0xFFFFFFFFFFFFFFFF }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor028.ets deleted file mode 100644 index 35ba4cc2be89f3501c69d426b10f46731770e0b3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor028.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor028 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: undefined }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: undefined }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor029.ets deleted file mode 100644 index 894d8261d83f94e60be7984185f1277d3be45726..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor029.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleSelectedColor029 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: null }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ selectedColor: null }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor002.ets deleted file mode 100644 index 2a4d2db019bc0d3d93b465cefa8e098c91dd3ca5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor002.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor002 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: Color.Brown }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: Color.Brown }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor005.ets deleted file mode 100644 index 308ecaacc1f21bd33660512c798f8ffb1f4d6ca7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor005.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor005 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: Color.Orange }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: Color.Orange }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor014.ets deleted file mode 100644 index 4ecbc71ea63d93239376fa9c974d1166c45c2bea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor014.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor014 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: 0x008000 }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: 0x008000 }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor016.ets deleted file mode 100644 index 65a40b9871fa0f47bef4c783db92752631238ba5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor016.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor016 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: 0xffc0cb }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: 0xffc0cb }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor021.ets deleted file mode 100644 index 2284a438a92220937581b822af538eeff0839891..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor021.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor021 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: "#ff000000" }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: "#ff000000" }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor022.ets deleted file mode 100644 index f988abd067cb87f6da9fecb698428247cf4aff67..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor022.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor022 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: "rgb(255,100,255)" }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: "rgb(255,100,255)" }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor024.ets deleted file mode 100644 index cd5e60d077f3aeb46a91369c5d9e0085cdcf4a34..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor024.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor024 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: $r("sys.color.toast_outer_border_color") }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: $r("sys.color.toast_outer_border_color") }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor026.ets deleted file mode 100644 index 5f3c4e3e136fd82a5fefef1487e6f3fed11a57d9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor026.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor026 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: 0xFFFFFFFFFFFFFFFF }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: 0xFFFFFFFFFFFFFFFF }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor027.ets deleted file mode 100644 index a334b5c50862bdb667eada21d6054e33dfb525d0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor027.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor027 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: undefined }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: undefined }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor028.ets deleted file mode 100644 index 9fd1583cd146e63b08e79e15e8c146cb67eb0bc0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor028.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor028 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: null }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: null }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor029.ets deleted file mode 100644 index c147e8ad505fc52d4204096c343b4b4b814d1eb6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor029.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsIconStyleUnselectedColor029 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ unselectedColor: Color.Black }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .iconStyle({ unselectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor001.ets deleted file mode 100644 index 1613875cecad8683e273e64299f04911230b9722..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor001.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor001 { - @State labelSelectedColor: number = Color.Black; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == Color.Black) { - this.labelSelectedColor = Color.Green; - } - else - { - this.labelSelectedColor = Color.Black; - } - }).id('ArkUITabsLabelStyleSelectedColor001_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor003.ets deleted file mode 100644 index 3ef507ac66923b2cc463f92088f5d6a565277fe4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor003.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor003 { - @State labelSelectedColor: number = Color.Brown; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == Color.Brown) { - this.labelSelectedColor = Color.Green; - } - else - { - this.labelSelectedColor = Color.Brown; - } - }).id('ArkUITabsLabelStyleSelectedColor003_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor005.ets deleted file mode 100644 index 9b749e4d54a19f29810bb45707b5f17ed3ea9dd1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor005.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor005 { - @State labelSelectedColor: number = Color.Green; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == Color.Green) { - this.labelSelectedColor = Color.Yellow; - } - else - { - this.labelSelectedColor = Color.Green; - } - }).id('ArkUITabsLabelStyleSelectedColor005_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor007.ets deleted file mode 100644 index 14e22b1c6a709eb5cdf4528dc1c2b77602f72399..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor007.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor007 { - @State labelSelectedColor: number = Color.Pink; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == Color.Pink) { - this.labelSelectedColor = Color.Yellow; - } - else - { - this.labelSelectedColor = Color.Pink; - } - }).id('ArkUITabsLabelStyleSelectedColor007_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor009.ets deleted file mode 100644 index 6739639bab6b0fb57e70d83663e61c235fd5f91e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor009.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor009 { - @State labelSelectedColor: number = Color.White; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == Color.White) { - this.labelSelectedColor = Color.Yellow; - } - else - { - this.labelSelectedColor = Color.White; - } - }).id('ArkUITabsLabelStyleSelectedColor009_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor011.ets deleted file mode 100644 index 54e8c1345996f3ff3a72a72d4091940f06e9315e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor011.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor011 { - @State labelSelectedColor: number = Color.Transparent; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == Color.Transparent) { - this.labelSelectedColor = Color.Yellow; - } - else - { - this.labelSelectedColor = Color.Transparent; - } - }).id('ArkUITabsLabelStyleSelectedColor011_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor012.ets deleted file mode 100644 index e39e813c4fed2f64f7bcf8c06545c3771f1f8e01..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor012.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor012 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor = 0x000000; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor012_001') - .onClick(() => { - this.selectedColor = 0xffffff; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor013.ets deleted file mode 100644 index 929d7feef0bbe548da86be553c034dfbef70ffe9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor013.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor013 { - @State labelSelectedColor: number = 0x00FF00; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == 0x00FF00) { - this.labelSelectedColor = 0xa52a2a; - } - else - { - this.labelSelectedColor = 0x00FF00; - } - }).id('ArkUITabsLabelStyleSelectedColor013_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor015.ets deleted file mode 100644 index 5acdd9e4200d953ad69cc87fb7e524849db679f9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor015.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor015 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor = 0x008000; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor015_001') - .onClick(() => { - this.selectedColor = Color.Black; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor017.ets deleted file mode 100644 index 3abc891632575a58f7456de37dca83b8cb19ca36..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor017.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor017 { - @State labelSelectedColor: number = 0x00FF00; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == 0x00FF00) { - this.labelSelectedColor = 0xffc0cb; - } - else - { - this.labelSelectedColor = 0x00FF00; - } - }).id('ArkUITabsLabelStyleSelectedColor017_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor019.ets deleted file mode 100644 index 48f91e0810a544e7cc759ccfe37c754b32452caa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor019.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor019 { - @State labelSelectedColor: number = 0x00FF00; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == 0x00FF00) { - this.labelSelectedColor = 0xffffff; - } - else - { - this.labelSelectedColor = 0x00FF00; - } - }).id('ArkUITabsLabelStyleSelectedColor019_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor021.ets deleted file mode 100644 index e627174e33ce0242a451b1e8ef8e1d545b7543bb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor021.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor021 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor = '#ffffff'; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor021_001') - .onClick(() => { - this.selectedColor = Color.Black; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor023.ets deleted file mode 100644 index eb707990bb88d38adfe8b6dbfebbe3c4ac3fde5a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor023.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor023 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor = "rgb(255,100,255)"; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor023_001') - .onClick(() => { - this.selectedColor = Color.Black; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor024.ets deleted file mode 100644 index 39b3424104e8b5a1be0dbb70c301931d34ed4061..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor024.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor024 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor = "rgba(255,100,255,0.5)"; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor024_001') - .onClick(() => { - this.selectedColor = Color.Black; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor025.ets deleted file mode 100644 index 7fb514c010eff71e5d92dce7f846e47c3c76de0f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor025.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor025 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor = '#ff0000ff'; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor025_001') - .onClick(() => { - this.selectedColor = Color.Black; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor026.ets deleted file mode 100644 index f73061a7eb2772b59a967afeecab893a1380cc7a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor026.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor026 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor = $r('sys.color.titlebar_title_tertiary_color'); - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor026_001') - .onClick(() => { - this.selectedColor = Color.Black; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor027.ets deleted file mode 100644 index 38310e87969e61309f5489c1bd11ef3cb7375f7a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor027.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor027 { - @State labelSelectedColor: number = 0x0000FF; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == 0x0000FF) { - this.labelSelectedColor = 0xFFFFFFFFFFFFFFFF; - } - else - { - this.labelSelectedColor = 0x0000FF; - } - }).id('ArkUITabsLabelStyleSelectedColor027_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor028.ets deleted file mode 100644 index 34b2ea5db5b616cc0dcc590e4727ae240d31cb38..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor028.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleSelectedcolor028 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State selectedColor: ResourceColor | undefined = undefined; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('selectedColor') - .id('ArkUITabsLabelstyleSelectedcolor028_001') - .onClick(() => { - this.selectedColor = 0xfffffffffffffff; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ selectedColor: this.selectedColor }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor029.ets deleted file mode 100644 index 156a1898f7be046b2e3a0b7386e4be3c70f5b6d6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor029.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleSelectedColor029 { - @State labelSelectedColor: string = '#00FF00'; - build() { - Column({ space: 5 }) { - Button('selectedColor设置').width('50%') - .onClick(() => { - if(this.labelSelectedColor == '#00FF00') { - this.labelSelectedColor = 'null'; - } - else - { - this.labelSelectedColor = '#00FF00'; - } - }).id('ArkUITabsLabelStyleSelectedColor029_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: this.labelSelectedColor })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor001.ets deleted file mode 100644 index 65ea22a683e9b86a6981228216dec0f503047eaa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor001.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor001 { - @State labelUnselectedColor: number = Color.Blue; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == Color.Blue) { - this.labelUnselectedColor = Color.Red; - } - else - { - this.labelUnselectedColor = Color.Blue; - } - }).id('ArkUITabsLabelStyleUnselectedColor001_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor005.ets deleted file mode 100644 index 0869713503b40c26d459555c00e3460716b131f3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor005.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor005 { - @State labelUnselectedColor: number = Color.Orange; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == Color.Orange) { - this.labelUnselectedColor = Color.Red; - } - else - { - this.labelUnselectedColor = Color.Orange; - } - }).id('ArkUITabsLabelStyleUnselectedColor005_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor008.ets deleted file mode 100644 index 190e975d33b19c4edd02219bde199dbb30a8332a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor008.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor008 { - @State labelUnselectedColor: number = Color.White; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == Color.White) { - this.labelUnselectedColor = Color.Red; - } - else - { - this.labelUnselectedColor = Color.White; - } - }).id('ArkUITabsLabelStyleUnselectedColor008_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Yellow })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor011.ets deleted file mode 100644 index 030351cac742add88a0d44ce51e3c28651ac67c4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor011.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor011 { - @State labelUnselectedColor: number = 0x000000; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == 0x000000) { - this.labelUnselectedColor = 0xFF0000; - } - else - { - this.labelUnselectedColor = 0x000000; - } - }).id('ArkUITabsLabelStyleUnselectedColor011_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor012.ets deleted file mode 100644 index f7616de76b4419456e8c41383d96ce65f3236fca..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor012.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor012 { - @State labelUnselectedColor: number = 0xa52a2a; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == 0xa52a2a) { - this.labelUnselectedColor = 0xFF0000; - } - else - { - this.labelUnselectedColor = 0xa52a2a; - } - }).id('ArkUITabsLabelStyleUnselectedColor012_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor017.ets deleted file mode 100644 index fae35e541b7cd8e1b6fc9df8e305e7b4dbfb63e5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor017.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor017 { - @State labelUnselectedColor: number = 0xFF0000; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == 0xFF0000) { - this.labelUnselectedColor = 0x00FF00; - } - else - { - this.labelUnselectedColor = 0xFF0000; - } - }).id('ArkUITabsLabelStyleUnselectedColor017_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor021.ets deleted file mode 100644 index 846a07903dc9de6799aee48df6ce915ec7b98226..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor021.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor021 { - @State labelUnselectedColor: string = '#ff000000'; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == '#ff000000') { - this.labelUnselectedColor = '#FF0000'; - } - else - { - this.labelUnselectedColor = '#ff000000'; - } - }).id('ArkUITabsLabelStyleUnselectedColor021_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor022.ets deleted file mode 100644 index 356eb5b358b8a44a58fe7d3865b5eb35bcfa0c4a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor022.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor022 { - @State labelUnselectedColor: string = 'rgb(255,100,255)'; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == 'rgb(255,100,255)') { - this.labelUnselectedColor = 'rgb(255,0,0)'; - } - else - { - this.labelUnselectedColor = 'rgb(255,100,255)'; - } - }).id('ArkUITabsLabelStyleUnselectedColor022_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor024.ets deleted file mode 100644 index 964205e6c98681a3a2594ac710b6fa30250ee4ba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor024.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleUnselectedcolor024 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State unselectedColor: ResourceColor = "#ff0000ff"; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('unselectedColor') - .id('ArkUITabsLabelstyleUnselectedcolor024_001') - .onClick(() => { - this.unselectedColor = Color.Red; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: this.unselectedColor }) - ) - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Blue) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Blue') - .labelStyle({ unselectedColor: this.unselectedColor }) - ) - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor025.ets deleted file mode 100644 index 977511856933e148dc18fb69c5778fbb26d7f421..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor025.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor025 { - @State resourceColorPink: Resource = $r('app.color.Pink'); - @State resourceColorRed: Resource = $r('app.color.colorRed'); - @State labelUnselectedColor: Resource = $r('app.color.Pink'); - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == this.resourceColorPink) { - console.info("this.labelUnselectedColor is pink") - this.labelUnselectedColor = this.resourceColorRed; - } - else - { - console.info("this.labelUnselectedColor is red") - this.labelUnselectedColor = this.resourceColorPink; - } - }).id('ArkUITabsLabelStyleUnselectedColor025_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor026.ets deleted file mode 100644 index fd5eaa7e4727e92927a53f9cfdece5eedc0d225c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor026.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor026 { - @State labelUnselectedColor: number = 0xFFFFFFFFFFFFFFFF; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == 0xFFFFFFFFFFFFFFFF) { - this.labelUnselectedColor = 0xFF0000; - } - else - { - this.labelUnselectedColor = 0xFFFFFFFFFFFFFFFF; - } - }).id('ArkUITabsLabelStyleUnselectedColor026_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor027.ets deleted file mode 100644 index 11efb2e4f68967d90e67ab1ede8acce2e269c7a2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor027.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor027 { - @State labelUnselectedColor: string = 'undefined'; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == 'undefined') { - this.labelUnselectedColor = '#FF0000'; - } - else - { - this.labelUnselectedColor = 'undefined'; - } - }).id('ArkUITabsLabelStyleUnselectedColor027_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor028.ets deleted file mode 100644 index 26deca367ec3abdce7ce9a5cbe43a1bfebcecbfb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor028.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStyleUnselectedColor028 { - @State labelUnselectedColor: string = 'null'; - build() { - Column({ space: 5 }) { - Button('unselectedColor设置').width('50%') - .onClick(() => { - if(this.labelUnselectedColor == 'null') { - this.labelUnselectedColor = '#FF0000'; - } - else - { - this.labelUnselectedColor = 'null'; - } - }).id('ArkUITabsLabelStyleUnselectedColor028_001'); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: this.labelUnselectedColor, selectedColor: Color.Blue })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200); - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont001.ets deleted file mode 100644 index 52c7ba630bdc7788330ef365f907a777d3317187..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont001.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont001 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State fontSize: Length = '20px'; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('fontSize') - .id('ArkUITabsLabelstyleFont001_001') - .onClick(() => { - this.fontSize = '10px'; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ font: { size: this.fontSize } }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont003.ets deleted file mode 100644 index 099915a8757ae0ad7bb2a8e2a88fe504b46f200b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont003.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont003 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State fontSize: Length = '50%'; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('fontSize') - .id('ArkUITabsLabelstyleFont003_001') - .onClick(() => { - this.fontSize = '100%'; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ font: { size: this.fontSize } }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont004.ets deleted file mode 100644 index a6905b53286393295cc558c7f871f7ef141748f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont004.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont004 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State fontSize: Length = 10; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('fontSize') - .id('ArkUITabsLabelstyleFont004_001') - .onClick(() => { - this.fontSize = 30; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ font: { size: this.fontSize } }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont005.ets deleted file mode 100644 index 83d3010d46e178f6e5d773fec623f08d29699c65..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont005.ets +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont005 { - @State message: string = 'Hello World'; - @State labelFontSize: number = 20; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - Button('fontsize设置').width('50%') - .onClick(() => { - if (this.labelFontSize == 20) { - this.labelFontSize = 0; - } - else { - this.labelFontSize = 20; - } - }).id('ArkUITabsLabelStylefont005_001'); - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { size: this.labelFontSize } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { size: this.labelFontSize } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { size: this.labelFontSize } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { size: this.labelFontSize } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont006.ets deleted file mode 100644 index 9db3b0af02d8ee2673837b8316a704fdca516641..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont006.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont006 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({font: {size: -1}}) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont007.ets deleted file mode 100644 index a8b2010de3f33e506bd4439fb0a861db80d31e4a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont007.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont007 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = FontWeight.Lighter; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont008.ets deleted file mode 100644 index 3ac31dc7ba8311ef44d75597fed98375969d8ee2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont008.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont008 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = FontWeight.Normal; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont009.ets deleted file mode 100644 index 1a2ac75fc0cc44466320b5f55dff0227894dbf2c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont009.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont009 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = FontWeight.Regular; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont010.ets deleted file mode 100644 index aab1b4a317cd4c3de235819400cd6e961b0b9de3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont010.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont010 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = FontWeight.Medium; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont011.ets deleted file mode 100644 index 60e17336dd1ba18319e33e3ad6fc52c89c160e3e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont011.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont011 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = FontWeight.Bold; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont012.ets deleted file mode 100644 index 0cc227dbbf1199678bf51d9a117dc503c94a8329..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont012.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont012 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State fontWeight: FontWeight | number | string = FontWeight.Bolder; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('fontSize') - .id('ArkUITabsLabelstyleFont012_001') - .onClick(() => { - this.fontWeight = FontWeight.Lighter; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ font: { weight: this.fontWeight } }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont013.ets deleted file mode 100644 index 895e7769bf0d98544063cb88f3e10f137f8ec8e2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont013.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont013 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State fontWeight: FontWeight | number | string = 200; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('fontSize') - .id('ArkUITabsLabelstyleFont013_001') - .onClick(() => { - this.fontWeight = 800; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ font: { weight: this.fontWeight } }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont015.ets deleted file mode 100644 index e06a6ea5e397765e70a29865c8b62ef813d6df8f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont015.ets +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont015 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = 900; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - Button('fontsize设置').width('50%') - .onClick(() => { - if (this.labelFontWeight == 900) { - this.labelFontWeight = 0; - } - else { - this.labelFontWeight = 900; - } - }).id('ArkUITabsLabelStylefont015_001'); - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont016.ets deleted file mode 100644 index 4a7345677ccc1340cb57986e605d81db5dc32c08..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont016.ets +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont016 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = 900; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - Button('fontsize设置').width('50%') - .onClick(() => { - if (this.labelFontWeight == 900) { - this.labelFontWeight = -1; - } - else { - this.labelFontWeight = 900; - } - }).id('ArkUITabsLabelStylefont016_001'); - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont017.ets deleted file mode 100644 index e6824cd17f99d3cba300c32618ab4a87d9a4c481..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont017.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont017 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State fontStyle: FontStyle = FontStyle.Normal; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('fontSize') - .id('ArkUITabsLabelstyleFont017_001') - .onClick(() => { - this.fontStyle = FontStyle.Italic; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ font: { style: this.fontStyle } }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont018.ets deleted file mode 100644 index 2b602d44bbd04002505f706ae81be20aa7295eb4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont018.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont018 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State fontStyle: FontStyle = FontStyle.Italic; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('fontSize') - .id('ArkUITabsLabelstyleFont018_001') - .onClick(() => { - this.fontStyle = FontStyle.Normal; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ font: { style: this.fontStyle } }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont019.ets deleted file mode 100644 index 2b8069b3591b266ef79b3c7cffdeb592663e2ef6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont019.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelstyleFont019 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({font: undefined}) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont020.ets deleted file mode 100644 index 1d8da7d24fc3d7d5beb73e60a212573602856d75..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont020.ets +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsLabelStylefont020 { - @State message: string = 'Hello World'; - @State labelFontWeight: number = 1000; - private controller: TabsController = new TabsController() - @State subTabOverflowOpaque: boolean = true; - - build() { - Column() { - Button('字体改变').width('50%') - .onClick(() => { - if (this.labelFontWeight == 1000) { - this.labelFontWeight = 900; - } - else { - this.labelFontWeight = 1000; - } - }).id('ArkUITabsLabelStylefont020_001'); - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('tabcontent1').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab1') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent2').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab2') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent3').fontSize(30).fontColor(0xFF000000) - }.width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('tab3') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - - TabContent() { - Column() { - Text('tabcontent4').fontSize(30).fontColor(0xFF000000) - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('tab4') - .labelStyle({ - overflow: TextOverflow.Ellipsis, - maxLines: 1, - minFontSize: 10, - heightAdaptivePolicy: TextHeightAdaptivePolicy.MAX_LINES_FIRST, - font: { weight: this.labelFontWeight } - })); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barHeight(200) - .barWidth(720) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('100%') - .width('100%'); - - } - .height('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor002.ets deleted file mode 100644 index 355101f513b88d95722448faa4527fa908036a02..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor002.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsSingleSelectedcolor002 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: Color.White }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor005.ets deleted file mode 100644 index f3a4758fb974b0b014c8be942e43e6ac83c2f39b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor005.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsSingleSelectedcolor005 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: Color.Green }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor008.ets deleted file mode 100644 index 79c717ec19c850fea4f1e934b6aa104e5bbb24bb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor008.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsSingleSelectedcolor008 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: 0xffffff }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor011.ets deleted file mode 100644 index 45353e1e50a3db2e08b5d7571d6e13af6545c637..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor011.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsSingleSelectedcolor011 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: "rgb(255,100,255)" }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleUnselectedcolor/ArkUITabsSingleUnselectedcolor003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleUnselectedcolor/ArkUITabsSingleUnselectedcolor003.ets deleted file mode 100644 index a0dcbb665844f9be501fa1157dc7c5ce9ea50b17..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsSingleUnselectedcolor/ArkUITabsSingleUnselectedcolor003.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsSingleUnselectedcolor003 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .iconStyle({ selectedColor: Color.Transparent }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsVertical/ArkUITabsVertical001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsVertical/ArkUITabsVertical001.ets deleted file mode 100644 index 094e80c7c9993379ebd817364002af569976109b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ArkUITabsVertical/ArkUITabsVertical001.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct ArkUITabsVertical001 { - @State vertical: boolean = false; - build() { - Column({ space: 5 }) { - - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')) - } - .vertical(this.vertical).scrollable(true).barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - Button('设置').width('50%').margin({ top: 20 }) - .onClick(() => { - this.vertical = !this.vertical; - }).id('ArkUITabsVertical001_001') - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0010.ets deleted file mode 100644 index 53edced03b4dc96e32c1d1a8c3a1e2e664f21f83..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0010.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0010 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0010_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier0010()) - .id("ComponentButtonSelectMenuItemContentModifier0010_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier0010 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder0010); - } -} - -@Builder -function MyMenuItemBuilder0010(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0010_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0011.ets deleted file mode 100644 index 0366f64313337b9f2e6e620122e9ffe476d8a207..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0011.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0011 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('开发demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0011_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier011()) - .id("ComponentButtonSelectMenuItemContentModifier0011_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - options.push({ value: `item${i}`, icon : $r("app.media.cat")}); - } - return options; - } -} - -class MyMenuItemContentModifier011 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder011); - } -} - -@Builder -function MyMenuItemBuilder011(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0011_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0012.ets deleted file mode 100644 index 5adea556de29a422c4236cf18c428a99fbbe4052..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0012.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0012 { - @State indexNum: number | undefined | null = -1 - @State option: Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('开发demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0012_001") - Select([{ - value: '1', - }, { - value: 'undefined', - }, { - value: 'null', - }]) - .value('切换index') - .id('ComponentButtonSelectMenuItemContentModifier0012_002') - .menuItemContentModifier(new MyMenuItemContentModifier012()) - .selected(0) - .onSelect((index:number, text?: string | undefined)=>{ - if(text){ - this.indexNum = text === 'undefined' ? undefined : (text === 'null' ? null : 1) - } - }) - Select(this.option) - .selected(this.indexNum) - .menuItemContentModifier(new MyMenuItemContentModifier012()) - .id("ComponentButtonSelectMenuItemContentModifier0012_003") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier012 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder012); - } -} - -@Builder -function MyMenuItemBuilder012(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0012_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0013.ets deleted file mode 100644 index 7d51716b3289f22f8515bf6c5ac9e277da14a597..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0013.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0013 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('开发demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0013_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier013()) - .id("ComponentButtonSelectMenuItemContentModifier0013_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier013 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder013); - } -} - -@Builder -function MyMenuItemBuilder013(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0013_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0014.ets deleted file mode 100644 index 93666e1eb52ec3306a4a6350e62e14ec8f75f041..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0014.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0014 { - @State option: Array = [{value: 'aaa'}, {value: 'bbb'}] - @State contentModifier: ContentModifier | null = new MyMenuItemContentModifier014(); - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0014_001") - Select([{ - value: 'null', - }, { - value: 'normal', - }]) - .value('normal切换null') - .id('ComponentButtonSelectMenuItemContentModifier0014_002') - .menuItemContentModifier(new MyMenuItemContentModifier014()) - .selected(0) - .onSelect((index:number, text?: string | undefined)=>{ - if(text){ - this.contentModifier = text === 'null' ? null : new MyMenuItemContentModifier014() - } - }) - Select(this.option) - .selected(1) - .menuItemContentModifier(this.contentModifier) - .id("ComponentButtonSelectMenuItemContentModifier0014_003") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier014 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder014); - } -} - -@Builder -function MyMenuItemBuilder014(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Red : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0014_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0015.ets deleted file mode 100644 index 51f42ab556e9690b6775ec81792e1c4c938fc82e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0015.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0015 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0015_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier015()) - .id("ComponentButtonSelectMenuItemContentModifier0015_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier015 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder015); - } -} - -@Builder -function MyMenuItemBuilder015(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0015_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0016.ets deleted file mode 100644 index d7b5b5728f9d3841795c46da3be5b7dc1201e3b8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0016.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0016 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0016_001") - Select(this.option) - .selected(1) - .selectedOptionFontColor(Color.Red) - .selectedOptionBgColor(Color.Yellow) - .menuItemContentModifier(new MyMenuItemContentModifier016()) - .id("ComponentButtonSelectMenuItemContentModifier0016_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier016 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder016); - } -} - -@Builder -function MyMenuItemBuilder016(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0016_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0017.ets deleted file mode 100644 index cd277e1727a8e854bd97537a32ebd1ef6a7b9a51..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0017.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0017 { - @State widthNum: Dimension | OptionWidthMode = '100vp' - build() { - Row() { - Column() { - Button('最小宽度10vp') - .onClick(() => { - this.widthNum = '10vp' - }) - .id("ComponentButtonSelectMenuItemContentModifier0017_001") - Select(this.getOptions()) - .optionWidth(this.widthNum) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier017()) - .id("ComponentButtonSelectMenuItemContentModifier0017_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier017 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder017); - } -} - -@Builder -function MyMenuItemBuilder017(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0017_${configuration.value}`) - } - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0018.ets deleted file mode 100644 index daa5ec4d8b87d8c21876ce03c9c00a64cdc09b16..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0018.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0018 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0018_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier018()) - .id("ComponentButtonSelectMenuItemContentModifier0018_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier018 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder018); - } -} - -@Builder -function MyMenuItemBuilder018(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0018_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0020.ets deleted file mode 100644 index e4429cee9f8209fbf715b4de548386b7e0c06d33..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0020.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0020 { - @State option: Array = [{value: 'aaa'}, {value: 'bbb'}] - @State contentModifier: ContentModifier | undefined = new MyMenuItemContentModifier020(); - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0020_001") - Select([{ - value: 'undefined', - }, { - value: 'normal', - }]) - .value('normal切换undefined') - .id('ComponentButtonSelectMenuItemContentModifier0020_002') - .menuItemContentModifier(new MyMenuItemContentModifier020()) - .selected(0) - .onSelect((index:number, text?: string | undefined)=>{ - if (text) { - this.contentModifier = text === 'undefined' ? undefined : new MyMenuItemContentModifier020() - } - }) - Select(this.option) - .selected(1) - .menuItemContentModifier(this.contentModifier) - .id("ComponentButtonSelectMenuItemContentModifier0020_003") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier020 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder020); - } -} - -@Builder -function MyMenuItemBuilder020(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Red : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0020_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0022.ets deleted file mode 100644 index 9eeaaa02b1ee382cbeab1bb9964b366d6d95e481..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0022.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0022 { - @State indexNum: number | undefined | null = -1 - @State option: Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('开发demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0022_001") - Select([{ - value: '1', - }, { - value: 'undefined', - }, { - value: 'null', - }]) - .value('切换index') - .id('ComponentButtonSelectMenuItemContentModifier0022_002') - .menuItemContentModifier(new MyMenuItemContentModifier022()) - .selected(0) - .onSelect((index:number, text?: string | undefined)=>{ - if(text){ - this.indexNum = text === 'undefined' ? undefined : (text === 'null' ? null : 1) - } - }) - Select(this.option) - .selected(this.indexNum) - .menuItemContentModifier(new MyMenuItemContentModifier022()) - .id("ComponentButtonSelectMenuItemContentModifier0022_003") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier022 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder022); - } -} - -@Builder -function MyMenuItemBuilder022(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0022_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0023.ets deleted file mode 100644 index 997f754a7cb741dbd189fc912d609b23e9d9c6ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0023.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0023 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0023_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier023()) - .id("ComponentButtonSelectMenuItemContentModifier0023_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier023 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder023); - } -} - -@Builder -function MyMenuItemBuilder023(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0023_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0024.ets deleted file mode 100644 index 59095a3173343d7755c9434aef2c9a7dae31fbfa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0024.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0024 { - @State option: Array = [{value: 'aaa'}, {value: 'bbb'}] - @State contentModifier: ContentModifier = new MyMenuItemContentModifier024(); - @State contentModifierNull: ContentModifier = new MyMenuItemContentModifierNull(); - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0024_001") - Select([{ - value: 'builder_Null', - }, { - value: 'normal', - }]) - .value('normal切换builder_Null') - .id('ComponentButtonSelectMenuItemContentModifier0024_002') - .menuItemContentModifier(new MyMenuItemContentModifier024()) - .selected(0) - .onSelect((index:number, text?: string | undefined)=>{ - if(text){ - this.contentModifier = text === 'builder_Null' ? this.contentModifierNull : this.contentModifier - } - }) - Select(this.option) - .selected(1) - .menuItemContentModifier(this.contentModifier) - .id("ComponentButtonSelectMenuItemContentModifier0024_003") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier024 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder024); - } -} - -@Builder -function MyMenuItemBuilder024(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0024_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()) - }) -} - -class MyMenuItemContentModifierNull implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilderNull); - } -} - -@Builder -function MyMenuItemBuilderNull(configuration: MenuItemConfiguration) { - -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0025.ets deleted file mode 100644 index 34dca30daed59bab38aeab8fad8c7d2ac082e04a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0025.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0025 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0025_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier025()) - .id("ComponentButtonSelectMenuItemContentModifier0025_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - options.push({ value: `item${i}`, icon: $r("app.media.bird_people") }); - } - return options; - } -} - -class MyMenuItemContentModifier025 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder025); - } -} - -@Builder -function MyMenuItemBuilder025(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0025_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0026.ets deleted file mode 100644 index dd63c7c14507fc5d2cf42bc8b241f4744245df86..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0026.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0026 { - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0026_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier026()) - .id("ComponentButtonSelectMenuItemContentModifier0026_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - options.push({ value: `item${i}`, icon : $r("app.media.fly")}); - } - return options; - } -} - -class MyMenuItemContentModifier026 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder026); - } -} - -@Builder -function MyMenuItemBuilder026(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0026_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0027.ets deleted file mode 100644 index a88281b3673d20bbc91b33dda4a86cdec5be3d6b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0027.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0027 { - @State symbolModifier: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')) - @State option:Array = [{value: 'aaa'}, {value: 'bbb'}] - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0027_001") - Select(this.option) - .selected(1) - .menuItemContentModifier(new MyMenuItemContentModifier027()) - .id("ComponentButtonSelectMenuItemContentModifier0027_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value , icon: $r("app.media.fly"), symbolIcon: this.symbolModifier }); - } - return options; - } -} - -class MyMenuItemContentModifier027 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder027); - } -} - -@Builder -function MyMenuItemBuilder027(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - SymbolGlyph().attributeModifier(configuration.symbolIcon).fontSize(40) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0027_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0028.ets deleted file mode 100644 index 317c4ee64cdf9176085a9fba40744ad8660fa3ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0028.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentButtonSelectMenuItemContentModifier0028 { - @State option: Array = [{value: 'aaa'}, {value: 'bbb'}] - @State contentModifier: ContentModifier | undefined = new MyMenuItemContentModifier028(); - build() { - Row() { - Column() { - Button('补充demo') - .onClick(() => { - this.option = this.getOptions() - }) - .id("ComponentButtonSelectMenuItemContentModifier0028_001") - Select([{ - value: 'undefined', - }, { - value: 'normal', - }]) - .value('normal切换undefined') - .id('ComponentButtonSelectMenuItemContentModifier0028_002') - .menuItemContentModifier(new MyMenuItemContentModifier028()) - .selected(0) - .onSelect((index:number, text?: string | undefined)=>{ - if(text){ - this.contentModifier = text === 'undefined' ? undefined : new MyMenuItemContentModifier028() - } - }) - Select(this.option) - .selected(1) - .menuItemContentModifier(this.contentModifier) - .id("ComponentButtonSelectMenuItemContentModifier0028_003") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} - -class MyMenuItemContentModifier028 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder028); - } -} - -@Builder -function MyMenuItemBuilder028(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`ComponentButtonSelectMenuItemContentModifier0028_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()) - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface0178.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface0178.ets deleted file mode 100644 index dee8bb532dfd1061578016bd96acb8cc78de13e9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface0178.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentFunctionLAdvancedComponentsPopupInterface0178 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - width: '100%', - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('ComponentSpecialComponentsFormComponentTransparent0178') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('100%') - .height('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface01780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface01780.ets deleted file mode 100644 index d4172a161a67c800c6f0065ea47a13eb0f58a925..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface01780.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentFunctionLAdvancedComponentsPopupInterface01780 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('ComponentFunctionLAdvancedComponentsPopupInterface01781') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '100%', - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0010.ets deleted file mode 100644 index f42dd076efe1e661abd8bc21633297a1e7bb5059..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0010.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = [TextDataDetectorType.PHONE_NUMBER,TextDataDetectorType.URL,TextDataDetectorType.EMAIL,TextDataDetectorType.ADDRESS]; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0010') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0020.ets deleted file mode 100644 index e1c728b21a6cd586b65e19a022789f7f2aafc82c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0020.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = true; - @State types: TextDataDetectorType[] = [TextDataDetectorType.PHONE_NUMBER,TextDataDetectorType.URL,TextDataDetectorType.EMAIL,TextDataDetectorType.ADDRESS]; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = false; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0020') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0030.ets deleted file mode 100644 index 3871b6eff45163abd863223a563885a197429050..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0030.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0030 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = [TextDataDetectorType.PHONE_NUMBER,TextDataDetectorType.URL,TextDataDetectorType.EMAIL,TextDataDetectorType.ADDRESS]; - - build() { - Row() { - Column() { - Button('open') - .id('open') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - Button('close') - .id('close') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = false; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0030') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0040.ets deleted file mode 100644 index 365f7448ba1b961f81b898d1fa1610d93a150672..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0040.ets +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0040 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - Button('url') - .id('url') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.URL]; - }) - Button('tel') - .id('tel') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.PHONE_NUMBER]; - }) - Button('addr') - .id('addr') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.ADDRESS]; - }) - Button('email') - .id('email') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.EMAIL]; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0040') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0050.ets deleted file mode 100644 index 2c0ace4e481b09c1b1344e8d8c1160669ddc2596..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0050.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0050 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - Button('url') - .id('url') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.URL,TextDataDetectorType.PHONE_NUMBER]; - }) - Button('email') - .id('email') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.EMAIL,TextDataDetectorType.URL,TextDataDetectorType.PHONE_NUMBER]; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0050') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0060.ets deleted file mode 100644 index 6aaac03675ab6b697e00dd5254e06c6bf4573a63..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0060.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0060 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - Button('url') - .id('url') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.URL,TextDataDetectorType.PHONE_NUMBER,TextDataDetectorType.EMAIL,TextDataDetectorType.ADDRESS]; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0060') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0070.ets deleted file mode 100644 index a4d00a316b330c0a3f9d40f25c0a04e2366cb6eb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0070.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0070 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = false; - }) - Button('url') - .id('url') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.URL,TextDataDetectorType.PHONE_NUMBER,TextDataDetectorType.EMAIL,TextDataDetectorType.ADDRESS]; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0070') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0080.ets deleted file mode 100644 index a46e26d043fb5d550013e271165d684cbe40284d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0080.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0080 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('url') - .id('url') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.URL,TextDataDetectorType.PHONE_NUMBER,TextDataDetectorType.EMAIL,TextDataDetectorType.ADDRESS]; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0080') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0090.ets deleted file mode 100644 index 3fefa20769c957070d324cfc98ca2f315e4f4fa5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0090.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI0090 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State url: string = 'www.baidu.com'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('url') - .id('url') - .width(100) - .height(50) - .onClick(() => { - this.types =[TextDataDetectorType.URL,TextDataDetectorType.PHONE_NUMBER,TextDataDetectorType.EMAIL,TextDataDetectorType.ADDRESS]; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - - }) - .id('ComponentTextRicheditorAI0090') - .enableDataDetector(this.enableDataDetector) - .dataDetectorConfig({types : this.types, onDetectResultUpdate: (result: string)=>{}}) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0100.ets deleted file mode 100644 index e154a0d205ec0ab855e95c69fa1d5b39d9c3acb8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0100.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00100 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('setStyle') - .id('setStyle') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - decoration: { type: TextDecorationType.Overline } - } - }); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0100') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0110.ets deleted file mode 100644 index a16d0d6810bf52f0fd9702865eb24bb457c61d44..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0110.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00110 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('setStyle') - .id('setStyle') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - decoration: { type: TextDecorationType.LineThrough } - } - }); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0110') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0120.ets deleted file mode 100644 index 5c5a35c728da257de59569377dae06970de2b749..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0120.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00120 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('setStyle') - .id('setStyle') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - decoration: { type: TextDecorationType.Underline } - } - }); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0120') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0130.ets deleted file mode 100644 index 519159993f52c8d81f6e4801b8c97e3099b2f6e6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0130.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00130 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('setStyle') - .id('setStyle') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - fontColor: Color.Red, - } - }); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30, - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30, - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30, - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30, - } - }); - }) - .id('ComponentTextRicheditorAI0130') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0140.ets deleted file mode 100644 index 26e1a0e42c47cbf8722f126d2b5995517c8335fa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0140.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00140 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('setStyle') - .id('setStyle') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - fontSize:30 - } - }); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - }); - this.controller.addTextSpan('地址:' + this.address, - { - }); - }) - .id('ComponentTextRicheditorAI0140') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0150.ets deleted file mode 100644 index da9bf3e6f1811d6d9cf63f43881e61cc9ff4f538..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0150.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00150 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('setStyle') - .id('setStyle') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - fontStyle:FontStyle.Italic - } - }); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - }); - this.controller.addTextSpan('地址:' + this.address, - { - }); - }) - .id('ComponentTextRicheditorAI0150') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0160.ets deleted file mode 100644 index de1cefb0c826ee9553befedf8bc37d69debab9c5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0160.ets +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00160 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('setStyle') - .id('setStyle') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - fontWeight:FontWeight.Lighter - } - }); - }) - Button('setStyle1') - .id('setStyle1') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - fontWeight:FontWeight.Normal - } - }); - }) - Button('setStyle2') - .id('setStyle2') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: - { - fontWeight:FontWeight.Bolder - } - }); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0160') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0170.ets deleted file mode 100644 index 9587365668f118fb97a843b549d3dca8e9af015e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0170.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00170 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - Button('close') - .id('close') - .width(100) - .height(50) - .onClick(() => { - this.controller.stopEditing(); - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0170') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0180.ets deleted file mode 100644 index a5d1d7263bf16ca3622243615d5a166ca94f673b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0180.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00180 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - Button('close') - .id('close') - .width(100) - .height(50) - .onClick(() => { - this.controller.stopEditing(); - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0180') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0190.ets deleted file mode 100644 index 1449b384e713d1b9e734ef3d318324cbc0f39f4c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0190.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00190 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('insert') - .id('insert') - .width(100) - .height(50) - .onClick(() => { - this.controller.addTextSpan('insert URL:' + this.url + '\n', - { - }); - this.controller.addTextSpan('insert 电话号码:' + this.phoneNumber + '\n', - { - }); - this.controller.addTextSpan('insert 邮箱:' + this.email + '\n', - { - }); - this.controller.addTextSpan('insert 地址:' + this.address, - { - }); - this.controller.stopEditing(); - }) - - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0190') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0200.ets deleted file mode 100644 index 9a396bf1ed72c0fc95e5dcfe0cbb22cf8cc8baeb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0200.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00200 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('insert') - .id('insert') - .width(100) - .height(50) - .onClick(() => { - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }) - this.controller.stopEditing(); - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0200') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0210.ets deleted file mode 100644 index 8b34e2bd3594e46e0305eb6d3793b2811471e754..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0210.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00210 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - @State widthRich : number = 300; - @State heightRich : number = 800; - - build() { - Row() { - Column() { - Button('setWidth') - .id('setWidth') - .width(100) - .height(50) - .onClick(() => { - this.widthRich = 100; - this.heightRich = 500; - }) - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0210') - .enableDataDetector(this.enableDataDetector) - .width(this.widthRich) - .height(this.heightRich) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0220.ets deleted file mode 100644 index c4d07b9f1fd1af03d5badfef8254e17936d587e4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0220.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00220 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0220') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0230.ets deleted file mode 100644 index 70c0b80803fe015976c661bced846be141279d1a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0230.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00230 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0230') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0240.ets deleted file mode 100644 index 4edb12a44c668be5189542c667565882802cffc5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0240.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00240 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0240') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0250.ets deleted file mode 100644 index b3881764c1c30b5e5fed86761f9df962650cf081..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0250.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00250 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0250') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0260.ets deleted file mode 100644 index 37a445ff7bdc126c4b27ff9888744a2f165455cd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0260.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00260 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0260') - .enableDataDetector(this.enableDataDetector) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0270.ets deleted file mode 100644 index 4c0ce696824b95cac966810ed399125446f4dc8f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0270.ets +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorAI00270 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State phoneNumber: string = '029-49781104'; - @State url: string = 'www.baidu.com'; - @State email: string = '***@example.com'; - @State address: string = 'XX省XX市XX区XXXX'; - @State enableDataDetector: boolean = false; - @State types: TextDataDetectorType[] = []; - @State copyState: CopyOptions = CopyOptions.InApp; - - build() { - Row() { - Column() { - Button('AI') - .id('AI') - .width(100) - .height(50) - .onClick(() => { - this.enableDataDetector = true; - }) - Button('copy') - .id('copy') - .width(100) - .height(50) - .onClick(() => { - this.copyState = CopyOptions.None; - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('URL:' + this.url + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('电话号码:' + this.phoneNumber + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('邮箱:' + this.email + '\n', - { - style: - { - fontSize: 30 - } - }); - this.controller.addTextSpan('地址:' + this.address, - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorAI0270') - .enableDataDetector(this.enableDataDetector) - .copyOptions(this.copyState) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0001.ets deleted file mode 100644 index 154fed3b05bc00aac8d0ca5955f7ec526f0a1b58..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0001.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0001') - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0002.ets deleted file mode 100644 index b58f4324b63286719bb56fd59406720fc5aacbc4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0002.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0002 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0002') - .caretColor(Color.Orange) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0003.ets deleted file mode 100644 index 1b65f6c28743d4cd6184299f4f6813b5ec3792e8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0003.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0003') - .caretColor(0x0110ff) //光标颜色 - .selectedBackgroundColor(0x0110ff) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0004.ets deleted file mode 100644 index f4ffa9c109230939e0e6e36d510c61c689780407..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0004.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0004') - .caretColor(0xffffffeeeeee) //光标颜色 - .selectedBackgroundColor(0xffffffeeeeee) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0005.ets deleted file mode 100644 index bf263c8ae17944dca7fbab5cc5bb9ba277afa24d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0005.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0005') - .caretColor(10000) //光标颜色 - .selectedBackgroundColor(10000) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0006.ets deleted file mode 100644 index f119d322d39ffdac7b4e46029cff4e418c336e61..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0006.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0006') - .caretColor(10000.5) //光标颜色 - .selectedBackgroundColor(10000.5) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0007.ets deleted file mode 100644 index 8788608294f5c39e17b98b84baf5cf4f98ec2ccb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0007.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0007') - .caretColor(-15) //光标颜色 - .selectedBackgroundColor(-15) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0008.ets deleted file mode 100644 index 5da579b22d0247b876c8400a919112f6cc32bc92..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0008.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0008 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0008') - .caretColor("#00ffff") //光标颜色 - .selectedBackgroundColor('#00ffff') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0009.ets deleted file mode 100644 index 4e5d74660011e486d6a86a0a5c65857d27a5efdf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0009.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0009 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0009') - .caretColor('#ffffff00') //光标颜色 - .selectedBackgroundColor('#ffffff00') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0010.ets deleted file mode 100644 index 5894ff30fc009ca54620370f979af6b935952889..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0010.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0010') - .caretColor(' rgb(255,0,255)') //光标颜色 - .selectedBackgroundColor(' rgb(255,0,255)') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0011.ets deleted file mode 100644 index 2f1402bda752896a59962f7871bd7f857ccb12ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0011.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0011 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0011') - .caretColor(" rgba(0,0,255,0.5)") //光标颜色 - .selectedBackgroundColor(" rgba(0,0,255,0.5)") //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0012.ets deleted file mode 100644 index ee4d5ae064a3877e8939fd87542a13281bf76f7b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0012.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0012 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0012') - .caretColor('#0ccccoo') //光标颜色 - .selectedBackgroundColor('#0ccccoo') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0013.ets deleted file mode 100644 index b80a685713bfb00cf66e3b26a9a76a9822674755..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0013.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0013 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0013') - .caretColor(' rgba(255,0,255,2)') //光标颜色 - .selectedBackgroundColor(' rgba(255,0,255,2)') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0014.ets deleted file mode 100644 index 4ffda5924cc29dd654873cd1cc129a4a87a212c6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0014.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0014 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0014') - .caretColor(' rgb(255,0,300)') //光标颜色 - .selectedBackgroundColor(' rgb(255,0,300)') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0015.ets deleted file mode 100644 index 0b036394399ddc0a7ff0af0266a7b0e6b270a383..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0015.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0015 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0015') - .caretColor('#abcdefə') //光标颜色 - .selectedBackgroundColor('#abcdefə') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0016.ets deleted file mode 100644 index 9a39a4fa6d62c795be753d7acb44434ce3e6b804..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0016.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0016 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0016') - .caretColor(getContext().resourceManager.getColorSync($r("app.color.yellow"))) //光标颜色 - .selectedBackgroundColor(getContext().resourceManager.getColorSync($r("app.color.yellow"))) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0017.ets deleted file mode 100644 index 66ba2ee434fcd274fda1973a284e0f11c24c9ebc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0017.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0017 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorCustomColor0017') - .caretColor('cat.jpg') //光标颜色 - .selectedBackgroundColor( 'cat.jpg') //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0018.ets deleted file mode 100644 index d37f315648a0cbf4977ddfe3745222fe20234aef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0018.ets +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0018 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あなたのことが好きです사랑해jhsfdhhhhhjhjhh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - - }); - - this.controller.addTextSpan('\uD83D\uDE00', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - - }); - this.controller.addTextSpan('#$%&@', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - - }); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - {}); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }) - }) - .id('ComponentTextRicheditorCustomColor0018') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0019.ets deleted file mode 100644 index d86af071a84b8b97809ae96c142b02f411b76f45..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0019.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0019 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あなたのことが好きです사랑해jhsfdhhhhhjhjhh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - - }) - }) - .id('ComponentTextRicheditorCustomColor0019') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0020.ets deleted file mode 100644 index e3edb95f75bb8a7aca39694c1ed91ca40c992724..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0020.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - - }) - }) - .id('ComponentTextRicheditorCustomColor0020') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - this.controller.updateSpanStyle({ start:-1,end:-1, - textStyle: { - fontSize:30 - } - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0021.ets deleted file mode 100644 index b6aa93f1eed007892513cfd9d997c7f44e0bda09..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0021.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0021 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .id('ComponentTextRicheditorCustomColor0021') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - this.controller.updateSpanStyle({ start:-1,end:-1, - textStyle: { - lineHeight: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/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0022.ets deleted file mode 100644 index 6409ddce7822d4b8298d8f25e8b1e8f3cfd1660e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0022.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0022 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .id('ComponentTextRicheditorCustomColor0022') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - this.controller.updateSpanStyle({ start:-1,end:-1, - textStyle: { - lineHeight:50, - letterSpacing: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/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0023.ets deleted file mode 100644 index 6a0f8803e35e28d1300aaca258f799306b6c1a3b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0023.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0023 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .id('ComponentTextRicheditorCustomColor0023') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - this.controller.updateSpanStyle({ start:-1,end:-1, - textStyle: { - - } - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0025.ets deleted file mode 100644 index 455ef11ce8792e42cf687b34ea420fc578089ad5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0025.ets +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0025 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - setOrientation() { - try { - window.getLastWindow(getContext(this), (err, data) => { // 获取window实例 - if (err.code) { - return; - } - let windowClass = data; - - let orientation = window.Orientation.LANDSCAPE; // 设置窗口方向为传感器自动旋转模式。 - try { - windowClass.setPreferredOrientation(orientation, (err) => { - if (err.code) { - return; - } - }); - } catch (exception) { - } - ; - }); - } catch (exception) { - } - ; - } - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .id('ComponentTextRicheditorCustomColor0025') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - this.setOrientation(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0026.ets deleted file mode 100644 index 4f691481d7bab89def1aa6dba96e3a884a445894..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0026.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0026 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .id('ComponentTextRicheditorCustomColor0026') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0028.ets deleted file mode 100644 index b430022c59d5402842014bc5e6dd35be163c2f18..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0028.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomColor0028 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .id('ComponentTextRicheditorCustomColor0028') - .caretColor(Color.Red) //光标颜色 - .selectedBackgroundColor(Color.Red) //选中背景色 - - Button('', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('set select') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection( -1,-1); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0001.ets deleted file mode 100644 index 11704217c70eae11f9f9d63a15781dc6dfc911d7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0001.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .height(40) - .width(100) - .customKeyboard(this.CustomKeyboardBuilder()) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0001') - } - .width('100%') - .height('100%') - .margin({ top: 700 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0002.ets deleted file mode 100644 index 6a96ebbe8571636441f5ebe7a4eb063ad91c429a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0002.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0002{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .height(40) - .width(100) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: false }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0002') - } - .width('100%') - .height('100%') - .margin({ top: 700 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0003.ets deleted file mode 100644 index a157310fca7db2066bc9c7ef147d55cbfeb973bc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0003.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(0); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0003') - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0004.ets deleted file mode 100644 index 6ff195999ebeaa91beb618ec46306d26d2ba97c1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0004.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(1); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0004') - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0005.ets deleted file mode 100644 index a11cfb511b93d72cb471cf9dcc67fe4cbae481bc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0005.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(0); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0005') - } - .width(100) - .height(100) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0006.ets deleted file mode 100644 index 8849414dc670f58ac4c068fcfbd329925742c207..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0006.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(0); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0006') - } - .width('50%') - .height('50%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0007.ets deleted file mode 100644 index 7a6418e4c63c8159aa9e36f404c7197c518a0820..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0007.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(1); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0007') - } - .width(100) - .height(1000) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0008.ets deleted file mode 100644 index cc4b46176ceb36e4e92c682bbdf1ff60c4e6e557..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0008.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0008 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(1); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0008') - } - .width('50%') - .height('80%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0009.ets deleted file mode 100644 index dceb7f3bbab2e1e4ccb8e392ba292454495f6b3e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0009.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0009 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder()) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0009') - } - .width(100) - .height(100) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0010.ets deleted file mode 100644 index bed6f67cf03dee0259b897621a2f39a681806164..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0010.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - Row(); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(0); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0010'); - Row(); - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0011.ets deleted file mode 100644 index 2967ec3fed8c7d3499ddfcce3cfd36a47ac5b208..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0011.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0011 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - Row(); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(1); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0011'); - Row(); - } - .width('50%') - .height('80%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0012.ets deleted file mode 100644 index 1ffb7f94382c8becd78aa0e9127ca646537d6ce4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0012.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0012 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - Row(); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(0); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0012'); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(0); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0012_01'); - Row(); - } - .width('50%') - .height('80%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0013.ets deleted file mode 100644 index 0225c8faac48ad9c723e010de69463bb9f225fa9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0013.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0013 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - Row(); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(1); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0013'); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(1); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0013_01'); - Row(); - } - .width('50%') - .height('80%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0016.ets deleted file mode 100644 index 4c99ee1854cf0490f00fa4c94b6f4a10762f6b02..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0016.ets +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0016 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - setOrientation() { - try { - window.getLastWindow(getContext(this), (err, data) => { // 获取window实例 - if (err.code) { - return; - } - let windowClass = data; - - let orientation = window.Orientation.LANDSCAPE; // 设置窗口方向为传感器自动旋转模式。 - try { - windowClass.setPreferredOrientation(orientation, (err) => { - if (err.code) { - return; - } - }); - } catch (exception) { - } - ; - }); - } catch (exception) { - } - ; - } - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - Button('changeScreen') - .id('changeScreen') - .width(100) - .height(50) - .onClick(()=>{ - this.setOrientation(); - }); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(0); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0016'); - } - .width('50%') - .height('80%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0017.ets deleted file mode 100644 index b88564c46b7cd71380af9e45d191b929100d0c4b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0017.ets +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0017 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - setOrientation() { - try { - window.getLastWindow(getContext(this), (err, data) => { // 获取window实例 - if (err.code) { - return; - } - let windowClass = data; - - let orientation = window.Orientation.LANDSCAPE; // 设置窗口方向为传感器自动旋转模式。 - try { - windowClass.setPreferredOrientation(orientation, (err) => { - if (err.code) { - return; - } - }); - } catch (exception) { - } - ; - }); - } catch (exception) { - } - ; - } - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - Button('changeScreen') - .id('changeScreen') - .width(100) - .height(50) - .onClick(()=>{ - this.setOrientation(); - }); - RichEditor(this.options) - .onReady(() => { - this.getUIContext().setKeyboardAvoidMode(1); - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0017'); - } - .width('50%') - .height('80%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0019.ets deleted file mode 100644 index 6e32b6d376b1d40502f841e480e72e6fb23dec34..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0019.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorCustomkeyBoardAvoidAnce0019 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State heightCustom : number = 200; - // 自定义键盘组件 - @Builder - CustomKeyboardBuilder() { - Column() { - Grid() { - ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { - GridItem() { - Button(item + "") - .width(110).onClick(() => { - this.controller.addTextSpan(item + '', { - offset: this.controller.getCaretOffset(), - style: - { - fontColor: Color.Orange, - fontSize: 30 - } - }); - this.controller.setCaretOffset(this.controller.getCaretOffset() + item.toString().length); - }) - } - }) - }.maxCount(3).columnsGap(10).rowsGap(10).padding(5).height(this.heightCustom) - }.backgroundColor(Color.Gray) - } - - build() { - Column() { - Button('changeScreen') - .id('changeScreen') - .width(100) - .height(50) - .onClick(()=>{ - this.heightCustom = 400; - }); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }); - }) - .customKeyboard(this.CustomKeyboardBuilder(),{ supportAvoidance: true }) - .border({ width: 1 }) - .id('ComponentTextRicheditorCustomkeyBoardAvoidAnce0019'); - } - .width('50%') - .height('80%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0001.ets deleted file mode 100644 index 13e3915becb27fa509cfd240fbb057d81e9d12a1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0001.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .key('ComponentTextRicheditorFontfeature0001') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0002.ets deleted file mode 100644 index 0b98f6087fd1d0cdd15560b257a3d467423ca992..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0002.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0002 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + '123456789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0003.ets deleted file mode 100644 index 299909bbb6df5304fdaf663349d9daed2c27cecc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0003.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + '0000' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" 0" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0003') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0004.ets deleted file mode 100644 index 20f6feb8fb7b116e265aa99f9a6005c4b63c26ec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0004.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + '0000' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" 1" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0004') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0005.ets deleted file mode 100644 index 0d6df9a618e0998b061652237347330c21223148..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0005.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + '123456789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" off" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0005') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0006.ets deleted file mode 100644 index db4ee88af9e54e2e8eae4848c4e6053b74c56cbd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0006.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is subs on :' + '123456' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"subs\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0006') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0007.ets deleted file mode 100644 index 6ba1c233fd70a1ce0adfcf113669814e93a3564b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0007.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sinf on :' + '123' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"sinf\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0007') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0008.ets deleted file mode 100644 index bf8832241d0b8f7e9167898608a282b333eff618..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0008.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0008 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is numr on :' + '456' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"numr\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0008') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0009.ets deleted file mode 100644 index 52f8018fb483197d60701c9a6abf374d17c84edb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0009.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0009 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is dnom on :' + '789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"dnom\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0009') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0010.ets deleted file mode 100644 index 865acdede2bbf74bd5072863fffd7584005adb35..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0010.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is locl on :' + '147' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"locl\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0010') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0011.ets deleted file mode 100644 index 7ae3237490a56836ea59740757de17e8b85a23eb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0011.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0011 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is tnum on :' + '0123456789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"tnum\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0011') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0012.ets deleted file mode 100644 index 3d7d21f3a5d8a90e77d3f71b27ad175af2a9a08d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0012.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0012 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is pnum on :' + '0123456789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"pnum\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0012') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0013.ets deleted file mode 100644 index f6916b7ffa00f5579f55a3ee11ced82ff30be648..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0013.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0013 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is case on :' + '¿¡HO-HO—HO!?' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"case\" on" - } - }) - - }) - .key('ComponentTextRicheditorFontfeature0013') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0014.ets deleted file mode 100644 index 5e92cb940ea046a0bfaf2e90a3dbb3b5f05c708f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0014.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0014 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is frac on :' + '1/2 2/3 1/45' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"frac\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0014') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0015.ets deleted file mode 100644 index fb382c2dd1d5bef9e7c8469ad4d0f8d883f693e2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0015.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0015 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ordn on :' + 'No.1 1a 1o' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ordn\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0015') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0016.ets deleted file mode 100644 index a40eefd9d23fef6e39bb86a7cd7c876729af57b9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0016.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0016 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is liga on :' + 'ff fl fi ffi ffl' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"liga\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0016') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0017.ets deleted file mode 100644 index db7aa9e11f26f6786c392a8ad168621586a2f07f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0017.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0017 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is liga on :' + '123456789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"fwid\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0017') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0018.ets deleted file mode 100644 index 601e5f0ce85a0a8b83c8a77d066b3991ddc639fe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0018.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0018 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is liga on :' + '123456789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"hwid\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0018') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0019.ets deleted file mode 100644 index c02caa1a49205ce073101ea4b804e636dc071c05..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0019.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0019 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is liga on :' + '【】' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"vert\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0019') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0020.ets deleted file mode 100644 index a8b247dc03716ecce5438d0455de06fc772837d7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0020.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is liga on :' + '0123456789,:/八-""C°F%%。' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss01\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0020') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0021.ets deleted file mode 100644 index 9ce8de4b17b56bdc1ef13d3beb179e515a2c9ae3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0021.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0021 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss02 on :' + '0123456789,:/八-""C°F%%。' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss02\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0021') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0022.ets deleted file mode 100644 index 5d4a8abc2835f3a56920d21a4996f29db63f967e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0022.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0022 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss03 on :' + '0123456789+-><' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss03\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0022') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0023.ets deleted file mode 100644 index 4ebea0618c2ff16f465e5e2ed2be5c6b6165e3c5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0023.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0023 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss04 on :' + '0123456789l' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss04\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0023') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0024.ets deleted file mode 100644 index f155c7dbf03f0281534584d540cd65e25eda6f70..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0024.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0024 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss05 on :' + '€¥+-x÷1234' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss05\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0024') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0025.ets deleted file mode 100644 index 857d10b75b0e712b3ebc7d61fe23d8cd70ff01df..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0025.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0025 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss06 on :' + '0123456789,。?!、123' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss06\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0025') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0026.ets deleted file mode 100644 index fb6f468f955b7be2359999a4762e10903728ef64..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0026.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0026 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss07 on :' + 'HarmonyOS 001' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss07\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0026') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0027.ets deleted file mode 100644 index b5c3a97e530bb783ed758496a85fe1b0b82a815c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0027.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0027 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss08 on :' + ',。!、;?:123' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss08\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0027') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0028.ets deleted file mode 100644 index 6d70d96dcad31520ae7232ce9da29d17ba1276f1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0028.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0028 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is ss09 on :' + '4567890中国' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss09\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0028') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0029.ets deleted file mode 100644 index 996295e8a125878d59020b55d964b9e467936535..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0029.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0029 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is (ss09,ss04) on :' + 'l0123456789l'+'\n', - { - style: - { - fontSize: 30, - fontFeature: '\"ss09\",\"ss04\" on' - } - }) - }) - .key('ComponentTextRicheditorFontfeature0029') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0030.ets deleted file mode 100644 index d62e5aaeb71ab73af5ac87c359f1c1d9badda300..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0030.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0030 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is null on :' + '0123456789,。?!、123' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"null\"" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0030') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0031.ets deleted file mode 100644 index c6e6bbd477db265d5a99ec48307bb85c5fcc2621..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0031.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0031 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is bad features :' + '0123l' + '\n', - { - style: - { - fontSize: 30, - fontFeature: '\"abcdefgg&*\" on,\"ss04\" 12354hfnfn3' - } - }) - }) - .key('ComponentTextRicheditorFontfeature0031') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0032.ets deleted file mode 100644 index fcf11b3da8cec05eb2bfe55d5c12766a51204101..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0032.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0032 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is on an off features :' + '0123l' + '\n', - { - style: - { - fontSize: 30, - fontFeature: '\"ss04\" on,\"ss04\" off' - } - }) - }) - .key('ComponentTextRicheditorFontfeature0032') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0033.ets deleted file mode 100644 index 08557e03a89098cde2b4de22462a6ea946f084b6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0033.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0033 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + 'shell脚本' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss04\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0033') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0034.ets deleted file mode 100644 index 1c41768414c6b1c2ee38befd6928ef4d68f3d745..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0034.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0034 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + 'shell脚本' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss04\" on" - } - }) - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - { - style: - { - fontSize: 30, - } - }) - }) - .key('ComponentTextRicheditorFontfeature0034') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0035.ets deleted file mode 100644 index a48cfc6b6dc4053a832e28cae6e6f68cf8adda7e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0035.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0035 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + 'shell脚本' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss04\" on" - } - }) - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }) - }) - .key('ComponentTextRicheditorFontfeature0035') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0036.ets deleted file mode 100644 index 737f5b00348981ec79b98af4d9d2eba9b13afe7a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0036.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0036 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('\uD83D\uDE00', - { - style: - { - fontSize: 30, - } - }) - this.controller.updateSpanStyle({ - textStyle: { - fontFeature: "\"ss04\" on" - } - }) - }) - .key('ComponentTextRicheditorFontfeature0036') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0037.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0037.ets deleted file mode 100644 index 987fb85df5e77d92f56fdc40172bd1c97c5c354e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0037.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0037 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell123', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" on" - } - }) - }) - .id('ComponentTextRicheditorFontfeature003701') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - RichEditor(this.options1) - .onReady(() => { - this.controller1.addTextSpan('1', - { - style: - { - fontSize: 30, - fontFeature: "\"ss04\" on" - } - }) - }) - .id('ComponentTextRicheditorFontfeature003702') - .width('100%') - .height(100) - .backgroundColor(0xD2B48C) - - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0038.ets deleted file mode 100644 index e1eb9f4a3dfd108f957e7e2f477180ab5d05e96d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0038.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0038 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell123', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" on" - } - }) - }) - .id('ComponentTextRicheditorFontfeature003801') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - RichEditor(this.options1) - .onReady(() => { - this.controller1.addTextSpan('1', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" on" - } - }) - }) - .id('ComponentTextRicheditorFontfeature003802') - .width('100%') - .height(100) - .backgroundColor(0xD2B48C) - - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0039.ets deleted file mode 100644 index 0d99b5797e6c89c557317281569917ed98a45037..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0039.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0039 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - TextArea({text:"中国人ll1"}).draggable(true).width(100).height(50).id('TextArea').fontFeature("\"sups\" on"); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あadfll', - { - style: - { - fontFeature: "\"ss04\" on" - } - }) - }) - .id('ComponentTextRicheditorFontfeature0039') - .draggable(true) - .width(200) - .height(50) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0040.ets deleted file mode 100644 index 542d624777577bf3915cfa5af3e0c5c02f53c607..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0040.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0040 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - TextArea({text:"中国人ll1"}).draggable(true).width(100).height(50).id('TextArea').fontFeature("\"ss04\" on"); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あadfll', - { - style: - { - fontFeature: "\"ss04\" on" - } - }) - }) - .id('ComponentTextRicheditorFontfeature0040') - .draggable(true) - .width(200) - .height(50) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0041.ets deleted file mode 100644 index f87111f4db8a76e2fc2def771325eaa32bd62aa2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0041.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0041 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('This is sups on :' + '123456789' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" on" - } - }); - this.controller.addTextSpan('This is ss04 on :' + 'Shell' + '\n', - { - style: - { - fontSize: 30, - fontFeature: "\"ss04\" on" - } - }); - }) - .key('ComponentTextRicheditorFontfeature41') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0042.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0042.ets deleted file mode 100644 index 77f61bf16e5f33add89401343a20e89c53fe195b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0042.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0042 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell123', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" 1" - } - }) - }) - .onIMEInputComplete((value: RichEditorTextSpanResult)=>{ - console.info("textSpan fontFeature:" + value.textStyle.fontFeature) - }) - .id('ComponentTextRicheditorFontfeature0042') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0043.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0043.ets deleted file mode 100644 index e391580dd04e4a5e7b2c33a660092cca38ad6afd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0043.ets +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0043 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell123', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" 1" - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .aboutToDelete((value: RichEditorDeleteValue) => { - value.richEditorDeleteSpans.forEach(item => { - if (typeof(item as RichEditorImageSpanResult)['imageStyle'] != 'undefined') { - console.log("fontFeature del:" + (item as RichEditorImageSpanResult).valueResourceStr); - } else { - console.log("fontFeature del:" + (item as RichEditorTextSpanResult).textStyle.fontFeature); - } - }) - return true; - }) - .id('ComponentTextRicheditorFontfeature0043') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0044.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0044.ets deleted file mode 100644 index 1ceb489ad264d24251aeb2294e1b312025e035e9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0044.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0044 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell123', - { - style: - { - fontSize: 30, - } - }); - this.controller.setTypingStyle( - { - fontWeight: 'medium', - fontColor: Color.Blue, - fontSize: 50, - fontStyle: FontStyle.Italic, - fontFeature: "\"ss04\" 1" - }); - console.info("getTypingStyle===="+ this.controller.getTypingStyle().fontFeature); - }) - .id('ComponentTextRicheditorFontfeature0044') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0045.ets deleted file mode 100644 index abe21c232c8cb7648e6501a6b4e2ac1cf1bfb699..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0045.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0045 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" 1" - } - }) - }) - .id('ComponentTextRicheditorFontfeature0045') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - Button('setSelection(0,4)', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id("select") - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection(0, 4); - this.controller.updateSpanStyle({ - start: 0, - end: 4, - textStyle: { - fontFeature: "\"ss04\" 1" - } - }); - }) - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0046.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0046.ets deleted file mode 100644 index 32500c5cf7524a0dfdd2a1967a33af70dddc6f3e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0046.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0046 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - fontSize: 30, - fontFeature: "\"sups\" 1" - } - }) - }) - .id('ComponentTextRicheditorFontfeature0046') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - Button('getspans', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id("getspans") - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.getSpans({ - start: -1, - end: -1 - }).forEach(item =>{ - console.info("getspans msg ==="+(item as RichEditorTextSpanResult).textStyle.fontFeature); - }); - }) - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0047.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0047.ets deleted file mode 100644 index 446c51f36b987bec533e46d725075a4f4b4c8ac9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0047.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0047 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - fontSize: 30, - fontFeature: '\"sups\",\"ss04\" 1' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0047') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - Button('getselection', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id("getselection") - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.setSelection(-1,-1); - let selection = this.controller.getSelection(); - let spans = selection.spans; - spans.forEach((item: RichEditorTextSpanResult | RichEditorImageSpanResult, index) => { - console.info("fontfeature====" + (item as RichEditorTextSpanResult).textStyle.fontFeature); - }); - }) - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0048.ets deleted file mode 100644 index a74182dd31dd4a44a4c84ececbc0303fda6c2548..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0048.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0048 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('1010', - { - style: - { - fontSize: 30, - fontFeature: '\"sups\", 1' - } - }); - this.controller.addTextSpan('shell100', - { - style: - { - fontSize: 30, - fontFeature: '\"ss04\", 1' - } - }); - }) - .id('ComponentTextRicheditorFontfeature0048') - .height(100) - .backgroundColor(0xF5DEB3) - .width('100%') - .onSelect((value: RichEditorSelection) => { - this.controller.addTextSpan('选中内容属性'+value, - { - - }); - console.info("onSelect========"+JSON.stringify(value)); - }) - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - this.controller.setSelection(1, 2); - }) - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0049.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0049.ets deleted file mode 100644 index ef3250402eb8b29b688e780c17ecc3d0fda93a81..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0049.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0049 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - fontColor: Color.Orange, - fontFeature: '\"sups\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0049') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0050.ets deleted file mode 100644 index 62bc06d18a91c48f88b880074bb9ea464e21f408..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0050.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0050 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - fontStyle: FontStyle.Italic, - fontFeature: '\"subs\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0050') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0051.ets deleted file mode 100644 index cd3db960b4546d0fd6516d21a8bd7e56abc1a263..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0051.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0051 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - fontWeight: FontWeight.Bolder, - fontFeature: '\"numr\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0051') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0052.ets deleted file mode 100644 index ac05a4102b990f5ba7e4f318e8b3d02921541fc0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0052.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0052 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - fontFamily: 'HarmonyOS sans', - fontFeature: '\"ss04\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0052') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0053.ets deleted file mode 100644 index 867441242042f749f8763d57e0102e66f8e0682c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0053.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0053 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - decoration: { type: TextDecorationType.Underline, color: Color.Black }, - fontFeature: '\"fwid\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0053') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0054.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0054.ets deleted file mode 100644 index e709bee5d73275a62799b0c9dd329f419c08cb87..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0054.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0054 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - textShadow: { radius: 10, color: Color.Blue, offsetX: 10, offsetY: 0 }, - fontFeature: '\"ss08\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0054') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0055.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0055.ets deleted file mode 100644 index d2aaf7a341e142034b4c3bfffa4914d535714e5e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0055.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0055 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('shell10', - { - style: - { - lineHeight: 50, - fontFeature: '\"hwid\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0055') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0056.ets deleted file mode 100644 index 2f52f090c0a51ee4378375d6c0f9a525021b06ea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0056.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0056 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('【】 123', - { - style: - { - letterSpacing: 20, - fontFeature: '\"vert\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0056') - .height(100) - .width('100%') - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0057.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0057.ets deleted file mode 100644 index 87ac8fa0163f88d54fdd4ea1a1fe2bc8dd8c5028..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0057.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0057 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State heightRichEditor: number = 100; - @State widthRichEditor: number = 200; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('【】 123', - { - style: - { - letterSpacing: 20, - fontFeature: '\"vert\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0057') - .height(this.heightRichEditor) - .width(this.widthRichEditor) - .backgroundColor(Color.Pink) - Button('justFeature', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('justFeature') - .height(30) - .fontSize(13) - .onClick(() => { - this.heightRichEditor = 200; - this.widthRichEditor = 300; - }) - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0058.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0058.ets deleted file mode 100644 index 22dc5f49c5d0a88ff105e2495f281c440bcb90ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0058.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0058 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State paddingRichEditor: number = 1; - @State marginRichEditor: number = 2; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('【】 123', - { - style: - { - letterSpacing: 20, - fontFeature: '\"vert\" on' - } - }) - }) - .id('ComponentTextRicheditorFontfeature0058') - .height(100) - .width('100%') - .padding(this.paddingRichEditor) - .margin(this.marginRichEditor) - .backgroundColor(Color.Pink) - Button('justFeature', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('justFeature') - .height(30) - .fontSize(13) - .onClick(() => { - this.paddingRichEditor = 10; - this.marginRichEditor = 20; - }) - } - .borderWidth(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/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0059.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0059.ets deleted file mode 100644 index bfa8b450cf05382222cd9cf8a4137666000c7097..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0059.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorFontfeature0059 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State paddingRichEditor: number = 1; - @State marginRichEditor: number = 2; - - build() { - Flex({ direction: FlexDirection.Column }) { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('【】 123', - { - style: - { - letterSpacing: 20, - fontFeature: '\"vert\" on' - }, - paragraphStyle: { - textAlign: TextAlign.Start, - leadingMargin: 5 - } - }) - }) - .id('ComponentTextRicheditorFontfeature0059') - .height(100) - .width('100%') - .padding(this.paddingRichEditor) - .margin(this.marginRichEditor) - .backgroundColor(Color.Pink) - Button('justFeature', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('justFeature') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.updateParagraphStyle({ start: -1, end: -1, - style: { - textAlign: TextAlign.End, - leadingMargin:20 - } - }); - }) - } - .borderWidth(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/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0340.ets deleted file mode 100644 index c8f8affff57d8dc93bfff5bd388bb55388760066..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0340.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import LeadingMarginCreator from '../../../test/model/LeadingMaginCreator'; - -@Entry -@Component -struct ComponentTextRicheditorInterface0340 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - private leadingMarkCreatorInstance = LeadingMarginCreator.instance; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.updateParagraphStyle({ - start: 1, - end: 10, - style: { - leadingMargin: { - pixelMap: this.leadingMarkCreatorInstance.genCircleMark(20, 30, 1), - size: [30, 40] - } - } - }); - }) - .id('ComponentTextRicheditorInterface0340') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0350.ets deleted file mode 100644 index 238e2c3a92d6bcaaa85e6f1d6acf4a8ba117b2b3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0350.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0350 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.updateParagraphStyle({ - start: 1, - end: 10, - style: { - textAlign:TextAlign.Center, - leadingMargin:200 - } - }); - }) - .id('ComponentTextRicheditorInterface0350') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0360.ets deleted file mode 100644 index 64e71c639d6918b26f22459c71cf35ece989c8c7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0360.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import LeadingMarginCreator from '../../../test/model/LeadingMaginCreator'; - -@Entry -@Component -struct ComponentTextRicheditorInterface0360 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - private leadingMarkCreatorInstance = LeadingMarginCreator.instance; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.updateParagraphStyle({ - start: 1, - end: 10, - style: { - textAlign:TextAlign.Center, - leadingMargin: { - pixelMap: this.leadingMarkCreatorInstance.genCircleMark(20, 30, 1), - size: [30, 40] - } - } - }); - }) - .id('ComponentTextRicheditorInterface0360') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0410.ets deleted file mode 100644 index c8f46f80241561c4898f4bd4402a1a41e19d9d50..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0410.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0410 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = Color.Pink; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0410') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0420.ets deleted file mode 100644 index 269eeb9cf2fe64cda9ada4276a6c62f5c0ccbeb6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0420.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0420 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = Color.Pink; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0420') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0430.ets deleted file mode 100644 index 6589e339a63e492ae255d8e5c9f1b600d5825d10..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0430.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0430 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = Color.Pink; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0430') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0440.ets deleted file mode 100644 index fd66198b45840a4bd367389f964cf5efbb9b0465..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0440.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0440 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = Color.Pink; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('我爱你中国' + '\n', - {}); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0440') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0450.ets deleted file mode 100644 index 41b3782a10ff6e02c3f1ed668161d171ec4bf21d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0450.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0450 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = Color.Pink; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我爱你中国', - {}); - this.controller.addTextSpan('我爱你中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0450') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0460.ets deleted file mode 100644 index 32eb7f68790e6938c2c24150cca5a558229dae3a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0460.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0460 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = 0x00ff00; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0460') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0470.ets deleted file mode 100644 index 8c618771493eea2f7d6862b2c4f4eb4af825dd47..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0470.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0470 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = 0x00ff00; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0470') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0480.ets deleted file mode 100644 index eabdac7952c3c901525347edaa364e74c5cc95fb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0480.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0480 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = 0x00ff00; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0480') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0490.ets deleted file mode 100644 index dbd5de2b0a0ce14fcadef1184d8dc53919e95b7f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0490.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0490 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = 0x00ff00; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0490') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0500.ets deleted file mode 100644 index 2ae1e7b39c527bf963f7aeb09a22dd72e88aa494..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0500.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0500 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color = 0x00ff00; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0500') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0510.ets deleted file mode 100644 index 821584d11da1cdd95dfa63d762549162f2731c9b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0510.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0510 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#000000'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0510') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0520.ets deleted file mode 100644 index f349cb296af834bf43134ffb87de85eabb6a6ffe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0520.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0520 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#000000'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0520') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0530.ets deleted file mode 100644 index 00822b6fc8ab7296224eab3fa48120f92d56bafb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0530.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0530 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#000000'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0530') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0540.ets deleted file mode 100644 index 03a59e4541469d5049c944635c3173b013099445..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0540.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0540 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#000000'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0540') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0550.ets deleted file mode 100644 index 58a8ba11a92d3829631c88eff5cc5aff62a7fbc8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0550.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0550 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#000000'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0550') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0560.ets deleted file mode 100644 index 65120f8ec2c7238afe301f8fc097b7f05f417b68..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0560.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0560 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#ff00FF00'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0560') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0570.ets deleted file mode 100644 index 15058d5e675f17a93c7438751f28f2a424b160e9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0570.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0570 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#ff00FF00'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0570') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0580.ets deleted file mode 100644 index bfd9af47ad961262abbc6659e0ad099eeb6745df..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0580.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0580 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#ff00FF00'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0580') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0590.ets deleted file mode 100644 index 4eabbbb1f9bb3aa64883475855fb25814e0a4b2e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0590.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0590 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#ff00FF00'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0590') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0600.ets deleted file mode 100644 index b41fbd84b434ca5690967fcce7e530516be5cf9a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0600.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0600 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = '#ff00FF00'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0600') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0610.ets deleted file mode 100644 index 5361f8a71ad176d2dc4b0714e8b89ad0e715e166..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0610.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0610 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = " rgba(255,0,0, 0.5)"; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0610') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0620.ets deleted file mode 100644 index 1f979a779663641719d4d2a4004d44410781a559..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0620.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0620 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = " rgba(255,0,0, 0.5)"; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0620') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0630.ets deleted file mode 100644 index 8682c49f32e80bcfef25f40be4e73c1e17892520..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0630.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0630 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = " rgba(255,0,0, 0.5)";; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0630') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0640.ets deleted file mode 100644 index fca16d4297200117626a3419bf623b6c50481e90..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0640.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0640 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = " rgba(255,0,0, 0.5)";; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0640') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0650.ets deleted file mode 100644 index 029daa2fd6c159ce7db559a3e00df441722fe67f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0650.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0650 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = " rgba(255,0,0, 0.5)";; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0650') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0660.ets deleted file mode 100644 index 875f7e14e42ca63a64b164b8353031b4792f6b39..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0660.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0660 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = getContext().resourceManager.getColorSync($r('app.color.yellow')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0660') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0670.ets deleted file mode 100644 index 68cd04ec8135d5d49de1116d681cc1532ada4d8d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0670.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0670 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = getContext().resourceManager.getColorSync($r('app.color.yellow')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0670') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0680.ets deleted file mode 100644 index 20a37f268dcebb809898899e11fd3060bdd71ef1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0680.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0680 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = getContext().resourceManager.getColorSync($r('app.color.yellow')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0680') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0690.ets deleted file mode 100644 index b4a36717f36a720550467dd64934ea45072f84a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0690.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0690 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = getContext().resourceManager.getColorSync($r('app.color.yellow')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0690') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0700.ets deleted file mode 100644 index 55cd2526ebf776431fd6e488337e47d293f3b135..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0700.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0700 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State color: Color | string = getContext().resourceManager.getColorSync($r('app.color.yellow')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - .id('ComponentTextRicheditorInterface0700') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontColor: this.color - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0710.ets deleted file mode 100644 index c636257c011f2d4a08f4c764f9234930e926c823..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0710.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0710 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number = 10; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0710') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0720.ets deleted file mode 100644 index bd97928bedb3d6bfae53e046c209935970c8a155..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0720.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0720 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number = 10; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0720') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0730.ets deleted file mode 100644 index fb0e827be4ce2775275bac38ad0721d663d34a8e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0730.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0730 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number = 10; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0730') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0740.ets deleted file mode 100644 index 01b0f182dbe5a1ad47767f4ec82e2592d0677af3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0740.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0740 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number = 10; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0740') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0750.ets deleted file mode 100644 index 0c4e5fcd2b44ca1a6a253bedc4824b81cefa2c74..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0750.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0750 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number = 10; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0750') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0760.ets deleted file mode 100644 index 3e8c6f906575ae17f6732580ba629b0d60afd968..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0760.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0760 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number | Resource | string = '10px'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0760') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0770.ets deleted file mode 100644 index b84eeebe1516367af4f59926ef6764c81263bc22..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0770.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0770 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number | Resource | string = '10px'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0770') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0780.ets deleted file mode 100644 index 39fb7fbd9f93b8f245cd7742e326c1bb0abd6195..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0780.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0780 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number | Resource | string = '10px'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0780') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0790.ets deleted file mode 100644 index 1925392433fbc9e28c7fbd9d87c5e58bdd43049c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0790.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0790 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number | Resource | string = '10px'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0790') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0800.ets deleted file mode 100644 index 527705a25814583907bbdd92680971b141cf4b50..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0800.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0800 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: number | Resource | string = '10px'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0800') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0810.ets deleted file mode 100644 index d76a3eecad53f511b125c9120f02b61344145b35..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0810.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0810 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: string = getContext().resourceManager.getStringSync($r('app.string.font_20')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0810') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0820.ets deleted file mode 100644 index 0cc63a08433a45c478208ff813ce168ec281921e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0820.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0820 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: string = getContext().resourceManager.getStringSync($r('app.string.font_20')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0820') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0830.ets deleted file mode 100644 index 58f1d79a4a9f7b95b669750bf0170e626172b868..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0830.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0830 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: string = getContext().resourceManager.getStringSync($r('app.string.font_20')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0830') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0840.ets deleted file mode 100644 index af7413f2423669355fd977b3c5d57d9b77a8d002..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0840.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0840 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: string = getContext().resourceManager.getStringSync($r('app.string.font_20')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0840') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0850.ets deleted file mode 100644 index b345912721fe9026cacaaee93fa4d2729a07cd43..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0850.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0850 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State sizeRich: string = getContext().resourceManager.getStringSync($r('app.string.font_20')); - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - .id('ComponentTextRicheditorInterface0850') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontSize: this.sizeRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0860.ets deleted file mode 100644 index 2a02b8f102691789a50cc671f8f5c3f48308d7bb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0860.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0860 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontStyleRich: FontStyle = FontStyle.Italic; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - .id('ComponentTextRicheditorInterface0860') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0870.ets deleted file mode 100644 index b7a6a3f0df35890704ed0f747a9f11a935b36389..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0870.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0870 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontStyleRich: FontStyle = FontStyle.Italic; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - .id('ComponentTextRicheditorInterface0870') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0880.ets deleted file mode 100644 index 453c3df2c7dcbfd4b9f6148b5ff538ec9f3926ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0880.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0880 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontStyleRich: FontStyle = FontStyle.Italic; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - .id('ComponentTextRicheditorInterface0880') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0890.ets deleted file mode 100644 index cba4ca422c5c107c42c8a9774471669bea605445..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0890.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0890 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontStyleRich: FontStyle = FontStyle.Italic; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - .id('ComponentTextRicheditorInterface0890') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0900.ets deleted file mode 100644 index e6d04e5882f59b6cecb76c84a736095327bf6cf4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0900.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0900 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontStyleRich: FontStyle = FontStyle.Italic; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - .id('ComponentTextRicheditorInterface0900') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontStyle: this.fontStyleRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0910.ets deleted file mode 100644 index 7ffa139e5f5b1806f8ac44a222648e8f72f8ee48..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0910.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0910 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Lighter; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0910') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0920.ets deleted file mode 100644 index 01c9f1e5ab2c106365d12f4b2e45b9ed5eb35397..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0920.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0920 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Lighter; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0920') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0930.ets deleted file mode 100644 index a1fd242be90f8f553316b163829c0b969f431852..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0930.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0930 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Lighter; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0930') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0940.ets deleted file mode 100644 index f2d796446d377aa70da376dec4f6d59923b75187..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0940.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0940 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Lighter; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0940') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0950.ets deleted file mode 100644 index 0bb94f62c39c0e7cd87365792576e774574a34ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0950.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0950 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Lighter; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0950') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0960.ets deleted file mode 100644 index 35643cf84c41e2b22abc01a39af4962c26d16bbd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0960.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0960 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = 900; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0960') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0970.ets deleted file mode 100644 index 286d57d0c47f02a77c269c43cbef2584bcda7c07..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0970.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0970 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = 900; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0970') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0980.ets deleted file mode 100644 index 4e33ea4589a6ef5555392b413d86b504830af623..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0980.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0980 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = 900; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0980') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0990.ets deleted file mode 100644 index 3dc2bcdcedbd4aa983f28456392b384804071bb5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0990.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface0990 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = 900; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface0990') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1000.ets deleted file mode 100644 index 8d531f549a9b341332db8145f2d87a43e59e866a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1000.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1000 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = 900; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface1000') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1010.ets deleted file mode 100644 index 4fa3a5ef007effe4be29b7126454c620c164ae5c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1010.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Bolder; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface1010') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1020.ets deleted file mode 100644 index 4506da57f17fe43c672c80d3d78984722ce7b333..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1020.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Bolder; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface1020') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1030.ets deleted file mode 100644 index 3dcb99027244ca512d2cf48e95692ca227c5a817..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1030.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1030 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Bolder; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface1030') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1040.ets deleted file mode 100644 index 08073852d40ccc903de68ef7cfc65d4043320909..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1040.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1040 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Bolder; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface1040') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1050.ets deleted file mode 100644 index 9ff8f2359c90923c76534bd6f2a2f7bc40d3a206..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1050.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1050 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontWweightRich: FontWeight = FontWeight.Bolder; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - .id('ComponentTextRicheditorInterface1050') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontWeight: this.fontWweightRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1060.ets deleted file mode 100644 index d0b2affca6096d3b72a5835e158bbcf47cd680ea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1060.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1060 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'HarmonyOS Sans'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1060') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1070.ets deleted file mode 100644 index 6561497648f638624f29de145f84c0272508f574..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1070.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1070 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'HarmonyOS Sans'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1070') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1080.ets deleted file mode 100644 index 1441b71fe803715bd35864ff56cdadf787f3b070..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1080.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1080 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'HarmonyOS Sans'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1080') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1090.ets deleted file mode 100644 index 62da9d1d4de9fef8d6a6a0b9726b10073c598f0b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1090.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1090 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'HarmonyOS Sans'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1090') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1100.ets deleted file mode 100644 index 5ec24aaaffa85938a3b6f91db028396562e57a01..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1100.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1100 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'HarmonyOS Sans'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1100') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily: this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1110.ets deleted file mode 100644 index 79fd7e316afa638b2c07bcf3076d5da5cedd417f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1110.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1110 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - .id('ComponentTextRicheditorInterface1110') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1120.ets deleted file mode 100644 index d74f83c699b50d54fe96ff2ec62572ebf169de3e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1120.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1120 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - .id('ComponentTextRicheditorInterface1120') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1130.ets deleted file mode 100644 index cfd12c767842c41548afc224a165c4b28a5d0aa9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1130.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1130 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - .id('ComponentTextRicheditorInterface1130') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1140.ets deleted file mode 100644 index c29e75920e46c9cef9aea12e64752f053ba0d04a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1140.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1140 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - .id('ComponentTextRicheditorInterface1140') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1150.ets deleted file mode 100644 index 0eb36248612f019cf8fee4d7a2303ac0092abaca..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1150.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1150 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - .id('ComponentTextRicheditorInterface1150') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{ color: Color.Black,type: TextDecorationType.Underline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1160.ets deleted file mode 100644 index 49acb4a092b4a0e643050a76147a577773bbe9e6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1160.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1160 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - .id('ComponentTextRicheditorInterface1160') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1170.ets deleted file mode 100644 index 4316aee8d365c10c1f825839f4902c319f30c7b9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1170.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1170 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - .id('ComponentTextRicheditorInterface1170') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1180.ets deleted file mode 100644 index 386bc41930ecf0f6aa788013b21170c263e81c4b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1180.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1180 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - .id('ComponentTextRicheditorInterface1180') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1190.ets deleted file mode 100644 index ff6c8f9e27f317c6207f4cadfa96ce3d20d77e31..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1190.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1190 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - .id('ComponentTextRicheditorInterface1190') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1200.ets deleted file mode 100644 index 2da57cb75a6ee10552d616f20779fe43c226f3f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1200.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1200 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - .id('ComponentTextRicheditorInterface1200') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 'rgb(0,0,255)',type: TextDecorationType.LineThrough} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1210.ets deleted file mode 100644 index f20d58bcb3d1429b869b7529772849cb0857c026..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1210.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1210 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1210') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1220.ets deleted file mode 100644 index 5dc3536dcc085ef573848f40bf452e30e46734de..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1220.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1220 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1220') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1230.ets deleted file mode 100644 index e597afb66687b4a0ad0cdb832564eed4b6639f61..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1230.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1230 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1230') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1240.ets deleted file mode 100644 index d250d6603b8dde8c59768a76648021e074f56803..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1240.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1240 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1240') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1250.ets deleted file mode 100644 index 1769df6e0fc2c92f2f04155f6c162087447dcac3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1250.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1250 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1250') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: getContext().resourceManager.getColorSync($r('app.color.yellow')),type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1260.ets deleted file mode 100644 index 5334a26ecba6caa498301ae50ba38c4b9ff21f8a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1260.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1260 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color:0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1260') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1270.ets deleted file mode 100644 index 28f4bfa11ca2ec7fcf44736ef2f8380025345cdb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1270.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1270 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1270') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1280.ets deleted file mode 100644 index a06f543561c893bc88c076ddc36f0c55c4a41169..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1280.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1280 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1280') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1290.ets deleted file mode 100644 index f3d4e4c145119f8a3db052262480183e62c60e37..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1290.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1290 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1290') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1300.ets deleted file mode 100644 index afe7b6c1cd8a7b515f0c4cf542679fe0c22bfe06..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1300.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1300 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - .id('ComponentTextRicheditorInterface1300') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - decoration:{color: 0x00ff00,type: TextDecorationType.Overline} - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1310.ets deleted file mode 100644 index d47a462276f2203f923b16c5c255b06fb362aa9a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1310.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1310 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'Arial'; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1310') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1320.ets deleted file mode 100644 index e72cf6d09582a62e5e2aa474a9cde86c5e67600b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1320.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1320 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'Arial'; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1320') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1330.ets deleted file mode 100644 index 2d01a445c000e6dc99a35f025d90db478f8e34c2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1330.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1330 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'Arial'; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1330') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1340.ets deleted file mode 100644 index fe230b8e34bf4c0918e90dbb9c07e7b5bc5e7eef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1340.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1340 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'Arial'; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('中国'+ '\n', - { - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1340') - .onIMEInputComplete(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1350.ets deleted file mode 100644 index 765fadf70365a3ba83f2d2e9a2f24adcfd295457..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1350.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1350 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontFamilyRich: string = 'Arial'; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addTextSpan('中国'+ '\n', - { - style:{ - fontStyle:FontStyle.Italic - } - }); - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - .id('ComponentTextRicheditorInterface1350') - .onIMEInputComplete(() => { - this.controller.updateSpanStyle({ - start: -1, - end: -1, - textStyle: { - fontFamily:this.fontFamilyRich - } - }); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1360.ets deleted file mode 100644 index 3fb92907d9e0655d878036494827c3541f90885b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1360.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1360 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('CHina', - { - }); - }) - .id('ComponentTextRicheditorInterface1360') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1380.ets deleted file mode 100644 index 11601a0ab94f0d97951db3e9f66b63bc53eadc71..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1380.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1380 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorInterface1380') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1400.ets deleted file mode 100644 index 89e6de11e89d780049b8d472ccf00408bf9bedd7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1400.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct ComponentTextRicheditorInterface1400 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - build() { - Row() { - Column() { - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('CHina', - { - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - - }) - .id('ComponentTextRicheditorInterface1400') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0001.ets deleted file mode 100644 index 0b77b3db34ee7d1ee6ad9ceda15a07c33fe7b692..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0001.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorKeyboardReinForcing0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorKeyboardReinForcing0001') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0002.ets deleted file mode 100644 index 52317799a8c170e85f5fef57d896fa2b6cb02258..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0002.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorKeyboardReinForcing0002 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorKeyboardReinForcing0002') - .enterKeyType(EnterKeyType.Go) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0003.ets deleted file mode 100644 index 21584abdb487efebe722373dd19d920ff4ce1bb3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0003.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorKeyboardReinForcing0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorKeyboardReinForcing0003') - .enterKeyType(EnterKeyType.NEW_LINE) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0004.ets deleted file mode 100644 index 80516c80b0d7ec72d6efd87e7f73304c7444a264..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0004.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorKeyboardReinForcing0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorKeyboardReinForcing0004') - .enterKeyType(-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/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0012.ets deleted file mode 100644 index 4d463ca035bc2d3b0cfd1a151c0ef7f0b9f83c6b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0012.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorKeyboardReinForcing0012 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State type: EnterKeyType = EnterKeyType.Go; - - build() { - Row() { - Column() { - Button('switchType') - .id('switchType') - .width(100) - .height(50) - .onClick(() => { - this.type = EnterKeyType.NEW_LINE; - this.controller.stopEditing(); - }) - RichEditor(this.options) - .id('ComponentTextRicheditorKeyboardReinForcing0012') - .enterKeyType(this.type) - .onSubmit(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0013.ets deleted file mode 100644 index 8cb80fe93819048b1d6e7468b07e689c66ec75cc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0013.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorKeyboardReinForcing0013 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State type: EnterKeyType = EnterKeyType.Go; - - build() { - Row() { - Column() { - Button('switchType') - .id('switchType') - .width(100) - .height(50) - .onClick(() => { - this.type = EnterKeyType.NEW_LINE; - this.controller.stopEditing(); - }) - RichEditor(this.options) - .id('ComponentTextRicheditorKeyboardReinForcing0013') - .enterKeyType(this.type) - .onSubmit(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0015.ets deleted file mode 100644 index caf4151b48eaf6a70003770492472ae6665d2a5e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0015.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorKeyboardReinForcing0015 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State type: EnterKeyType = EnterKeyType.Go; - - build() { - Row() { - Column() { - Button('switchType') - .id('switchType') - .width(100) - .height(50) - .onClick(() => { - this.type = EnterKeyType.NEW_LINE; - }) - RichEditor(this.options) - .id('ComponentTextRicheditorKeyboardReinForcing0015') - .enterKeyType(this.type) - .onSubmit(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0014.ets deleted file mode 100644 index b9be68bcf49292a4c8a9f7eaaefec861c83d2270..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0014.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0014 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('.....', { - style: { - lineHeight:10, - letterSpacing:-100 - } - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0014') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0019.ets deleted file mode 100644 index 5836278dd9a3285b29e47a30ee51e1dcc728efbc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0019.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0019 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText : number | undefined = 0; - @State letterSpacingText : number | undefined = 0; - build() { - Row() { - Column() { - Text('lineHeight value ='+this.lineHeightText+'letterSpacing value ='+this.letterSpacingText); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - lineHeight:30, - letterSpacing:30 - } - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0019') - .onIMEInputComplete((value: RichEditorTextSpanResult) => { - this.lineHeightText = value.textStyle.lineHeight; - this.letterSpacingText =value.textStyle.letterSpacing; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0020.ets deleted file mode 100644 index d614af69d8d297aa23ec5a26fa48d73923dddeb1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0020.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText: number | undefined = 0; - @State letterSpacingText: number | undefined = 0; - - build() { - Row() { - Column() { - Text('lineHeight value =' + this.lineHeightText + 'letterSpacing value =' + this.letterSpacingText); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - lineHeight: 30, - letterSpacing: 30 - } - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0020') - .aboutToDelete((value: RichEditorDeleteValue) => { - value.richEditorDeleteSpans.forEach(item => { - this.lineHeightText = (item as RichEditorTextSpanResult).textStyle.lineHeight; - this.letterSpacingText = (item as RichEditorTextSpanResult).textStyle.letterSpacing; - }) - return 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/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0021.ets deleted file mode 100644 index 73afec7e67c94585ac8d2228a2ca27e78e73d185..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0021.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0021 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText: number | undefined = 0; - @State letterSpacingText: number | undefined = 0; - - build() { - Row() { - Column() { - Text('lineHeight value =' + this.lineHeightText + 'letterSpacing value =' + this.letterSpacingText); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - lineHeight: 30, - letterSpacing: 30 - } - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0021') - .onSelect((value: RichEditorSelection) => { - value.spans.forEach(item => { - this.lineHeightText = (item as RichEditorTextSpanResult).textStyle.lineHeight; - this.letterSpacingText = (item as RichEditorTextSpanResult).textStyle.letterSpacing; - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0022.ets deleted file mode 100644 index 38b6aaf5e6d5f938a39badfb3dbad4a96a3fe028..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0022.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0022 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText: number | undefined | string | Resource = 0; - @State letterSpacingText: number | undefined | string = 0; - - build() { - Row() { - Column() { - Text('lineHeight value =' + this.lineHeightText + 'letterSpacing value =' + this.letterSpacingText); - Button('getStyles') - .id('getStyles') - .width(100) - .height(50) - .onClick(() => { - this.letterSpacingText = this.controller.getTypingStyle().letterSpacing; - this.lineHeightText = this.controller.getTypingStyle().lineHeight; - }); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人'); - this.controller.setTypingStyle( - { - lineHeight: 30, - letterSpacing: 30 - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0022') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0023.ets deleted file mode 100644 index afc0b83953c6fdb7a3d634b0d62e03a4e29b5063..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0023.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0023 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText: number | undefined | string | Resource = 0; - @State letterSpacingText: number | undefined | string = 0; - - build() { - Row() { - Column() { - Text('lineHeight value =' + this.lineHeightText + 'letterSpacing value =' + this.letterSpacingText); - Button('getStyles') - .id('getStyles') - .width(100) - .height(50) - .onClick(() => { - this.controller.getSpans().forEach(item => { - this.lineHeightText = (item as RichEditorTextSpanResult).textStyle.lineHeight; - this.letterSpacingText = (item as RichEditorTextSpanResult).textStyle.letterSpacing; - }); - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - lineHeight: 30, - letterSpacing: 30 - } - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0023') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0024.ets deleted file mode 100644 index eddb201ccfacd46a5257ece2b7f96b4e696b2c74..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0024.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0024 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText: number | undefined | string | Resource = 0; - @State letterSpacingText: number | undefined | string = 0; - - build() { - Row() { - Column() { - Text('lineHeight value =' + this.lineHeightText + 'letterSpacing value =' + this.letterSpacingText); - Button('getStyles') - .id('getStyles') - .width(100) - .height(50) - .onClick(() => { - console.info('lineHeight value'+this.controller.getSelection()); - console.info('lineHeight value'+this.controller.getSelection().spans); - this.controller.getSelection().spans.forEach(item => { - this.lineHeightText = (item as RichEditorTextSpanResult).textStyle.lineHeight; - this.letterSpacingText = (item as RichEditorTextSpanResult).textStyle.letterSpacing; - }); - }); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - lineHeight: 30, - letterSpacing: 30 - } - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0024') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0025.ets deleted file mode 100644 index 59a5d8ef7c4d8ac77b2e192367bcf441b2b17cd9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0025.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0025 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText: number | undefined | string | Resource = 0; - @State letterSpacingText: number | undefined | string = 0; - - build() { - Row() { - Column() { - Text('lineHeight value =' + this.lineHeightText + 'letterSpacing value =' + this.letterSpacingText); - Button('getStyles') - .id('getStyles') - .width(100) - .height(50) - .onClick(() => { - this.controller.setTypingStyle( - { - lineHeight: 40, - letterSpacing: 40 - }); - this.letterSpacingText = this.controller.getTypingStyle().letterSpacing; - this.lineHeightText = this.controller.getTypingStyle().lineHeight; - }); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - lineHeight: 30, - letterSpacing: 30 - } - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0025') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0026.ets deleted file mode 100644 index 87fec0c9be2147f9bdd0ed70c25b6c95561e2e77..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0026.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLineHeightLetterSpacing0026 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State lineHeightText: number | undefined | string | Resource = 0; - @State letterSpacingText: number | undefined | string = 0; - - build() { - Row() { - Column() { - Text('lineHeight value =' + this.lineHeightText + 'letterSpacing value =' + this.letterSpacingText); - Button('getStyles') - .id('getStyles') - .width(100) - .height(50) - .onClick(() => { - this.controller.updateSpanStyle( - { - textStyle: { - lineHeight: 40, - letterSpacing: 40 - } - }); - this.letterSpacingText = this.controller.getTypingStyle().letterSpacing; - this.lineHeightText = this.controller.getTypingStyle().lineHeight; - }); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人'); - this.controller.setTypingStyle( - { - lineHeight: 30, - letterSpacing: 30 - }); - }) - .id('ComponentTextRicheditorLineHeightLetterSpacing0026') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0001.ets deleted file mode 100644 index 3e7be8a87bf3efdd911b4309051a008a16a13285..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0001.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { prompt, SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - } - this.controller.setSelection(1, 2, options) - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0001') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0002.ets deleted file mode 100644 index 82dc7c8c7db25adcf0740bb70e7d03016733f434..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0002.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0002 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - } - this.controller.setSelection(1, 2, options) - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0002') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0003.ets deleted file mode 100644 index b65f92fc7db944439fe439a09ff781f4e9612151..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0003.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - } - this.controller.setSelection(1, 2, options) - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0003') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0004.ets deleted file mode 100644 index 024b241c38684ff5a713a8e06574529565d8c7d3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0004.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { prompt, SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - } - this.controller.setSelection(1, 2, options) - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0004') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0005.ets deleted file mode 100644 index 67dba32c72e74b856c607aa324a8b4de42018fab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0005.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { prompt, SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - { - style: - { - fontSize: 30 - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0005') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0006.ets deleted file mode 100644 index 0fd605c2c5ea40c486a8fad91e166b7d42de5991..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0006.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @Builder - builder() { - Text("hello").padding('20').borderWidth(1).width('100%') - } - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addBuilderSpan(()=>{ - this.builder() - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0006') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0007.ets deleted file mode 100644 index b4feae8807c626c3b42c8d293a136fb0ddae8584..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0007.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('\uD83D\uDE00', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(1, 2, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0007') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - } - this.controller.setSelection(1, 2, options) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0008.ets deleted file mode 100644 index f754b3e5a25c601968f79a8929ed1f3d9e516cc3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0008.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0008 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('E00', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - } - this.controller.setSelection(-1, -1, options) - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0008') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, -1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0009.ets deleted file mode 100644 index c843264e32ee91e23dc13baaa7b9c7b4b6ef9ac2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0009.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0009 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('E00', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 0, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0009') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 0, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0010.ets deleted file mode 100644 index f61ffab52603e9d0c6feb54feb8df4e528adcb3d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0010.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('E00', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(2, 1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0010') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(2, 1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0011.ets deleted file mode 100644 index 3fd1c0af629c268e748672306d074664a5a8cdb8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0011.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0011 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(1, 1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0011') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(1, 1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0012.ets deleted file mode 100644 index a28c373ea7732f47b961c3c20935b91ed3354585..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0012.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0012 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(1, 1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0012') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(1, 1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0013.ets deleted file mode 100644 index 7075ee6bb252e89b18acecdc764c19f81715d872..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0013.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0013 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:-1 - }; - this.controller.setSelection(1, 2, options); - } - } - }) - }) - .id('ComponentTextRicheditorLongPresstoselectall0013') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: -1 - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0014.ets deleted file mode 100644 index 548f9d4fce00e9b2f2720a80b6351b3032d456ca..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0014.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0014 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: 3 - }; - this.controller.setSelection(1, 2, options); - } - } - }) - }) - .id('ComponentTextRicheditorLongPresstoselectall0014') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: 3 - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0015.ets deleted file mode 100644 index d162e98a91777e2f5a6527a4ac59614c1d133cf9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0015.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0015 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: undefined - }; - this.controller.setSelection(1, 2, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0015') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: undefined - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0016.ets deleted file mode 100644 index 902a32e259ed3b2fc703320e676e391b0be6cddf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0016.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0016 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 1000, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 1000, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0016') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 1000, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017.ets deleted file mode 100644 index 07a00d9ac99b829e857ccaccf7f0b14fed7a08c8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0017 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 1000, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 1000, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0017') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(-1, 1000, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157.ets deleted file mode 100644 index 22f47e66b89b054b1a6688271ea4a28177f512bf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0017_157 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, 0, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, 0, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0017_157') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, 0, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157_029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157_029.ets deleted file mode 100644 index 79851651639f86263cf528c270a6aee176a493ee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157_029.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0017_157_029 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(2, 1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(2, 1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0017_157_029') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(2,1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429.ets deleted file mode 100644 index c8edeb29601868f51170ad7af43cf5c1f3c8c071..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0017_429 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0017_429') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429_005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429_005.ets deleted file mode 100644 index af662768b26aa9bb49b1d5e13cbd57a9e1a2ad27..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429_005.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0017_429_005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - } - } - }) - }) - .id('ComponentTextRicheditorLongPresstoselectall0017_429_005') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0018.ets deleted file mode 100644 index f46192ccee955dcce2ef8c71ff80fae40b00c481..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0018.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0018 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0018') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0019.ets deleted file mode 100644 index f9e19a40624f9f996f0b15270f877543c83870ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0019.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0019 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0019') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - } - this.controller.setSelection(-1, -1, options) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0020.ets deleted file mode 100644 index fe7c2b326d55b4700811c6cfcf2b462149be6e38..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0020.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0020') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.SHOW - }; - this.controller.setSelection(-1, -1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0021.ets deleted file mode 100644 index 8c23e3a216de3d3dea0ea1d592ddc0e66a958621..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0021.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0021 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(1, 2, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:MenuPolicy.HIDE - }; - this.controller.setSelection(1, 2, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0021') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.HIDE - }; - this.controller.setSelection(1, 2, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0022.ets deleted file mode 100644 index 2fe6611521c7aaafc758d7432faff7cc1002185f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0022.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectOptions } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorLongPresstoselectall0022 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('123456', { - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - }, - gesture: { - onLongPress: (event) => { - let options: SelectionOptions = { - menuPolicy:MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - } - } - }); - }) - .id('ComponentTextRicheditorLongPresstoselectall0022') - Button('') - .id('select') - .margin(15) - .backgroundColor(Color.Transparent) - .onClick(() => { - let options: SelectionOptions = { - menuPolicy: MenuPolicy.DEFAULT - }; - this.controller.setSelection(-1, -1, options); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0001.ets deleted file mode 100644 index 8df652aeeecac3fca6984ffba3fb75d160595004..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0001.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorOnWillChange0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State replacedSpansValue: string = ''; - @State rangeBefore: string = ''; - @State rangeAfter: string = ''; - - build() { - Row() { - Column() { - Text('replacedSpans value====' + this.replacedSpansValue).borderColor(Color.Red); - Text('rangeBefore value=====' + this.rangeBefore + 'rangeAfter value=====' + this.rangeAfter).borderColor(Color.Green); - RichEditor(this.options) - .id('ComponentTextRicheditorOnWillChange0001') - .borderColor(Color.Orange) - .onWillChange((value: RichEditorChangeValue) => { - this.replacedSpansValue = JSON.stringify(value.replacedSpans); - return false; - }) - .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { - this.rangeBefore = JSON.stringify(rangeBefore); - this.rangeAfter = JSON.stringify(rangeAfter); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0002.ets deleted file mode 100644 index ae2cce959b8727731fbc3af9ae311e3cabf2d5be..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0002.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorOnWillChange0002 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State replacedSpansValue: string = ''; - @State rangeBefore: string = ''; - @State rangeAfter: string = ''; - - build() { - Row() { - Column() { - Text('replacedSpans value====' + this.replacedSpansValue).borderColor(Color.Red); - Text('rangeBefore value=====' + this.rangeBefore + 'rangeAfter value=====' + this.rangeAfter).borderColor(Color.Green); - RichEditor(this.options) - .id('ComponentTextRicheditorOnWillChange0002') - .borderColor(Color.Orange) - .borderWidth(1) - .draggable(true) - .onWillChange((value: RichEditorChangeValue) => { - this.replacedSpansValue = JSON.stringify(value.replacedSpans); - return false; - }) - .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { - this.rangeBefore = JSON.stringify(rangeBefore); - this.rangeAfter = JSON.stringify(rangeAfter); - }) - TextArea({text:"我是TextArea"}).draggable(true).width(100).height(50).id('TextArea'); - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0003.ets deleted file mode 100644 index bdaba6047c8e08d7db69cb62763a312696481aa6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0003.ets +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorOnWillChange0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State replacedSpansValue: string = ''; - @State rangeBefore: string = ''; - @State rangeAfter: string = ''; - - build() { - Row() { - Column() { - Text('replacedSpans value====' + this.replacedSpansValue).borderColor(Color.Red); - Text('rangeBefore value=====' + this.rangeBefore + 'rangeAfter value=====' + this.rangeAfter).borderColor(Color.Green); - RichEditor(this.options) - .id('ComponentTextRicheditorOnWillChange0003') - .borderColor(Color.Orange) - .borderWidth(1) - .onWillChange((value: RichEditorChangeValue) => { - this.replacedSpansValue = JSON.stringify(value.replacedSpans); - return false; - }) - .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { - this.rangeBefore = JSON.stringify(rangeBefore); - this.rangeAfter = JSON.stringify(rangeAfter); - }) - Button('changeFeature') - .id('changeFeature') - .margin(20) - .width(100) - .height(20) - .onClick(()=>{ - this.controller.addTextSpan('添加内容', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 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/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0004.ets deleted file mode 100644 index 3f2eb582cd28aff00d568ca84cc22e2f6d1e2fdd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0004.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorOnWillChange0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State replacedSpansValue: string = ''; - @State rangeBefore: string = ''; - @State rangeAfter: string = ''; - - build() { - Row() { - Column() { - Text('replacedSpans value====' + this.replacedSpansValue).borderColor(Color.Red); - Text('rangeBefore value=====' + this.rangeBefore + 'rangeAfter value=====' + this.rangeAfter).borderColor(Color.Green); - RichEditor(this.options) - .id('ComponentTextRicheditorOnWillChange0004') - .borderColor(Color.Orange) - .borderWidth(1) - .onWillChange((value: RichEditorChangeValue) => { - this.controller.setSelection(1,3); - this.replacedSpansValue = JSON.stringify(value.replacedSpans); - return true; - }) - .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { - this.rangeBefore = JSON.stringify(rangeBefore); - this.rangeAfter = JSON.stringify(rangeAfter); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0005.ets deleted file mode 100644 index ffbf7eb6fe581769d002280be3579115e8cff743..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0005.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorOnWillChange0005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State replacedSpansValue: string = ''; - @State rangeBefore: string = ''; - @State rangeAfter: string = ''; - - build() { - Row() { - Column() { - Text('replacedSpans value====' + this.replacedSpansValue).borderColor(Color.Red); - Text('rangeBefore value=====' + this.rangeBefore + 'rangeAfter value=====' + this.rangeAfter) - .borderColor(Color.Green); - RichEditor(this.options) - .id('ComponentTextRicheditorOnWillChange0005') - .borderColor(Color.Orange) - .onReady(() => { - this.controller.addTextSpan('添加内容', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .borderWidth(1) - .onWillChange((value: RichEditorChangeValue) => { - this.replacedSpansValue = JSON.stringify(value.replacedSpans); - return true; - }) - .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { - this.rangeBefore = JSON.stringify(rangeBefore); - this.rangeAfter = JSON.stringify(rangeAfter); - }) - Button("删除选择内容") - .id('delete') - .onClick(() => { - this.controller.deleteSpans(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0006.ets deleted file mode 100644 index d760b5f9c31c904412d494102386a2e28adf401c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0006.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorOnWillChange0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State replacedSpansValue: string = ''; - @State rangeBefore: string = ''; - @State rangeAfter: string = ''; - - build() { - Row() { - Column() { - Text('replacedSpans value====' + this.replacedSpansValue).borderColor(Color.Red); - Text('rangeBefore value=====' + this.rangeBefore + 'rangeAfter value=====' + this.rangeAfter) - .borderColor(Color.Green); - RichEditor(this.options) - .id('ComponentTextRicheditorOnWillChange0006') - .borderColor(Color.Orange) - .onReady(() => { - this.controller.addTextSpan('添加内容', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .borderWidth(1) - .onWillChange((value: RichEditorChangeValue) => { - this.replacedSpansValue = JSON.stringify(value.replacedSpans); - return true; - }) - .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { - this.rangeAfter = JSON.stringify(rangeAfter); - this.rangeBefore = JSON.stringify(rangeBefore); - }) - Button("删除选择内容") - .id('delete') - .onClick(() => { - this.controller.deleteSpans(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0007.ets deleted file mode 100644 index 00626ed63a6a87a779e9507e3456cbbdcc297955..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0007.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorOnWillChange0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State replacedSpansValue: string = ''; - @State rangeBefore: string = ''; - @State rangeAfter: string = ''; - - build() { - Row() { - Column() { - Text('replacedSpans value====' + this.replacedSpansValue).borderColor(Color.Red); - Text('rangeBefore value=====' + this.rangeBefore + 'rangeAfter value=====' + this.rangeAfter) - .borderColor(Color.Green); - RichEditor(this.options) - .id('ComponentTextRicheditorOnWillChange0007') - .borderColor(Color.Orange) - .onReady(() => { - this.controller.addTextSpan('111', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .borderWidth(1) - .onWillChange((value: RichEditorChangeValue) => { - this.replacedSpansValue = JSON.stringify(value.replacedSpans); - return true; - }) - .onDidChange((rangeBefore: TextRange, rangeAfter: TextRange) => { - this.rangeAfter = JSON.stringify(rangeAfter); - this.rangeBefore = JSON.stringify(rangeBefore); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0001.ets deleted file mode 100644 index c3b27fbdc3aa53bbff67315e1319efd2229559f2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0001.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本') - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0001') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0002.ets deleted file mode 100644 index b5e8937c24d39fcf71d8a8e11c07b4826f8a34c9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0002.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0002 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('前面章节介绍了如何创建一个自定义组件。该自定义组件内部红结构固定,仅与使用方进行数据传递。 Ark UI还提供了一种更轻量的VI元素复用机制④vilder,④vilder所装饰的函数遵循 build()函数语法规则, 开发者可以将重复使用的UI元素抽象成一个方法,在build方法里调用。') - .key('ComponentTextRicheditorPlaceholder0002') - .borderWidth(1) - .borderColor(Color.Red) - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0003.ets deleted file mode 100644 index fd255a4272061532a106256626959ca73e4b6d3b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0003.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('') - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0003') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0004.ets deleted file mode 100644 index 0c025d6790826524565ff91396f095230dd26a22..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0004.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(' ') - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0004') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0005.ets deleted file mode 100644 index f48595de1f41fc698f83db5259b1b61fb225dbd9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0005.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('回头看了附近的hfkdshfnhfkdf& ldfkklf'+'\n'+'^7#@32345 () --#999@') - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0005') - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0006.ets deleted file mode 100644 index 1286c3e0f4568a5aa276fb3ab29996aba20def7e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0006.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(getContext().resourceManager.getStringSync($r("app.string.module_test_desc"))) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0006') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0007.ets deleted file mode 100644 index df9fc4d15f7b87ecf686491ad5417f8e334da8f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0007.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder($r('app.media.cat')) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0007') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0008.ets deleted file mode 100644 index 3497cba6b8f45f96f77ab5df20528c796a8f0b4f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0008.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0008 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '20gx' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0008') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0009.ets deleted file mode 100644 index dfc115facb11b0388d6a8c9b216b39a8c4bd97c8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0009.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0009 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '100px' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0009') - .width(100) - .height(50) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0010.ets deleted file mode 100644 index f45985a25c98a28030f79874602926413f2e49bf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0010.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0010{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '10' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0010') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00100.ets deleted file mode 100644 index 05c64d92feb2aa77a3755111766f7bc7971f71bd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00100.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder00100 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State widthRich: number = 200; - @State heightRich: number = 50; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder00100') - .width(this.widthRich) - .height(this.heightRich) - Button('changeFeature') - .id('changeFeature') - .margin(20) - .width(100) - .height(20) - .onClick(() => { - this.widthRich = 100; - this.heightRich = 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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00101.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00101.ets deleted file mode 100644 index fbd270ede10a770373bb585f54266b80244e0c69..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00101.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder00101 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State paddingRich: number = 5; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder00101') - .padding(this.paddingRich) - .width(100) - .height(100) - Button('changeFeature') - .id('changeFeature') - .margin(20) - .width(100) - .height(20) - .onClick(() => { - this.paddingRich = 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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00102.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00102.ets deleted file mode 100644 index bc3eaddc50c9d959a448b88a56745f178e417e9d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00102.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0097 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State marginRich: number = 5; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0097') - .width(100) - .height(50) - Button('changeFeature') - .id('changeFeature') - .margin(20) - .width(100) - .height(20) - .onClick(() => { - this.marginRich = 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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103.ets deleted file mode 100644 index 299ab0422d15f17f6f3f1125d5b56287cce6da94..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0097 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State flexBasisValue: number = 10; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0097') - .width(100) - .height(20) - .flexBasis(this.flexBasisValue) - Button('changeFeature') - .id('changeFeature') - .margin(20) - .width(100) - .height(20) - .onClick(() => { - this.flexBasisValue = 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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040.ets deleted file mode 100644 index ec6b77d01a3c3abd0b85408ef9163ff7a4897932..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder00103_040 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - Button('change') - .id('change') - .margin(20) - .width(100) - .height(20) - .onClick(() => { - this.controller.deleteSpans(); - }) - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder00103_040') - .width(100) - .height(40) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040_934.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040_934.ets deleted file mode 100644 index 9c207b688c2a8a90590fe17373ef2ecbd1645c42..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040_934.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder00103_040_934 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State widthRich : number = 200; - @State heightRich : number = 60; - - build() { - Row() { - Column() { - TextArea({text:"我是TextArea"}).draggable(true).width(100).height(50).id('TextArea'); - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .draggable(true) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder00103_040_934') - .width(this.widthRich) - .height(this.heightRich) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00104.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00104.ets deleted file mode 100644 index cb3e6f7e7e4515b607508167bae1a0134b158975..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00104.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder00104 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State richSize : number = 10; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', { - font:{ - size:this.richSize - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder00104') - .width(100) - .height(40) - Button('changeFeature') - .id('changeFeature') - .margin(20) - .width(100) - .height(20) - .onClick(()=>{ - this.richSize = 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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00105.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00105.ets deleted file mode 100644 index f0c8402b049a7411127d430c787c4ddc0c684003..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00105.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder00105 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State widthRich : number = 200; - @State heightRich : number = 50; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder00105') - .width(this.widthRich) - .height(this.heightRich) - Button('changeFeature') - .id('changeFeature') - .margin(20) - .width(100) - .height(20) - .onClick(()=>{ - this.controller.setCaretOffset(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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0011.ets deleted file mode 100644 index 6d0d3d8edf882b531454e3f772ef190b18f69dd9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0011.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0011{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '23.40' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0011') - .width(300) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0012.ets deleted file mode 100644 index 8d53e0ebf6df79033ba1c535d592f58ab4c06dd9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0012.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0012{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '50fp' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0012') - .width(300) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0013.ets deleted file mode 100644 index 2de6f4271e9b462711602d0ee4e7648308b2b9b0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0013.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0013{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '50abedefg' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0013') - .width(300) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0014.ets deleted file mode 100644 index 9579bb1767b59cbd2c6842f255d76cbc36ba342c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0014.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0014{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '50dp' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0014') - .width(300) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0015.ets deleted file mode 100644 index 0ac27bfcd6268fef7119cbb1918078dc70323df4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0015.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0015{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '100%' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0015') - .width(300) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0016.ets deleted file mode 100644 index fc2a18c070a98ed102cb23addba3ea5e4324d074..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0016.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0016{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '上班 qwer$k\\n' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0016') - .width(300) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0017.ets deleted file mode 100644 index 37fed5e278fab02fe32b139573a4d3d2d4f9cf1e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0017.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0017{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '-1px' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0017') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0018.ets deleted file mode 100644 index 3d23b123a4bfd5e591f9fb4d00c0a7732a447d3f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0018.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0018{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '0px' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0018') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0019.ets deleted file mode 100644 index 05204427b3546c2e13e879a3c27c2c927d36bf3c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0019.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0019{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: '0b1010' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0019') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0020.ets deleted file mode 100644 index 461d45e833477121768f05f273f6c92a56d06e2e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0020.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0020{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: 20 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0020') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0021.ets deleted file mode 100644 index 015f2ae2e1c05a91cde9ee056d159085d894681b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0021.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0021{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: -10 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0021') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0022.ets deleted file mode 100644 index eba8bddb35aa13e4eb9f7f38198cbe286c291a43..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0022.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0022{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: 0b1010 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0022') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0023.ets deleted file mode 100644 index 034ee3520c336bf995161f2609926a7ad24d1e00..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0023.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0023{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: 23.40 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0023') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0024.ets deleted file mode 100644 index 22ffcdb81f48f9d84ec298c91f6844c927644401..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0024.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0024{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: 0x22 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0024') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0025.ets deleted file mode 100644 index 563960c67e15d3f5b829731f7d2f29125c24aed3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0025.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0025{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: 0 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0025') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0026.ets deleted file mode 100644 index 00d70bee5dbb47da3da814ee99556d623cd8a3d2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0026.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0026{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: getContext().resourceManager.getStringSync($r('app.string.size_30')) - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0026') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0027.ets deleted file mode 100644 index 43ce5581bcf5507b72aafc39a45075ce138ef217..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0027.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0027{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - size: 'cat.jpg' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0027') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0028.ets deleted file mode 100644 index cc235b9a7324fe376d76368767527c6b4dd15917..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0028.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0028{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - style:FontStyle.Italic - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0028') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0029.ets deleted file mode 100644 index 519ad68de5b2e08022cd5bcfe2ed333499928424..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0029.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0029{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - style:FontStyle.Normal - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0029') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0030.ets deleted file mode 100644 index bc32e8bd912bb0662a606920545c759300eb388f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0030.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0030{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '900' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0030') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0031.ets deleted file mode 100644 index 30980228e49de2435894f0bbfe9fae9cd1ab476d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0031.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0031{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '400' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0031') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0032.ets deleted file mode 100644 index cc02e3a56b4428c6d08810ac86cb269294970559..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0032.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0032{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '100' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0032') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0033.ets deleted file mode 100644 index a0d89a0fdcd9423bfbd0869e978d956288d744df..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0033.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0033{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '-1' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0033') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0034.ets deleted file mode 100644 index 2b1c321fe9d1389f45c7e18b6266a6fc0a514a95..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0034.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0034{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '0' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0034') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0035.ets deleted file mode 100644 index 4efdd7be2abba015ad901795840fae21560c6170..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0035.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0035{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '1000' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0035') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0036.ets deleted file mode 100644 index 52e4af905709e2e61e7eb83435a52e8f7fcbb86a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0036.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0036{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '901' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0036') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0037.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0037.ets deleted file mode 100644 index 26e4e4721a5e884bd33aa19eda00d34261ee73c7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0037.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0037{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '100.6' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0037') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0038.ets deleted file mode 100644 index aba0960e3189f3c96dab475788095576b863c03c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0038.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0038{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: '0b1100100' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0038') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0039.ets deleted file mode 100644 index 97ef6328f54b8b5bc0a1c6fe201e9ab74d5f3be5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0039.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0039{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 'abedefg' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0039') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0040.ets deleted file mode 100644 index 92030612be5988caa86b0ae17dd20460adf49b45..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0040.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0040{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 900 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0040') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0041.ets deleted file mode 100644 index 2fd41e0f6e8f44e651f924e2b7fd34cb410b703b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0041.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0041{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 400 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0041') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0042.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0042.ets deleted file mode 100644 index 57833907238d1ef7cc6df570fb8870e69e627dc5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0042.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0042{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 100 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0042') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0043.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0043.ets deleted file mode 100644 index 6569b7b77f95f103d2c33dd6b589479a16ef52fb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0043.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0043{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 0b1100100 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0043') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0044.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0044.ets deleted file mode 100644 index 58458d317563a73b235ef1772a14d463dbfcb799..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0044.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0044{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: -100 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0044') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0045.ets deleted file mode 100644 index 471b6b665a705f48c52c47819bee433c72cdf777..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0045.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0045{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 0 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0045') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0046.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0046.ets deleted file mode 100644 index dd1371a5ceadd6753b3c62cce6a146c844ab8197..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0046.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0046{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 1000 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0046') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0047.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0047.ets deleted file mode 100644 index 0c67e49c9257b8af8f61592f7a0010ae0e75edfc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0047.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0047{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 99 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0047') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0048.ets deleted file mode 100644 index 015aa5bcdbce236a36596fd3fe6517141150d8ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0048.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0048{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 901 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0048') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0049.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0049.ets deleted file mode 100644 index 3badcd80e38bd518ed4e81a7e981efe52d62c678..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0049.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0049{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 900.6 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0049') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0050.ets deleted file mode 100644 index 96735da3ff074e4c7e7d469f1d108c73e71247a0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0050.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0050{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 100.6 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0050') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0051.ets deleted file mode 100644 index a4c744bc2f5d7fc1c2e0d0605d964115aefb2f26..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0051.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0051{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 99.6 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0051') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0052.ets deleted file mode 100644 index 5249c9cd374c90ff4e8dd972098c6ead1841a49b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0052.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0052{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: 499.9 - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0052') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0053.ets deleted file mode 100644 index 4f7fd09d1076fc375fa238704564e7297ecf9ae4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0053.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0053{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: FontWeight.Lighter - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0053') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0054.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0054.ets deleted file mode 100644 index 0305995a1e2ff24b8a9fb432835b1355ed02f6a8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0054.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0054{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: FontWeight.Normal - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0054') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0055.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0055.ets deleted file mode 100644 index 03d7068642ec9fc46d4d86c072014fb286d8951c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0055.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0055{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: FontWeight.Regular - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0055') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0056.ets deleted file mode 100644 index de8c9b0fd0113ae4d0f3316caca81d9d01b6c618..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0056.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0056{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: FontWeight.Medium - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0056') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0057.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0057.ets deleted file mode 100644 index 169e594584e08ae37581e576fdf0a35dda5ebc98..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0057.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0057{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: FontWeight.Bold - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0057') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0058.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0058.ets deleted file mode 100644 index d0c627335f279d4adf721eb98f2dbd5f7c528778..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0058.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0058{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - weight: FontWeight.Bolder - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0058') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0059.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0059.ets deleted file mode 100644 index f6c3af591d2b91c56054f5afd5afe15ece80224d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0059.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0059{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - family: 'HarmonyOS Sans' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0059') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0060.ets deleted file mode 100644 index f86ab81bce53dcef79b6289194409b7001daa77a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0060.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0060{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - family: 'abcdefg' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0060') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0061.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0061.ets deleted file mode 100644 index 693af90c5a3b297547c89daacfaed7b7dfb6db56..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0061.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0061{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - family: getContext().resourceManager.getStringSync($r('app.string.fontfamily_1')) - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0061') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0062.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0062.ets deleted file mode 100644 index 43350cea0c723c06128635e173d66f86b05ffb5a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0062.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0062{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Gray, - font: { - family: 'cat.jpg' - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0062') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0063.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0063.ets deleted file mode 100644 index cdd19689a1028dc1d04e0fbc5f5a3483c5e24e34..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0063.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0063{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: Color.Orange, - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0063') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0064.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0064.ets deleted file mode 100644 index 0daa3eb9f42956dad136fd2c0a9befcda9b8085c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0064.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0064{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: 0x0000ff - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0064') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0065.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0065.ets deleted file mode 100644 index 774f5fd796c13cd2c538f3bfad1d6eb362416cdc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0065.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0065{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: 'Oxffffffeeeee' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0065') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0066.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0066.ets deleted file mode 100644 index 8abff3b796ad729ca51fc250aa9feb378b8aa64e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0066.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0066{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor: 10000 - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0066') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0067.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0067.ets deleted file mode 100644 index b39dfb68d64a9ec60901ed92aab8e25f4fee68b8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0067.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0067{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:10000.5 - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0067') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0068.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0068.ets deleted file mode 100644 index 4a7c1e2d746768690730ca3344faec162f3a43db..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0068.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0068{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:-15 - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0068') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0069.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0069.ets deleted file mode 100644 index afd4311a6c245238ed5504662fee95f209269194..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0069.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0069{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'#00ffff' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0069') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0070.ets deleted file mode 100644 index 4d3036ae11cf1efec2b2a91ec816f70a91c48160..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0070.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0070{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'#ffffff00' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0070') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0071.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0071.ets deleted file mode 100644 index 4b1cd32aa6dd18afff3d6e498c604b6b27ed9d34..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0071.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0071{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'rgb(255,0,255)' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0071') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0072.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0072.ets deleted file mode 100644 index ff859eaeb8be0351f382e5e624a899f4a9a828ed..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0072.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0072{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'rgba(0,0,255,0.5)' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0072') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0073.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0073.ets deleted file mode 100644 index 14ac0d0b1f4598422d5e6e5d164722099a6bd611..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0073.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0073{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'#0cccccc' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0073') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0074.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0074.ets deleted file mode 100644 index ae60d6765b276c524482e399e5eeb894321db365..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0074.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0074{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'rgba(255,0,255,2)' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0074') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0075.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0075.ets deleted file mode 100644 index 6d70b922e357c352111813ed9f7ae25af7e545ea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0075.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0075{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'rgb(255,0,300)' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0075') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0076.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0076.ets deleted file mode 100644 index f3554ff29c076c39118d77c91a57039490e627c0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0076.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0076{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'abcdefg' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0076') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0077.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0077.ets deleted file mode 100644 index ad242595cfc134df85254cd1b4b12c024e17464e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0077.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0077{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:getContext().resourceManager.getColorSync($r('app.color.yellow')) - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0077') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0078.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0078.ets deleted file mode 100644 index 2217df65888c531e31b0ef91fbbefcd92616179b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0078.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0078{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("input...", { - fontColor:'cat.jpg' - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0078') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079.ets deleted file mode 100644 index 34d603646b5f773f7aec38e304aed71f599e97ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0079 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontSize: number = 20; - @State fontWeight: number = 100; - @State fontFamily: string = ''; - @State fontColor: Color = Color.Red; - @State fontStyle: FontStyle = FontStyle.Normal; - @State fontValue: ResourceStr = '点击改变属性'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.fontValue, { - fontColor:this.fontColor, - font:{ - family:this.fontFamily, - size:this.fontSize, - style:this.fontStyle, - weight:this.fontWeight - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0079') - .width(100) - .height(300) - Button('changeFeature') - .id('changeFeature') - .width(100) - .height(30) - .onClick(() => { - this.fontSize = 30; - this.fontWeight = 500; - this.fontColor = Color.Green; - this.fontValue = '我被点击了,我也改变了'; - this.fontStyle = FontStyle.Italic; - this.fontFamily = getContext().resourceManager.getStringSync($r('app.string.fontfamily_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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079_932.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079_932.ets deleted file mode 100644 index a227eb891acfc4c8d7e98483cf04ce618fe4a14f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079_932.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0079_932 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontSize: number = 20; - @State fontWeight: number = 100; - @State fontFamily: string = ''; - @State fontColor: Color = Color.Red; - @State fontStyle: FontStyle = FontStyle.Normal; - @State fontValue: ResourceStr = '点击改变属性'; - - build() { - Column() { - RichEditor(this.options) - .placeholder('tips', { - }) - .onReady(()=>{ - this.controller.addTextSpan('add span',{ - - }) - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0079_932') - .width(100) - .height(300) - Button('changeFeature') - .id('changeFeature') - .width(100) - .height(30) - .onClick(() => { - this.controller.deleteSpans({ - }); - }) - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0080.ets deleted file mode 100644 index c9e79bfeaaea1c9e9b76c228ab78eb206199efe0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0080.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0080 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State fontSize: number = 20; - @State fontWeight: number = 100; - @State fontFamily: string = ''; - @State fontColor: Color = Color.Red; - @State fontStyle: FontStyle = FontStyle.Normal; - @State fontValue: ResourceStr = '点击改变属性'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.fontValue, { - fontColor:this.fontColor, - font:{ - family:this.fontFamily, - size:this.fontSize, - style:this.fontStyle, - weight:this.fontWeight - } - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0080') - .width(100) - .height(300) - Button('changeFeature') - .id('changeFeature') - .width(100) - .height(30) - .onClick(() => { - this.fontSize = this.fontSize ++; - this.fontWeight =this.fontWeight ++; - this.fontColor = Color.Green; - this.fontValue = '我被点击了,我也改变了'; - this.fontStyle = FontStyle.Italic; - this.fontFamily = getContext().resourceManager.getStringSync($r('app.string.fontfamily_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/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0081.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0081.ets deleted file mode 100644 index 3d6384a5955aa6ef615a3454701fa92466157a4a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0081.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0081{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("这是提示", { - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0081') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0082.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0082.ets deleted file mode 100644 index 009fa5f0f02457407de3f3af3dfe4825286ab1c5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0082.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0082 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State tips: string = 'input'; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.tips, {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0082') - .width(100) - .height(300) - TextInput() - .id('change') - .onChange((value: string) => { - this.tips = value; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0083.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0083.ets deleted file mode 100644 index c9e3fd62f0f7359329b968592813053584de7555..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0083.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0083{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State tips: string = 'input'; - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.tips, {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0083') - .width(100) - .height(300) - TextInput() - .id('change') - .onChange((value: string) => { - this.tips = value; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0084.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0084.ets deleted file mode 100644 index c3a35fa0cd6e526f30fa300f4d2367fd83bc8392..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0084.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0084{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder("这是水印", { - }) - .borderWidth(1) - .borderColor(Color.Red) - .key('ComponentTextRicheditorPlaceholder0084') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0085.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0085.ets deleted file mode 100644 index 203138dfb87958a38493362e27d09540c14bca87..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0085.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0085{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State tips: string = 'input'; - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.tips, {}) - .onReady(()=>{ - this.controller.addTextSpan('',{ - - }) - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0085') - .width(100) - .height(300) - TextInput() - .id('change') - .onChange((value: string) => { - this.tips = value; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0086.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0086.ets deleted file mode 100644 index a5063c5088bbc4fbdbf6e934ae898b2492eb4f81..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0086.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0086{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State tips: string = 'input'; - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.tips, {}) - .borderWidth(1) - .draggable(true) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0086') - .width(100) - .height(50) - TextInput() - .id('change') - .draggable(true) - .onChange((value: string) => { - this.tips = value; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0087.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0087.ets deleted file mode 100644 index 7166c7325e3766f93110fa6d507b06c56c0003d9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0087.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0087{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State tips: string = 'input'; - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.tips, {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0087') - .width(100) - .height(300) - TextInput() - .id('change') - .onChange((value: string) => { - this.tips = value; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0088.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0088.ets deleted file mode 100644 index c894d73b057e0747e266d7be5c9e2228f80f5f5d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0088.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0088{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State tips: string = 'input'; - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.tips, {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0088') - .width(100) - .height(300) - TextInput() - .id('change') - .onChange((value: string) => { - this.tips = value; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0089.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0089.ets deleted file mode 100644 index a77e8265559338778283ed113136dc44a8a6dd6b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0089.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0089{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0089') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0090.ets deleted file mode 100644 index c79b7a8931e9568e16e74e6226a1a2d7ca9a3423..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0090.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0090{ - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0090') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0091.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0091.ets deleted file mode 100644 index 57e19fd09a1e4f0a1e8e0a3326d2eab1d5314a18..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0091.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0091 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - @Builder - builder() { - Text("hello").padding('20').borderWidth(1).width('100%'); - } - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示', {}) - .onReady(() => { - this.controller.addTextSpan('1234', - {}); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - {}); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addBuilderSpan(() => { - this.builder(); - }); - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0091') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0092.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0092.ets deleted file mode 100644 index ed637f59acbe2a09e99d72dd154fcfc71c7ed018..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0092.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0092 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - @Builder - builder() { - Text("hello").padding('20').borderWidth(1).width('100%'); - } - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示', {}) - .onReady(() => { - this.controller.addTextSpan('1', - {}); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - {}); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addBuilderSpan(() => { - this.builder(); - }); - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0092') - .width(100) - .height(300) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0093.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0093.ets deleted file mode 100644 index 9747a80ac24d0d7002f2ff5886c2f94c65c9d505..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0093.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0093 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - @Builder - builder() { - Text("hello").padding('20').borderWidth(1).width('100%'); - } - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示', {}) - .onReady(() => { - this.controller.addTextSpan('1', - {}); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - {}); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addBuilderSpan(() => { - this.builder(); - }); - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0093') - .width(100) - .height(300) - Button('delete') - .id('delete') - .width(100) - .height(30) - .onClick(() => { - this.controller.deleteSpans(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0094.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0094.ets deleted file mode 100644 index 313e14b454eb1475119dbab11c65e506ee7b0409..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0094.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0094 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - @Builder - builder() { - Text("hello").padding('20').borderWidth(1).width('100%'); - } - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0094') - .width(100) - .height(300) - Button('add') - .id('add') - .width(100) - .height(30) - .onClick(() => { - this.controller.addTextSpan('1', - {}); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - {}); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addBuilderSpan(() => { - this.builder(); - }); - }) - }; - - Button('delete') - .id('delete') - .width(100) - .height(30) - .onClick(() => { - this.controller.deleteSpans(); - }) - } - .width('100%') - .height('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0095.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0095.ets deleted file mode 100644 index e6310626999448d3aca3d9685000f61659028564..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0095.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0095 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State tips: string = '这是提示'; - - setOrientation() { - try { - window.getLastWindow(getContext(this), (err, data) => { // 获取window实例 - if (err.code) { - return; - } - let windowClass = data; - - let orientation = window.Orientation.LANDSCAPE; // 设置窗口方向为传感器自动旋转模式。 - try { - windowClass.setPreferredOrientation(orientation, (err) => { - if (err.code) { - return; - } - }); - } catch (exception) { - } - ; - }); - } catch (exception) { - } - ; - } - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder(this.tips, {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0095') - .width('50%') - .height('10%') - Button('setContent') - .id('setContent') - .width(100) - .height(30) - .onClick(() => { - this.tips = 'zhognguoahjdoha dnao oadjiafnofofnoasdfofaonafsnfudsfofdccvc v vccv mdfsj'; - this.setOrientation(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0097.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0097.ets deleted file mode 100644 index 9f7d0ad4a14610d176de689d5318bb4fc0f8b8c0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0097.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0097 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .onReady(() => { - this.controller.addTextSpan('1', - { - - }); - this.controller.updateParagraphStyle({ - style: { - textAlign:TextAlign.End - } - }); - }) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0097') - .width('50%') - .height('10%') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0098.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0098.ets deleted file mode 100644 index 3b2ec15be4655a0de44135a4df453663cc25b521..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0098.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0098 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .align(Alignment.BottomStart) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0098') - .width('50%') - .height('10%') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0099.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0099.ets deleted file mode 100644 index ba29f2fffdde76084fcd90d22d6ffb9b2cba01cf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0099.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { window } from '@kit.ArkUI'; - - -@Entry -@Component -struct ComponentTextRicheditorPlaceholder0099 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .placeholder('这是提示文本', {}) - .borderWidth(1) - .borderColor(Color.Red) - .id('ComponentTextRicheditorPlaceholder0099') - .width('50%') - .height('10%') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0010.ets deleted file mode 100644 index 48b1b6446fa54a1683dbb2540eb7536271036da9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0010.ets +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontColor: Color.Red, - fontStyle: FontStyle.Italic, - fontWeight: FontWeight.Bolder - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0010') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0010_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0020.ets deleted file mode 100644 index 7de27a3c2ff862c24ae26d874d2caecce9a74661..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0020.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0020') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0020_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0030.ets deleted file mode 100644 index 1d9a246d9241dc31e291892ed9e92ff670513e0d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0030.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0030 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0030') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0030_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0040.ets deleted file mode 100644 index 59cdd7abd398e3d411bfa4cb1fce48b62ead46cd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0040.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0040 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0040') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0040_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0050.ets deleted file mode 100644 index a10531b09d988dd3924a2996143e908562a683b0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0050.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0050 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + '\n'+ - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - style: { - fontColor: Color.Red, - fontStyle: FontStyle.Italic, - fontWeight: FontWeight.Bolder - } - }) - }) - .id('ComponentTextRicheditorShortKcutKeys0050') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0050_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0060.ets deleted file mode 100644 index 9e49fec0145d13ebb2639686269853fdf1d4d4b1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0060.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0060 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0060') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0060_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0070.ets deleted file mode 100644 index 25e4d433fe3bb0c4f54f3a453b4e85022ce4fb3f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0070.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0070 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + '\n'+ - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0070') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - this.controller1.addTextSpan('我爱你中国', - {}); - }) - .id('ComponentTextRicheditorShortKcutKeys0070_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0080.ets deleted file mode 100644 index 72d7d58a82512ee3d77bc1deb5dfbbd60391bac5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0080.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0080 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + '\n'+ - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0080') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0080_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0090.ets deleted file mode 100644 index e9924c96317d693f13027df9487f538cd2e43077..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0090.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0090 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + '\n'+ - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0090') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0090_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0100.ets deleted file mode 100644 index 72013516480b7a286d11b5d9a8c474c095a89f73..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0100.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0100 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0100') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0100_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0110.ets deleted file mode 100644 index 8e79346a85d64b8afbd2d1ed59da12c018c35a99..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0110.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0110 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + '\n'+ - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0110') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0110_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0120.ets deleted file mode 100644 index c9bc522a6e291c26229a861d289fa136cf97872b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0120.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0120 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人' + '\n'+ - '我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0120') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0120_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0130.ets deleted file mode 100644 index 93aef463088081e7281954446112e2f30df96b7a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0130.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0130 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0130') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0130_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0140.ets deleted file mode 100644 index 6d409c0c22b729f0c231c231c341e3f9b5cd21f0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0140.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0140 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0140') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0140_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0150.ets deleted file mode 100644 index 581f90dc2c70d44a715cf7c77765ee18f8c004e8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0150.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0150 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0150') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - this.controller1.addTextSpan('我爱你中国', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0150_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0160.ets deleted file mode 100644 index 20a8756fb9542ce39f53c060bec37c6b332c6517..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0160.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0160 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0160') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - this.controller1.addTextSpan('我爱你中国', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0160_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0170.ets deleted file mode 100644 index 446904529e3b63c61991a46d0b9f58263688a1cd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0170.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0170 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0170') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - this.controller1.addTextSpan('我爱你中国', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0170_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0180.ets deleted file mode 100644 index cde4e455c48df1244fa5a8b9f5acb7afc7074865..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0180.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0180 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0180') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0180_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0190.ets deleted file mode 100644 index c0878e1398b7b54982d94771b24e183844362af6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0190.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0190 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0190') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0190_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0200.ets deleted file mode 100644 index 8ade75a10aaa632ec6142fd5e05fe16b8fa0611b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0200.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0200 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - Button('select') - .id('select') - .width(100) - .height(40) - .onClick(()=>{ - this.controller.setSelection(-1,5); - }) - Button('select1') - .id('select1') - .width(100) - .height(40) - .onClick(()=>{ - this.controller.setSelection(-1,-1); - }) - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - }); - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0200') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0200_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0210.ets deleted file mode 100644 index dd5ed9dba73c3f0672245d61412e0cbfc9cd7426..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0210.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0210 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - Button('select') - .id('select') - .width(100) - .height(40) - .onClick(()=>{ - this.controller.setSelection(-1,1); - }) - Button('select1') - .id('select1') - .width(100) - .height(40) - .onClick(()=>{ - this.controller.setSelection(-1,-1); - }) - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - this.controller.addTextSpan('我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0210') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0210_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0220.ets deleted file mode 100644 index fdf8e3a52af345413e5fe6a68d4ff24b337bfe5a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0220.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0220 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0220') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0220_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0230.ets deleted file mode 100644 index ab0fdf97be1bdb9e98dcca73b5e79b1492e36493..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0230.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0230 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - Button('select') - .id('select') - .width(100) - .height(40) - .onClick(()=>{ - this.controller.setSelection(-1,3); - }) - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0230') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0230_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0240.ets deleted file mode 100644 index 3c51a13487c028abdb1e54264c5453248bdfdcc6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0240.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0240 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0240') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0240_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0260.ets deleted file mode 100644 index e2ffcd8684e4c46a4e20f222b27ba1544eb8368c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0260.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0260 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0260') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0260_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0270.ets deleted file mode 100644 index 670e1680e943958548e1e91396785836f6682733..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0270.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0270 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addImageSpan(('cat.jpg'), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0270') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0270_01') - .onPaste(() => { - this.controller1.stopEditing(); - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0280.ets deleted file mode 100644 index 0bcbd258fdb375a0034c05c2bb6cd86ba60d06a2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0280.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0280 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人我是中国人', - { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0280') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0280_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0290.ets deleted file mode 100644 index 6e8f615ff116e280b3dbac28b35826c1aa8b56f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0290.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0290 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0290') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0290_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0300.ets deleted file mode 100644 index c013f96004c7c7866db53a82d85a5bea42d3431e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0300.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0300 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0300') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0300_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0310.ets deleted file mode 100644 index 81a04e7c47722fcf529b16dcdcba517a906f30d1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0310.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0310 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0310') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0310_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0320.ets deleted file mode 100644 index e5d31e8227009ee58bf0714e401c17e8190ad5f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0320.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0320 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人'+'\n'+'我是中国人'+'\n'+'我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0320') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0320_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0330.ets deleted file mode 100644 index 39992215b66957a8f802198b89e531e5253cd0aa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0330.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0330 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人'+'\n'+'我是中国人'+'\n'+'我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0330') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0330_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0340.ets deleted file mode 100644 index dbb7d83db5d68c2352c96507ebf84bf724cda92d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0340.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0340 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人'+'\n'+'我是中国人'+'\n'+'我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0340') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0340_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0350.ets deleted file mode 100644 index 957546b1bb11aa4ed442a58ebf61ddc49e5d096c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0350.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0350 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是中国人'+'\n'+'我是中国人'+'\n'+'我是中国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0350') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0350_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0360.ets deleted file mode 100644 index e30e9c83cd4bdb9afd7aa95e069d3809092862c4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0360.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0360 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0360') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0360_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0370.ets deleted file mode 100644 index 3f7ca426a002a6dd755777d0c560388336761628..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0370.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0370 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0370') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0370_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0380.ets deleted file mode 100644 index 762d1a3402b95bee42c416a98c72638e16a45922..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0380.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorShortKcutKeys0380 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - controller1: RichEditorController = new RichEditorController(); - options1: RichEditorOptions = { controller: this.controller1 }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .borderWidth(2) - .borderColor(Color.Blue) - .width('100%') - .height('30%') - .onReady(() => { - this.controller.addTextSpan('我是国人', { - }); - }) - .id('ComponentTextRicheditorShortKcutKeys0380') - - RichEditor(this.options1) - .width('100%') - .height('50%') - .borderWidth(2) - .borderColor(Color.Red) - .margin({top:20}) - .onReady(() => { - }) - .id('ComponentTextRicheditorShortKcutKeys0380_01') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0006.ets deleted file mode 100644 index ade2e51833be9dae5312bc34adeea2dc08044006..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0006.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - decoration:{color:Color.Red,type:TextDecorationType.Overline} - } - }) - }) - .key('ComponentTextRicheditorUxConformance0006') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0007.ets deleted file mode 100644 index 5ce9ba011cdd8c3a2459870a8066057c6283e863..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0007.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - fontColor:Color.Pink, - decoration:{color:Color.Red,type:TextDecorationType.Underline,style: TextDecorationStyle.SOLID } - } - }) - }) - .key('ComponentTextRicheditorUxConformance0007') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0011.ets deleted file mode 100644 index 33883ce4f0cc0ba1381e2027c51fc1d2afd7e188..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0011.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0011 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - }) - .align(Alignment.Center) - .id('ComponentTextRicheditorUxConformance0011') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0012.ets deleted file mode 100644 index 0ab7e842f9d05c09b6def0eb65a8ffc128c02699..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0012.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0012 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - }) - .key('ComponentTextRicheditorUxConformance0012') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0013.ets deleted file mode 100644 index 660ed546c18c2dee18563592e7dcca809bd1cfae..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0013.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0013 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - }) - .key('ComponentTextRicheditorUxConformance0013') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0014.ets deleted file mode 100644 index a028e3ce49388296f3fdd32b615a5b9017597ced..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0014.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0014 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - Button('select') - .id('select') - .width(100) - .height(50) - .onClick(() => { - this.controller.setSelection(-1, 3); - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - decoration: { color: Color.Red, type: TextDecorationType.Overline } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - }) - .key('ComponentTextRicheditorUxConformance0014') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0015.ets deleted file mode 100644 index 3a2dc251ef9cb25a1ec524982dc5a910d460f6ab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0015.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0015 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - Button('select') - .id('select') - .width(100) - .height(50) - .onClick(() => { - this.controller.setSelection(-1, 3); - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - decoration: { color: Color.Red, type: TextDecorationType.Overline } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - }) - .key('ComponentTextRicheditorUxConformance0015') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0016.ets deleted file mode 100644 index 1e14f943b68f0c314d60d23b7c47fb97c21dac41..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0016.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorUxConformance0016 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - Button('select') - .id('select') - .width(100) - .height(50) - .onClick(() => { - this.controller.setSelection(-1, 3); - }) - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('我是中国人', { - style: { - decoration: { color: Color.Red, type: TextDecorationType.Overline } - } - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"], - } - }); - }) - .key('ComponentTextRicheditorUxConformance0016') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0001.ets deleted file mode 100644 index d7d6030828f27f90e1386453290833df07440ed2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0001.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0001 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak 无属性设置-', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - let wordBreak = JSON.stringify(this.controller.getParagraphs({ start: -1, end: -1 })[0].style.wordBreak); - this.controller.addTextSpan('wordBreak不设置属性属性值:'+wordBreak, { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .key('ComponentTextRicheditorWordbreak0001') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0002.ets deleted file mode 100644 index 813d91cebc5926c023f3dbaf5be133e06e993a22..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0002.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0002 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak-', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak:WordBreak.NORMAL - } - }) - let wordBreak = JSON.stringify(this.controller.getParagraphs({ start: -1, end: -1 })[0].style.wordBreak); - this.controller.addTextSpan('wordBreak设置“WordBreak.NORMAL”属性值:'+wordBreak, { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .key('ComponentTextRicheditorWordbreak0002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0003.ets deleted file mode 100644 index 143854e424e3f2d165a80811a0739ea00df9e686..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0003.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0003 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak-', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak:-1 - } - }) - let wordBreak = JSON.stringify(this.controller.getParagraphs({ start: -1, end: -1 })[0].style.wordBreak); - this.controller.addTextSpan('wordBreak设置"-1"属性值:'+wordBreak, { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - } - }) - }) - .key('ComponentTextRicheditorWordbreak0003') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0004.ets deleted file mode 100644 index e05e68d42f28aa2f94e2a718339d3a09b77aeea6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0004.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0004 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak-', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak:WordBreak.NORMAL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0004') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.updateParagraphStyle({ start: -1, end: -1, - style: { - wordBreak:null - } - }) - let wordBreak = JSON.stringify(this.controller.getParagraphs({ start: -1, end: -1 })[0].style.wordBreak); - this.controller.addTextSpan('wordBreak更改为不设置属性值:'+wordBreak, { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 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/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0005.ets deleted file mode 100644 index d42f25ba0af2b5e705e569527aae2a9db11655a2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0005.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0005 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak-', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - }) - }) - .id('ComponentTextRicheditorWordbreak0005') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.updateParagraphStyle({ start: -1, end: -1, - style: { - wordBreak:WordBreak.BREAK_ALL - } - }) - let wordBreak = JSON.stringify(this.controller.getParagraphs({ start: -1, end: -1 })[0].style.wordBreak); - this.controller.addTextSpan('wordBreak设置WordBreak.BREAK_ALL属性值:'+wordBreak, { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 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/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0006.ets deleted file mode 100644 index 7f328e8e1737644c1ee24b90e758fa3d1949159a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0006.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0006 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak-', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - }) - }) - .id('ComponentTextRicheditorWordbreak0006') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.updateParagraphStyle({ start: -1, end: -1, - style: { - wordBreak:-1 - } - }); - let wordBreak = JSON.stringify(this.controller.getParagraphs({ start: -1, end: -1 })[0].style.wordBreak); - this.controller.addTextSpan('wordBreak设置-1属性值:'+wordBreak, { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 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/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0007.ets deleted file mode 100644 index 7584a12cab15e4ac7a28334b220beb14070bb143..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0007.ets +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0007 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - this.controller.addTextSpan('中国人あなたのことが好きです사랑해', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - - this.controller.addTextSpan('\uD83D\uDE00', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - this.controller.addTextSpan('#$%&@', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - { - - }); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorWordbreak0007') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0008.ets deleted file mode 100644 index e729a437230f764381c9d3fa40b6b2a2bf2cfc0d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0008.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0008 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_ALL - } - }) - this.controller.addTextSpan('中国人あなたのことが好きです사랑해', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_ALL - } - }) - - this.controller.addTextSpan('\uD83D\uDE00', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_ALL - } - }) - this.controller.addTextSpan('#$%&@', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_ALL - } - }) - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - { - }) - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }) - }) - .id('ComponentTextRicheditorWordbreak0008') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0009.ets deleted file mode 100644 index 2d2b137c933c9d1c5d0a34c50bd5ba7ec7f93ede..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0009.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0009 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_WORD - } - }); - this.controller.addTextSpan('中国人あなたのことが好きです사랑해', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_WORD - } - }); - - this.controller.addTextSpan('\uD83D\uDE00', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_WORD - } - }); - this.controller.addTextSpan('#$%&@', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.BREAK_WORD - } - }); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - { - }) - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }); - }) - .id('ComponentTextRicheditorWordbreak0009') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0010.ets deleted file mode 100644 index f526dba9196ff8c94656a2938ca0ad68fb341ac4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0010.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0010 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('testwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreak', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0010') - .clip(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/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0011.ets deleted file mode 100644 index 21e8da7a978b9b81f30e947307c2bf45ce059016..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0011.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0011 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('testwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbrea 中国人あなたのことが好きです사랑해中国人あなたのことが好きです사랑해testwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbrea中国人あなたのことが好きです사랑해中国人あなたのことが好きです사랑해testwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbreakwordbrea'+'\n'+'中国人あなたのことが好きです사랑해中国人あなたのことが好きです사랑해', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL|WordBreak.BREAK_ALL|WordBreak.BREAK_WORD - } - }) - }) - .id('ComponentTextRicheditorWordbreak0011') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0012.ets deleted file mode 100644 index 98a656328ad47cb326a2ddbc5f67fea4e398c3ca..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0012.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0012 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('rdbreakwordなたのことがなたのことがなたのことが', { - }) - }) - .id('ComponentTextRicheditorWordbreak0012') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.getUIContext().getFocusController().clearFocus(); - this.controller.updateParagraphStyle({ start:this.controller.getSpans().length,end:-1, - style: { - wordBreak:WordBreak.NORMAL - } - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0013.ets deleted file mode 100644 index 2e4eb98d9022a932aa64073a05c9bd7b73bf2fff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0013.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0013 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('rdbreakwordなたのことがなたのことがなたのことが', { - paragraphStyle:{ - wordBreak:WordBreak.BREAK_ALL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0013') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.getUIContext().getFocusController().clearFocus(); - this.controller.updateParagraphStyle({ start:this.controller.getSpans().length,end:-1, - style: { - wordBreak:WordBreak.NORMAL - } - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0014.ets deleted file mode 100644 index 86d5aeb7968aa19ef079f73a2ec097821a22fd22..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0014.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0014 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - }) - .id('ComponentTextRicheditorWordbreak0014') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.getUIContext().getFocusController().clearFocus(); - this.controller.updateParagraphStyle({ start:-1,end:-1, - style: { - wordBreak:WordBreak.NORMAL - } - }); - this.controller.updateParagraphStyle({ start:4,end:-1, - style: { - wordBreak:WordBreak.BREAK_ALL - } - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0015.ets deleted file mode 100644 index 010b2fedec556676abdef05502912c68fe6a8d3c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0015.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0015 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('rdbreakwordなたのことがなたのことがなたのことがrdbreakwordなたのことがなたのことがな 中国 たのことがrdb re akwordなたのことがなたのことがなたのことがrdbreakwordなたのことがなたのことがなたのことが', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL, - } - }) - }) - .id('ComponentTextRicheditorWordbreak0015') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.updateParagraphStyle({ start:20,end:50, - style: { - wordBreak:WordBreak.BREAK_ALL - } - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0016.ets deleted file mode 100644 index 0614cb8b264e09be5e64d5767801d5b77c193b81..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0016.ets +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0016 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - @State heightRich : number = 50; - @State widthRich : number = 300; - - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - this.controller.addTextSpan('中国人あなたのことが好きです사랑해jhsfdhhhhhjhjhh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - - this.controller.addTextSpan('\uD83D\uDE00', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - this.controller.addTextSpan('#$%&@', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle:{ - wordBreak:WordBreak.NORMAL - } - }); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - { - - }) - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }) - }) - .id('ComponentTextRicheditorWordbreak0016') - .width(this.widthRich) - .height(this.heightRich) - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.heightRich =100; - this.widthRich = 500; - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0017.ets deleted file mode 100644 index 93a5bca6d2805ebdb40fd4e1f3faa5ce09a2cf78..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0017.ets +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0017 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('test wordbreak', { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }); - this.controller.addTextSpan('中国人あなたのことが好きです사랑해jhsfdhhhhhjhjhh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }); - - this.controller.addTextSpan('\uD83D\uDE00', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }); - this.controller.addTextSpan('#$%&@', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }); - this.controller.addSymbolSpan($r("sys.symbol.ohos_trash"), - {}); - this.controller.addImageSpan(("cat.jpg"), - { - imageStyle: - { - size: ["57px", "57px"] - } - }) - }) - .id('ComponentTextRicheditorWordbreak0017') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.updateSpanStyle({ - textStyle: - { - fontSize: 40 - } - }) - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0018.ets deleted file mode 100644 index fd78dd44ae9f242e3b8da745d0a3833083c21480..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0018.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0018 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あな たのことが好きで す사랑해jhsfdhh hh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0018') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0019.ets deleted file mode 100644 index 1cfee944fd3de045beb145ec66d496184383d229..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0019.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0019 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あ', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0019') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0020.ets deleted file mode 100644 index 04e9a70d4a61748d698133c69f993036fb0262a6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0020.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0020 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あadffgsdgfdh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0020') - Button('updateParagraphStyle', { - buttonStyle: ButtonStyleMode.NORMAL - }) - .id('updateParagraphStyle') - .height(30) - .fontSize(13) - .onClick(() => { - this.controller.deleteSpans({ start:7,end:-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/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0021.ets deleted file mode 100644 index 88032312cf8c5d7722a707a3d84cc4ca8cb2eb36..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0021.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0021 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あadffgsdgfdh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0021') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0022.ets deleted file mode 100644 index 3bf22799602214fb7c342e1bd0c2f62eea77c76e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0022.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct ComponentTextRicheditorWordbreak0022 { - controller: RichEditorController = new RichEditorController(); - options: RichEditorOptions = { controller: this.controller }; - - build() { - Row() { - Column() { - TextArea({text:"我是TextArea"}).draggable(true).width(100).height(50).id('TextArea'); - RichEditor(this.options) - .onReady(() => { - this.controller.addTextSpan('中国人あadffgsdgfdh', - { - style: { - fontStyle: FontStyle.Normal, - fontColor: Color.Black, - fontSize: 15, - }, - paragraphStyle: { - wordBreak: WordBreak.NORMAL - } - }) - }) - .id('ComponentTextRicheditorWordbreak0022') - .draggable(true) - .width(200) - .height(50) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K012.ets deleted file mode 100644 index b4dbbb6b53fb287a6b41e7415434db195a858d94..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K012.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K012 { - - build() { - Row() { - Column() { - Button('promptAction.showActionMenu_showInSubWindow_true') - .id('FunctionJiChuSR000HUB4K0120') - .onClick(() => { - promptAction.showActionMenu({ - buttons: [{ - text: '对话框Button', - color: '#000' - }], - showInSubWindow: true - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K013.ets deleted file mode 100644 index 85b3980b95c0b9201218fde2cf3a1b954ef167a8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K013.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K013 { - - build() { - Row() { - Column() { - Button('promptAction.showActionMenu_showInSubWindow_false') - .id('FunctionJiChuSR000HUB4K0130') - .onClick(() => { - promptAction.showActionMenu({ - buttons: [{ - text: '对话框Button', - color: '#000' - }], - showInSubWindow: false - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K014.ets deleted file mode 100644 index 7b2e9de8aa54b37374c694692dab0720ed043d37..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K014.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K014 { - - build() { - Row() { - Column() { - Button('promptAction.showToast') - .id('FunctionJiChuSR000HUB4K0140') - .onClick(() => { - promptAction.showToast({ - message: '对话框显示', - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K015.ets deleted file mode 100644 index c383f8e7157b9528795119ad6d1286a357e267dd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K015.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K015 { - - build() { - Row() { - Column() { - Button('promptAction.showToast_showMode_TOPMOST') - .id('FunctionJiChuSR000HUB4K0150') - .onClick(() => { - promptAction.showToast({ - message: '对话框显示', - showMode: 1 - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K016.ets deleted file mode 100644 index 35e0178cf47cb9daefaee6017b089a8b1cebc34e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K016.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K016 { - - build() { - Row() { - Column() { - Button('promptAction.showToast_showMode_DEFAULT') - .id('FunctionJiChuSR000HUB4K0160') - .onClick(() => { - promptAction.showToast({ - message: '对话框显示', - showMode: 0 - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K017.ets deleted file mode 100644 index 3c668e0ceb2f4f9411989159334557935d7f5e7f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K017.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K017 { - - build() { - Row() { - Column() { - Button('promptAction.showToast_message_Resource') - .id('FunctionJiChuSR000HUB4K0170') - .onClick(() => { - promptAction.showToast({ - message: getContext().resourceManager.getStringSync($r("app.string.toast_message_1")), - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K018.ets deleted file mode 100644 index 815e5cd5c96cf2dd676963c129d23c5ce74ae9a9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K018.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K018 { - - build() { - Row() { - Column() { - Button('promptAction.showToast_message超长') - .id('FunctionJiChuSR000HUB4K0180') - .onClick(() => { - promptAction.showToast({ - message: "In the realm of collaborative projects, effective communication is paramount. It serves as the cornerstone for success, ensuring that all team members are aligned with the project's vision and goals. When communication is clear and transparent, it fosters an environment where ideas can flow freely, and misunderstandings are minimized. Team members can leverage their diverse skill sets to contribute to the project, knowing that their input is valued and will be heard. Moreover, good communication allows for the timely resolution of conflicts, which is crucial in maintaining team morale and momentum. It also enables the project to stay on track, as updates and changes can be disseminated quickly, keeping everyone informed and able to adapt accordingly. In essence, communication is not just a means to an end in team projects; it is the lifeblood that sustains the team's progress and unity towards achieving their collective objectives.\n", - bottom: '80vp', - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K019.ets deleted file mode 100644 index 2a933d24788e2f5ed1da1505ec8ca52363254f6f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K019.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K019 { - - build() { - Row() { - Column() { - Button('showToast_message_string') - .id('FunctionJiChuSR000HUB4K0190') - .onClick(() => { - promptAction.showToast({ - message: 'chang an de荔枝', - - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K020.ets deleted file mode 100644 index bea2771ca1dfa32accdf7ffe65f50f9438ce3abb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K020.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K020 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog({})') - .id('FunctionJiChuSR000HUB4K0200') - .onClick(() => { - promptAction.showToast({ - message: getContext().resourceManager.getStringSync($r("app.string.toast_message_1")), - - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K021.ets deleted file mode 100644 index 482592b414e1e5c7b230175b09d2a66c074f487f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K021.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K021 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_Resource_超长') - .id('FunctionJiChuSR000HUB4K0210') - .onClick(() => { - promptAction.showDialog({ - message: getContext().resourceManager.getStringSync($r("app.string.Very_long_text")), - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K022.ets deleted file mode 100644 index ed702cd4dd673c7be5b71ae2211a0823f1086e15..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K022.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K022 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_Top') - .id('FunctionJiChuSR000HUB4K0220') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.Top - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K023.ets deleted file mode 100644 index 13cad1e9451773cd8b5ee3a2391dd9c2a308037c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K023.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K023 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_Center') - .id('FunctionJiChuSR000HUB4K0230') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.Center - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K024.ets deleted file mode 100644 index ed6d2ed036e98c7df961aac54b7e8ff1a2ba781e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K024.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K024 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_Bottom') - .id('FunctionJiChuSR000HUB4K0240') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.Bottom - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K025.ets deleted file mode 100644 index 93b3d703cd726f0617daafdbf85db88336bdb0b1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K025.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K025 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_Default') - .id('FunctionJiChuSR000HUB4K0250') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.Default - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K026.ets deleted file mode 100644 index 7d65824c41c442eb03cc6b5ae3d7506a8a3a59a5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K026.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K026 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_TopStart') - .id('FunctionJiChuSR000HUB4K0260') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.TopStart - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K027.ets deleted file mode 100644 index c5bb67e5f91f691937fe40abac7f8197b5aac373..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K027.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K027 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_TopEnd') - .id('FunctionJiChuSR000HUB4K0270') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.TopEnd - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K028.ets deleted file mode 100644 index 58037c911d57b030a6c7faeb3efd08818d7e5c4e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K028.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K028 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_CenterStart') - .id('FunctionJiChuSR000HUB4K0280') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.CenterStart, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K029.ets deleted file mode 100644 index 6889b1fe5a6e0e2e3d28a9e3e11fdd119489c6b7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K029.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K029 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_CenterEnd') - .id('FunctionJiChuSR000HUB4K0290') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.CenterEnd, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K030.ets deleted file mode 100644 index 3a390ac0c473d35794c902ff44c8a7f9f47a445e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K030.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K030 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_BottomStart') - .id('FunctionJiChuSR000HUB4K0300') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.BottomStart, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K031.ets deleted file mode 100644 index c2d8fc9a5a45c51efa604b8dcd5be5b90cfc4479..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K031.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K031 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_alignment_BottomEnd') - .id('FunctionJiChuSR000HUB4K0310') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - alignment: DialogAlignment.BottomEnd, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K032.ets deleted file mode 100644 index 532424eac2ef5805cc88087f7b15d05f812d6d10..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K032.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K032 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_isModal_false') - .id('FunctionJiChuSR000HUB4K0320') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - isModal: false - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K033.ets deleted file mode 100644 index 98ca2e070d0b30ac727603c16f599514fceb8d14..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K033.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K033 { - - build() { - Row() { - Column() { - Button('promptAction.showDialog_isModal_true') - .id('FunctionJiChuSR000HUB4K0330') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - isModal: true - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K034.ets deleted file mode 100644 index 37b9fe897972d6e0f1673b6b9c2d74a298f24010..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K034.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K034 { - - build() { - Row() { - Column() { - Button('offset_Resource') - .id('FunctionJiChuSR000HUB4K0340') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - offset: { - dx: getContext().resourceManager.getNumber($r("app.integer.30")), - dy: getContext().resourceManager.getNumber($r("app.integer.30")) - } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K035.ets deleted file mode 100644 index c0c58a4d5495110e6f8233e91e4b9e852e87fddf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K035.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K035 { - - build() { - Row() { - Column() { - Button('offset_string') - .id('FunctionJiChuSR000HUB4K0350') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - offset: { - dx: '30%', - dy: '30%' - } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K036.ets deleted file mode 100644 index 59546ba5eaeea39d33889eae33100a820c599181..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K036.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K036 { - - build() { - Row() { - Column() { - Button('promptAction.offset_Number') - .id('FunctionJiChuSR000HUB4K0360') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - offset: { - dx: 50.5, - dy: -50.5 - } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K037.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K037.ets deleted file mode 100644 index a58e25d4faa6bb2da9da83e18a9707616e6a85ee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K037.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K037 { - build() { - Row() { - Column() { - Button('maskRect_MaskRect{}') - .id('FunctionJiChuSR000HUB4K0370') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: {} - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K038.ets deleted file mode 100644 index ce0edb86578278de1192dc0d5692f433d8b3a06e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K038.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K038 { - build() { - Row() { - Column() { - Button('maskRect_string_x50px') - .id('FunctionJiChuSR000HUB4K0380') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { x: '50px', width: '50px', height: '50px' }, - backgroundColor: Color.Blue - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K039.ets deleted file mode 100644 index fc3b2ea2bddfb23b7b3ddb85ff4c18147b7496fa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K039.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K039 { - build() { - Row() { - Column() { - Button('maskRect_string_x') - .id('FunctionJiChuSR000HUB4K0390') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { x: '', width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K040.ets deleted file mode 100644 index 1f00d1dc86f6ccafeace28d63cba56d078b787c6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K040.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K040 { - build() { - Row() { - Column() { - Button('maskRect_number_x:100') - .id('FunctionJiChuSR000HUB4K0400') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { x: 100, width: '50px', height: '50px'} - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K041.ets deleted file mode 100644 index 4124e377fe7555f4176f47c6e21a43c96464bcad..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K041.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K041 { - build() { - Row() { - Column() { - Button('maskRect_Resource_x$r(50%)') - .id('FunctionJiChuSR000HUB4K0410') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { x: getContext().resourceManager.getStringSync($r("app.string.50_percent")), width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K042.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K042.ets deleted file mode 100644 index 338c6ad88e7442aac576b30b35312d3aa5d7f2d2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K042.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K042 { - build() { - Row() { - Column() { - Button('maskRect_x:NULL') - .id('FunctionJiChuSR000HUB4K0420') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { x: null, width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K043.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K043.ets deleted file mode 100644 index 816b25083f2e6ba965b46d6a919215484e91add4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K043.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K043 { - build() { - Row() { - Column() { - Button('maskRect_string_y60%') - .id('FunctionJiChuSR000HUB4K0430') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { y: '60%', width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K044.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K044.ets deleted file mode 100644 index 1cee240ce50aad31019aed36d5fe36a8b48af2a8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K044.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K044 { - build() { - Row() { - Column() { - Button('maskRect_string_y') - .id('FunctionJiChuSR000HUB4K0440') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { y: '', width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K045.ets deleted file mode 100644 index b5336d2b9b63b726ceee9bbd1926435041757d75..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K045.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K045 { - build() { - Row() { - Column() { - Button('maskRect_number_y-100') - .id('FunctionJiChuSR000HUB4K0450') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { y: -100, width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K046.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K046.ets deleted file mode 100644 index 3a070c3358ae7b9934d40e680758d3d1b3e5eb31..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K046.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K046 { - build() { - Row() { - Column() { - Button('maskRect_Resource_y:$r(200px)') - .id('FunctionJiChuSR000HUB4K0460') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { y: getContext().resourceManager.getStringSync($r("app.string.string_200px")), width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K047.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K047.ets deleted file mode 100644 index 66b54726ae643e4f14774925c472abb965cd7fe2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K047.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K047 { - build() { - Row() { - Column() { - Button('maskRect_yUndefined') - .id('FunctionJiChuSR000HUB4K0470') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { y: undefined, width: '50px', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K048.ets deleted file mode 100644 index a760e90a30dea4d635c9e324e38d7fa85700b257..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K048.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K048 { - build() { - Row() { - Column() { - Button('maskRect_string_width:40%') - .id('FunctionJiChuSR000HUB4K0480') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: '40%', height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K049.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K049.ets deleted file mode 100644 index 458c1f455ffbc5e99c635c78b773f5cd697f358f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K049.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K049 { - build() { - Row() { - Column() { - Button('maskRect_number_width:200') - .id('FunctionJiChuSR000HUB4K0490') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: 200, height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K050.ets deleted file mode 100644 index 07ff7eb4746531b951e0f7d1f2f4c54746a0c911..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K050.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K050 { - build() { - Row() { - Column() { - Button('maskRect_Resource_width $r(300px)') - .id('FunctionJiChuSR000HUB4K0500') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: getContext().resourceManager.getStringSync($r("app.string.string_300px")), height: '50px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K051.ets deleted file mode 100644 index 152d9bc675b48344b7e3fdea73bdec7d40ffafe2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K051.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K051 { - build() { - Row() { - Column() { - Button('maskRect_width:-200') - .id('FunctionJiChuSR000HUB4K0510') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: '50px', height: -200 } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K052.ets deleted file mode 100644 index 2f11872733c4b93f026b291ee4dde07b82621545..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K052.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K052 { - build() { - Row() { - Column() { - Button('maskRect_string_height:200px') - .id('FunctionJiChuSR000HUB4K0520') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: '50px', height: '200px' } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K053.ets deleted file mode 100644 index 349322a59e24f45804274a3aca3662974a832212..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K053.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K053 { - build() { - Row() { - Column() { - Button('maskRect_string_height:200') - .id('FunctionJiChuSR000HUB4K0530') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: '50px', height: 200 } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K054.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K054.ets deleted file mode 100644 index d8f5bba23bdd8009dfa31181a6005c77f731a5ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K054.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K054 { - build() { - Row() { - Column() { - Button('maskRect_Resource_height$r(60%)') - .id('FunctionJiChuSR000HUB4K0540') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: '50px', height: getContext().resourceManager.getStringSync($r("app.string.60_percent")) } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K055.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K055.ets deleted file mode 100644 index 6853c6b30e3aaf52dced08169d2c6388423212eb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K055.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K055 { - build() { - Row() { - Column() { - Button('maskRect_height:-60%') - .id('FunctionJiChuSR000HUB4K0550') - .onClick(() => { - promptAction.showDialog({ - message: '对话框显示', - maskRect: { width: '50px', height: getContext().resourceManager.getStringSync($r("app.string.60_negative_percent")) } - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K056.ets deleted file mode 100644 index e947b4a61211ad105de5e1a4623ad02fa076c30b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K056.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@kit.BasicServicesKit'; -import { promptAction } from '@kit.ArkUI'; - -@Entry -@Component -struct FunctionJiChuSR000HUB4K056 { - build() { - Row() { - Column() { - Button('promptAction.showActionMenu_只配置buttons') - .id('FunctionJiChuSR000HUB4K0560') - .onClick(() => { - try { - promptAction.showActionMenu({ - buttons: [{ - text: '对话框Button', - color: '#000000' - }] - }, (err, data) => { - if (err) { - console.info('showActionMenu err: ' + err); - return; - } - console.info('showActionMenu success callback, click button: ' + data.index); - }) - } catch (error) { - let message = (error as BusinessError).message - let code = (error as BusinessError).code - console.error(`showActionMenu args error code is ${code}, message is ${message}`); - }; - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K057.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K057.ets deleted file mode 100644 index 365ca152e6473723d3b4040b2c80e081e9052038..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K057.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K057 { - build() { - Row() { - Column() { - Button('promptAction.showActionMenu_title_Resource') - .id('FunctionJiChuSR000HUB4K0570') - .onClick(() => { - promptAction.showActionMenu({ - buttons: [{ - text: getContext().resourceManager.getStringSync($r("app.string.toast_message_2")), - color: '#000' - }] - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K058.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K058.ets deleted file mode 100644 index ba601c184054075d986c0cc14571a6febb3c2c05..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K058.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K058 { - build() { - Row() { - Column() { - Button('isModal_false') - .id('FunctionJiChuSR000HUB4K0580') - .onClick(() => { - promptAction.showActionMenu({ - buttons: [{ - text: '对话框Button', - color: '#000' - }], - isModal: false - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K059.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K059.ets deleted file mode 100644 index 031a977908fe7ff1e6f334d06b39ddac0a7d47c8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K059.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K059 { - build() { - Row() { - Column() { - Button('isModal_true') - .id('FunctionJiChuSR000HUB4K0590') - .onClick(() => { - promptAction.showActionMenu({ - buttons: [{ - text: '对话框Button', - color: '#000' - }], - isModal: true - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K060.ets deleted file mode 100644 index 00c8d60b5a7cfaaf99824b757b8b7f821fbce16d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K060.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K060 { - build() { - Row() { - Column() { - Button('promptActon.showActionMenu_Buttons_text_Resource') - .id('FunctionJiChuSR000HUB4K0600') - .onClick(() => { - promptAction.showActionMenu({ - buttons: [{ - text: getContext().resourceManager.getStringSync($r("app.string.toast_message_3")), - color: '#000' - }], - isModal: true - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K061.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K061.ets deleted file mode 100644 index f0705b365fe7e0f6143dcfa0170847f7247f2a67..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K061.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K061 { - - build() { - Row() { - Column() { - Button('promptAction.showActionMenu_Buttons_text超长') - .id('FunctionJiChuSR000HUB4K0610') - .onClick(() => { - promptAction.showActionMenu({ - title: '对话框显示', - buttons: [ - { - text: 'dsanddewodoejdklsklcpdsjocewjdsfdsfdsfdsafoifhowhfddhviodbnsiuvbfuivhfuidovpfhyudvhfoidhvioufhdviohfpdiohvfiufgewogfbuiewbofygvibpuifhdiugvrf7uyav6gtiy8ufgduiovhfpduitgavut6ewfucvehwf0gr09iur0eokgvfd7gv87f9d74g8fd48g79re456g1bvr5ea64bv8re94ab8pocjopejcrekfirevopktrpovjiopravcewfijepowifjieowfopiewjofpjeropf', - color: `${getContext().resourceManager.getColorSync($r("app.color.Pink"))}` - } - ] - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K062.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K062.ets deleted file mode 100644 index 0a7a1c20bf280c08567b3941370305fe4e5fd1b2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K062.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 FunctionJiChuSR000HUB4K062 { - - build() { - Row() { - Column() { - Button('promptAction.showActionMenu_Buttons_color_Resource') - .id('FunctionJiChuSR000HUB4K0620') - .onClick(() => { - promptAction.showActionMenu({ - title: '对话框显示', - buttons: [ - { - text: '对话框Button', - color: `${getContext().resourceManager.getColorSync($r("app.color.Pink"))}` - } - ] - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow001806.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow001806.ets deleted file mode 100644 index 72e2fb54e7d6c1a14a8134666054eeda7c622a01..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow001806.ets +++ /dev/null @@ -1,273 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 20; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - Image('res/waterFlowTest(' + this.item % 5 + ').jpg') - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } -} -@Builder function MyGlobalBuilderFunction() -{ - Column({ space: 2 }) { - Text("WaterFlow End...").fontSize(12).height('16') - } -} -@Entry -@Component -struct FunctionJichuWaterFlow001806 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - footer: CustomBuilder = MyGlobalBuilderFunction - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 1, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 20] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 2, - crossCount: 2, - onGetItemMainSizeByIndex: (index: number) => { - return 20 - } - } - lastSection: SectionOptions = { - itemsCount: 20, - crossCount: 2, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 20] - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 20; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (this.dataCount - count < 20) { - this.lastSection.itemsCount = this.dataCount - count - sectionOptions.push(this.lastSection) - break; - } - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - WaterFlow({ footer: this.footer, scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - .id('FunctionJichuWaterFlow001806_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow0350.ets deleted file mode 100644 index 2d6b4ed40209d5bb3be0bd480f09376a3092a693..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow0350.ets +++ /dev/null @@ -1,283 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 100; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - Image('res/waterFlowTest(' + this.item % 5 + ').jpg') - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } -} -@Builder function MyGlobalBuilderFunction() -{ - -} -@Entry -@Component -struct FunctionJichuWaterFlow0350 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - footer: CustomBuilder = MyGlobalBuilderFunction - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 1, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 2, - crossCount: 2, - onGetItemMainSizeByIndex: (index: number) => { - return 100 - } - } - lastSection: SectionOptions = { - itemsCount: 20, - crossCount: 2, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 100; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (this.dataCount - count < 20) { - this.lastSection.itemsCount = this.dataCount - count - sectionOptions.push(this.lastSection) - break; - } - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - WaterFlow({ footer: this.footer, scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - .onScrollIndex((first: number, last: number) => { - // 即将触底时提前增加数据 - if (last + 20 >= this.dataSource.totalCount()) { - for (let i = 0; i < 100; i++) { - this.dataSource.addLastItem() - } - // 更新数据源后同步更新sections,修改最后一个section的FlowItem数量 - const sections: Array = this.sections.values(); - let newSection: SectionOptions = sections[this.sections.length() - 1]; - newSection.itemsCount += 100; - this.sections.update(-1, newSection); - } - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerBelievable/StatusManagerBelievable0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerBelievable/StatusManagerBelievable0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..df83f48773e6de065690f4b94c97577719d9e576 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/StatusManagerBelievable/StatusManagerBelievable0010.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. + */ + +@Builder +function MyBuilder(value: string, size: number) { + Column() { + Text(value) + .fontSize(size) + }.backgroundColor(Color.Gray) +} + +let globalBuilder: WrappedBuilder<[string, number]> = wrapBuilder(MyBuilder); + +@Entry +@Component +struct StatusManagerBelievable0010 { + @State message: string = 'Test wrapBuilder'; + + build() { + Row() { + Column() { + globalBuilder.builder(this.message, 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/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test124.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test124.ets deleted file mode 100644 index 2f2572051e7f49a67a30964d19e1ef0539bd9e6c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test124.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct TsComponentSR000HRP34_124 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {color: Color.Blue}, - }) - }) - .id("TsComponentSR000HRP34_124_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test125.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test125.ets deleted file mode 100644 index cccd5ac76a73256a35c037b063ee06154f2ede9c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test125.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct TsComponentSR000HRP34_125 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {color: 0x0000ff}, - }) - }) - .id("TsComponentSR000HRP34_125_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test126.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test126.ets deleted file mode 100644 index 597851dae92f5d8c149b0858b261fa050364b8b1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test126.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct TsComponentSR000HRP34_126 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {color: "rgb(255,0,0)"}, - }) - }) - .id("TsComponentSR000HRP34_126_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test127.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test127.ets deleted file mode 100644 index bda237a2bb7eac2a8f5adcc5ba9eae8ab19bb6ca..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test127.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct TsComponentSR000HRP34_127 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {color: getContext().resourceManager.getColorSync($r("app.color.blue"))}, - }) - }) - .id("TsComponentSR000HRP34_127_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree032.ets new file mode 100644 index 0000000000000000000000000000000000000000..4687a38fb478ec921d5b9eef55f6d2a912235f88 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree032.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 UIAttributesStateStylesInterfaceEditableTextThree032 { + controller: TextInputController = new TextInputController() + @State inputValue: string = "" + + @Builder CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item:number|string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + TextInput({ controller: this.controller, text: this.inputValue }) + .id('inputComponent') + .customKeyboard(this.CustomKeyboardBuilder()).margin(10).border({ width: 1 }).height('48vp') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree061.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree061.ets new file mode 100644 index 0000000000000000000000000000000000000000..7062775b24d56dd29ee544de9ded6ae3dafd8985 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree061.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 UIAttributesStateStylesInterfaceEditableTextThree061 { + controller: TextAreaController = new TextAreaController(); + @State inputValue: string = ""; + + @Builder CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item:number|string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + TextArea({ controller: this.controller, text: this.inputValue}) + .id('textAreaComponent') + .customKeyboard(this.CustomKeyboardBuilder()).margin(10).border({ width: 1 }) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree075.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree075.ets new file mode 100644 index 0000000000000000000000000000000000000000..7953294671dc2b15768ca3de632a838f3d1acf88 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree075.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 UIAttributesStateStylesInterfaceEditableTextThree075 { + controller: SearchController = new SearchController() + @State inputValue: string = ""; + @State isEditChange: string = ''; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .customKeyboard(this.CustomKeyboardBuilder()) + .margin(10) + .border({ width: 1 }) + .onEditChange((bool) => { + this.isEditChange = 'textInputOne onEditChange:' + bool + }) + .focusable(true) + + Text(this.isEditChange) + .margin({ bottom: 20 }) + + Button('clearFocus') + .id('clearFocus') + .width(200) + .height(50) + .fontColor(Color.White) + .backgroundColor(Color.Blue) + .onClick(() => { + this.getUIContext().getFocusController().clearFocus() + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree090.ets new file mode 100644 index 0000000000000000000000000000000000000000..b91278d64df7c148ed3020a42bf02e769603a84b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree090.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 UIAttributesStateStylesInterfaceEditableTextThree090 { + controller: SearchController = new SearchController() + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .customKeyboard(this.CustomKeyboardBuilder()) + .margin(10) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree092.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree092.ets new file mode 100644 index 0000000000000000000000000000000000000000..e78de7b97a4dea0f9ea5691cc984d81e077a8563 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree092.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 UIAttributesStateStylesInterfaceEditableTextThree092 { + controller: SearchController = new SearchController(); + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .customKeyboard(this.CustomKeyboardBuilder()) + .margin(10) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree101.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree101.ets new file mode 100644 index 0000000000000000000000000000000000000000..e935b316696ae02e6ac3ef71f08a66b3b64c4e00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree101.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 UIAttributesStateStylesInterfaceEditableTextThree101 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .enableKeyboardOnFocus(true) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree103.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree103.ets new file mode 100644 index 0000000000000000000000000000000000000000..b1bd79ffca85c4d9214ec9d68324c187ef1775f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree103.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 UIAttributesStateStylesInterfaceEditableTextThree103 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .enableKeyboardOnFocus(true) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree104.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree104.ets new file mode 100644 index 0000000000000000000000000000000000000000..024e905eb9cbf3fdeac58aa9266603a721f07b0d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree104.ets @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIAttributesStateStylesInterfaceEditableTextThree104 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .enableKeyboardOnFocus(true) + .copyOptions(CopyOptions.LocalDevice) + .onCopy((event:CopyEvent) => { + promptAction.showToast({ message: 'onCopy功能生效' }) + }) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree105.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree105.ets new file mode 100644 index 0000000000000000000000000000000000000000..17749925e8b6c9feb3dae6c5c3ba25a9d701ba9c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree105.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 UIAttributesStateStylesInterfaceEditableTextThree105 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .onEditingChange((isEditing: boolean) => { + promptAction.showToast({ message: "Current Editing Status:" + isEditing }) + }) + .border({ width: 1 }) + .margin({ bottom: 20 }) + + Button('clearFocus') + .id('clearFocus') + .width(200) + .height(50) + .fontColor(Color.White) + .backgroundColor(Color.Blue) + .onClick(() => { + this.getUIContext().getFocusController().clearFocus(); + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree106.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree106.ets new file mode 100644 index 0000000000000000000000000000000000000000..465356d3bbfd19385411f3f4e27d5a69f187254e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree106.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 UIAttributesStateStylesInterfaceEditableTextThree106 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ''; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + '') + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .onEditingChange((isEditing: boolean) => { + promptAction.showToast({ message: 'Current Editing Status:' + isEditing }) + }) + .border({ width: 1 }) + .margin({ bottom: 20 }) + + Button('clearFocus') + .id('clearFocus') + .width(200) + .height(50) + .fontColor(Color.White) + .backgroundColor(Color.Blue) + .onClick(() => { + this.getUIContext().getFocusController().clearFocus(); + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree113.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree113.ets new file mode 100644 index 0000000000000000000000000000000000000000..dc35e2e2b62087d61f704dfc7937032218cca81e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree113.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 UIAttributesStateStylesInterfaceEditableTextThree113 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x').onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .border({ width: 1 }) + .margin({ bottom: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree117.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree117.ets new file mode 100644 index 0000000000000000000000000000000000000000..aa85ec1efa03fd97d24754899b044db8b0e1e096 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree117.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 UIAttributesStateStylesInterfaceEditableTextThree117 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x') + .id('closeButton') + .onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .border({ width: 1 }) + .margin({ bottom: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree120.ets new file mode 100644 index 0000000000000000000000000000000000000000..caeede1f7330a40067a782e29f6379d83edf68f3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree120.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 UIAttributesStateStylesInterfaceEditableTextThree120 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + @State inputValue: string = ""; + + @Builder + CustomKeyboardBuilder() { + Column() { + Button('x') + .id('closeButton') + .onClick(() => { + this.controller.stopEditing() + }) + Grid() { + ForEach([1, 2, 3, 4, 5, 6, 7, 8, 9, '*', 0, '#'], (item: number | string) => { + GridItem() { + Button(item + "") + .width(110).onClick(() => { + this.inputValue += item + }) + } + }) + }.maxCount(3).columnsGap(10).rowsGap(10).padding(5) + }.backgroundColor(Color.Gray) + } + + build() { + Column() { + RichEditor(this.options) + .customKeyboard(this.CustomKeyboardBuilder()) + .id('richEditorComponent') + .border({ width: 1 }) + .margin({ bottom: 20 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage001.ets new file mode 100644 index 0000000000000000000000000000000000000000..963fc13f45d3f2276459c3bfe9ac8d8fc54a3a0e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage001.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'; + +@Entry +@Component +struct UIComponentAttributeImage001 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: StyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.controller.setStyledString(this.styleString) + } + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage002.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2cdba76f0ed281cf4a1600910489b2876bcdf5a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage002.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 { image } from '@kit.ImageKit'; + + +@Entry +@Component +struct UIComponentAttributeImage002 { + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + controller3: TextController = new TextController(); + controller4: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString1: StyledString | undefined = undefined; + styleString2: StyledString | undefined = undefined; + styleString3: StyledString | undefined = undefined; + styleString4: StyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString1 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: '10px', height: '10px' }, + })); + this.controller1.setStyledString(this.styleString1); + + this.styleString2 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: '10vp', height: '10vp' }, + })); + this.controller2.setStyledString(this.styleString2); + + this.styleString3 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: '10lpx', height: '10lpx' }, + })); + this.controller3.setStyledString(this.styleString3); + + this.styleString4 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: '10%', height: '10%' }, + })); + this.controller4.setStyledString(this.styleString4); + } + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) + .margin({ bottom: 10 }) + Text(undefined, { controller: this.controller2 }) + .margin({ bottom: 10 }) + Text(undefined, { controller: this.controller3 }) + .margin({ bottom: 10 }) + Text(undefined, { controller: this.controller4 }) + .margin({ bottom: 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/UIComponentAttributeImage/UIComponentAttributeImage003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage003.ets new file mode 100644 index 0000000000000000000000000000000000000000..b98eafc1300ae5848722e407665d7c9545e33234 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage003.ets @@ -0,0 +1,117 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage003 { + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + controller3: TextController = new TextController(); + controller4: TextController = new TextController(); + controller5: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString1: MutableStyledString | undefined = undefined; + styleString2: MutableStyledString | undefined = undefined; + styleString3: MutableStyledString | undefined = undefined; + styleString4: MutableStyledString | undefined = undefined; + styleString5: MutableStyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + let paragraphStyledStr: MutableStyledString = new MutableStyledString("这是一个文本信息"); + this.styleString1 = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + verticalAlign: ImageSpanAlignment.TOP, + })) + this.styleString1.appendStyledString(paragraphStyledStr); + this.controller1.setStyledString(this.styleString1); + + this.styleString2 = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + verticalAlign: ImageSpanAlignment.CENTER, + })) + this.styleString2.appendStyledString(paragraphStyledStr); + this.controller2.setStyledString(this.styleString2); + + this.styleString3 = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + verticalAlign: ImageSpanAlignment.BOTTOM, + })) + this.styleString3.appendStyledString(paragraphStyledStr); + this.controller3.setStyledString(this.styleString3); + + this.styleString4 = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + verticalAlign: ImageSpanAlignment.BASELINE, + })) + this.styleString4.appendStyledString(paragraphStyledStr); + this.controller4.setStyledString(this.styleString4); + + this.styleString5 = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + verticalAlign: undefined, + })) + this.styleString5.appendStyledString(paragraphStyledStr); + this.controller5.setStyledString(this.styleString5); + } + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller1 }) { + } + .margin({ bottom: 10 }) + + Text(undefined, { controller: this.controller2 }) { + } + .margin({ bottom: 10 }) + + Text(undefined, { controller: this.controller3 }) { + } + .margin({ bottom: 10 }) + + Text(undefined, { controller: this.controller4 }) { + } + .margin({ bottom: 10 }) + + Text(undefined, { controller: this.controller5 }) { + } + .margin({ bottom: 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/UIComponentAttributeImage/UIComponentAttributeImage004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage004.ets new file mode 100644 index 0000000000000000000000000000000000000000..ae7be008d1c1ea25bc22766da9f6e8fcd15220fe --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage004.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 { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage004 { + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + controller3: TextController = new TextController(); + controller4: TextController = new TextController(); + controller5: TextController = new TextController(); + controller6: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString1: StyledString | undefined = undefined; + styleString2: StyledString | undefined = undefined; + styleString3: StyledString | undefined = undefined; + styleString4: StyledString | undefined = undefined; + styleString5: StyledString | undefined = undefined; + styleString6: StyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString1 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + objectFit: ImageFit.Contain + })); + this.controller1.setStyledString(this.styleString1); + + this.styleString2 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + objectFit: ImageFit.Cover + })); + this.controller2.setStyledString(this.styleString2); + + this.styleString3 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + objectFit: ImageFit.Auto + })); + this.controller3.setStyledString(this.styleString3); + + this.styleString4 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + objectFit: ImageFit.Fill + })); + this.controller4.setStyledString(this.styleString4); + + this.styleString5 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + objectFit: ImageFit.ScaleDown + })); + this.controller5.setStyledString(this.styleString5); + + this.styleString6 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + objectFit: ImageFit.None + })); + this.controller6.setStyledString(this.styleString6); + } + } + + build() { + Row() { + Column() { + Row() { + Text(undefined, { controller: this.controller1 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller2 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + + Row() { + Text(undefined, { controller: this.controller3 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller4 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + + Row() { + Text(undefined, { controller: this.controller5 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller6 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage005.ets new file mode 100644 index 0000000000000000000000000000000000000000..89a49261583fc210c61823a542b475f417c51924 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage005.ets @@ -0,0 +1,160 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; +import { LengthUnit } from '@kit.ArkUI'; + + +@Entry +@Component +struct UIComponentAttributeImage005 { + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + controller3: TextController = new TextController(); + controller4: TextController = new TextController(); + controller5: TextController = new TextController(); + controller6: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString1: StyledString | undefined = undefined; + styleString2: StyledString | undefined = undefined; + styleString3: StyledString | undefined = undefined; + styleString4: StyledString | undefined = undefined; + styleString5: StyledString | undefined = undefined; + styleString6: StyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString1 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + margin: { + value: 10, + unit: LengthUnit.PX + } + } + })); + this.controller1.setStyledString(this.styleString1); + + this.styleString2 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + margin: { + value: 10, + unit: LengthUnit.VP + } + } + })); + this.controller2.setStyledString(this.styleString2); + + this.styleString3 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + margin: { + value: 10, + unit: LengthUnit.FP + } + } + })); + this.controller3.setStyledString(this.styleString3); + + this.styleString4 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + margin: { + value: 10, + unit: LengthUnit.LPX + } + } + })); + this.controller4.setStyledString(this.styleString4); + + this.styleString5 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + margin: { + value: 10, + unit: LengthUnit.PERCENT + } + } + })); + this.controller5.setStyledString(this.styleString5); + + this.styleString6 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + margin: { + right: '10abc', + left: '10abc', + top: '10abc', + bottom: '10abc' + } + } + })); + this.controller6.setStyledString(this.styleString6); + } + } + + build() { + Row() { + Column() { + Row() { + Text(undefined, { controller: this.controller1 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller2 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + + Row() { + Text(undefined, { controller: this.controller3 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller4 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + + Row() { + Text(undefined, { controller: this.controller5 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller6 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage006.ets new file mode 100644 index 0000000000000000000000000000000000000000..91a128735b1809aa288265004de045d8a1f7ded0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage006.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage006 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: StyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + layoutStyle: { + margin: { + bottom: '20vp', + top: '10vp', + left: '10vp', + right: '20vp' + } + } + })); + this.controller.setStyledString(this.styleString) + } + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .border({ width: 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/UIComponentAttributeImage/UIComponentAttributeImage007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage007.ets new file mode 100644 index 0000000000000000000000000000000000000000..2c7d19c2d6aa227f1ce4775a9d525f973b9bd7bf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage007.ets @@ -0,0 +1,159 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES 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 { LengthUnit } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentAttributeImage007 { + controller1: TextController = new TextController(); + controller2: TextController = new TextController(); + controller3: TextController = new TextController(); + controller4: TextController = new TextController(); + controller5: TextController = new TextController(); + controller6: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString1: StyledString | undefined = undefined; + styleString2: StyledString | undefined = undefined; + styleString3: StyledString | undefined = undefined; + styleString4: StyledString | undefined = undefined; + styleString5: StyledString | undefined = undefined; + styleString6: StyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString1 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + padding: { + value: 10, + unit: LengthUnit.PX + } + } + })); + this.controller1.setStyledString(this.styleString1); + + this.styleString2 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + padding: { + value: 10, + unit: LengthUnit.VP + } + } + })); + this.controller2.setStyledString(this.styleString2); + + this.styleString3 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + padding: { + value: 10, + unit: LengthUnit.FP + } + } + })); + this.controller3.setStyledString(this.styleString3); + + this.styleString4 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + padding: { + value: 10, + unit: LengthUnit.LPX + } + } + })); + this.controller4.setStyledString(this.styleString4); + + this.styleString5 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + padding: { + value: 10, + unit: LengthUnit.PERCENT + } + } + })); + this.controller5.setStyledString(this.styleString5); + + this.styleString6 = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 200, height: 200 }, + layoutStyle: { + padding: { + left: '10abc', + right: '10abc', + bottom: '10abc', + top: '10abc' + } + } + })); + this.controller6.setStyledString(this.styleString6); + } + } + + build() { + Row() { + Column() { + Row() { + Text(undefined, { controller: this.controller1 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller2 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + + Row() { + Text(undefined, { controller: this.controller3 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller4 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + + Row() { + Text(undefined, { controller: this.controller5 }) + .margin({ right: 10, bottom: 10 }) + .border({ width: 1, color: Color.Red }) + Text(undefined, { controller: this.controller6 }) + .margin({ bottom: 10 }) + .border({ width: 1, color: Color.Red }) + } + } + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage008.ets new file mode 100644 index 0000000000000000000000000000000000000000..32035af4d453fd71bcba1b16ef9ddae2e48d101b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage008.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage008 { + @State controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: StyledString | undefined = undefined; + @State stringValue: string = ''; + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.controller.setStyledString(this.styleString); + this.stringValue = 'String value:' + this.styleString.getString(); + } + } + + build() { + Row() { + Column() { + Text(this.stringValue).fontSize(26).fontColor(Color.Red); + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage009.ets new file mode 100644 index 0000000000000000000000000000000000000000..4710d6c7840d77d63eced372754acc82778b209c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage009.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage009 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: StyledString | undefined = undefined; + @State lengthValue: number = 0; + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.controller.setStyledString(this.styleString); + this.lengthValue = this.styleString.length; + } + } + + build() { + Row() { + Column() { + Text('Length:' + this.lengthValue).fontSize(26).fontColor(Color.Red) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage010.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2eef476db1e0055a9a3d0ba3b09cbcdfe9e784f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage010.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage010 { + controller: TextController = new TextController(); + controller2: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: StyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.controller.setStyledString(this.styleString); + let styleString2 = this.styleString.subStyledString(0, 1); + this.controller2.setStyledString(styleString2); + } + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller2 }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage011.ets new file mode 100644 index 0000000000000000000000000000000000000000..1bb255e6b8aaaa49d9980f82c0739fbdf55df3a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage011.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage011 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('Remove picture') + .id('UIComponentAttributeImage011') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + this.styleString.removeString(0, 1); + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage012.ets new file mode 100644 index 0000000000000000000000000000000000000000..1a4cff006ce53e76487ae0d1b289fac12d7d2621 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage012.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage012 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | undefined = undefined; + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertString(0,'hello') + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('Remove string') + .id('UIComponentAttributeImage012') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + this.styleString.removeString(0, 5); + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage013.ets new file mode 100644 index 0000000000000000000000000000000000000000..d5ec15f506320c72e17ad5a244d5d64e69a447c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage013.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage013 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | undefined = undefined; + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertString(1, "hello world"); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('Replace style') + .id('UIComponentAttributeImage013') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + this.styleString.replaceStyle({ + start: 0, + length: 1, + styledKey: StyledStringKey.IMAGE, + styledValue: new ImageAttachment({ + value: null, + size: { width: 100, height: 100 }, + }) + }); + + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage014.ets new file mode 100644 index 0000000000000000000000000000000000000000..e84ec103d1bf9cb019ba12efc96b2573a78c5a62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage014.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage014 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | undefined = undefined; + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertString(1, "hello"); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('Replace style') + .id('UIComponentAttributeImage014') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + let replace = new StyledString(''); + this.styleString.replaceStyledString(0, this.styleString.length, replace); + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage015.ets new file mode 100644 index 0000000000000000000000000000000000000000..7f0f59bb60d9fa80af545b3dafd8f66a7e3617c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage015.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage015 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | undefined = undefined; + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertString(1, "hello"); + this.styleString.replaceStyle({ + start: 1, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: this.fontStyleAttr1 + }); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('clearStyles') + .id('UIComponentAttributeImage015') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + this.styleString.clearStyles(); + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage016.ets new file mode 100644 index 0000000000000000000000000000000000000000..c3375222ed5fd67aa7127b437c14bf516f889029 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage016.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage016 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + replaceImagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | undefined = undefined; + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + this.replaceImagePixelMap = await this.getPixmapFromMedia($r('app.media.img')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertString(1, "hello"); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('Replace image') + .id('UIComponentAttributeImage016') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString && this.replaceImagePixelMap) { + let replace = new MutableStyledString(new ImageAttachment({ + value: this.replaceImagePixelMap, + size: { width: 100, height: 100 }, + })); + + this.styleString.replaceStyledString(0, 6, replace); + + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage017.ets new file mode 100644 index 0000000000000000000000000000000000000000..530247538b583f55f8977b8c9f03e20ea65a1941 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage017.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage017 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + insertImagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | undefined = undefined; + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + this.insertImagePixelMap = await this.getPixmapFromMedia($r('app.media.img')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertString(1, "hello"); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('insert image') + .id('UIComponentAttributeImage017') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString && this.insertImagePixelMap) { + let insert = new MutableStyledString(new ImageAttachment({ + value: this.insertImagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertStyledString(1, insert); + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage018.ets new file mode 100644 index 0000000000000000000000000000000000000000..0551e5fa9a7426f3ec7de07188088eda0006eca8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeImage/UIComponentAttributeImage018.ets @@ -0,0 +1,74 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentAttributeImage018 { + controller: TextController = new TextController(); + imagePixelMap: image.PixelMap | undefined = undefined; + insertImagePixelMap: image.PixelMap | undefined = undefined; + styleString: MutableStyledString | undefined = undefined; + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + this.insertImagePixelMap = await this.getPixmapFromMedia($r('app.media.img')).then(); + if (this.imagePixelMap !== undefined) { + this.styleString = new MutableStyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.insertString(1, "hello"); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Row() { + Column() { + Button('append image') + .id('UIComponentAttributeImage018') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString && this.insertImagePixelMap) { + let insert = new MutableStyledString(new ImageAttachment({ + value: this.insertImagePixelMap, + size: { width: 100, height: 100 }, + })); + this.styleString.appendStyledString(insert); + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfcb79bf61b80a7c90de3fd4c7cc902ab6fc9372 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle0120.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 UIComponentAttributeStringModifyingStyle0120 { + controller: TextController = new TextController(); + mutableStyledString: MutableStyledString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue, }), + }, { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red, }), + }]); + @State msg: string = ''; + + async onPageShow() { + this.controller.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('SetStlye') + .id('insert') + .margin({ bottom: 20 }) + .onClick(() => { + try { + this.mutableStyledString.setStyle({start:0, length:-1, styledKey:StyledStringKey.FONT, styledValue: new TextStyle({ fontColor: Color.Green })}); + } catch (err) { + this.msg = err.code; + } + }) + + Text(undefined, { controller: this.controller }) { + } + Text('错误码:' + this.msg) + .fontSize(20) + .fontColor(Color.Red) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle015.ets new file mode 100644 index 0000000000000000000000000000000000000000..c66e75fd62b213f0bdd91e198782ba01fa9b9cf7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle015.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 UIComponentAttributeStringModifyingStyle015 { + controller: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }, { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.controller.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('remove Style') + .id('UIComponentAttributeStringModifyingStyle015') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.mutableStyledString) { + this.mutableStyledString.removeStyle(2, 4, StyledStringKey.FONT); + this.controller.setStyledString(this.mutableStyledString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle016.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b0364a52e11cfedd1bacd259a75646e24949fe6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle016.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 UIComponentAttributeStringModifyingStyle016 { + controller: TextController = new TextController(); + controller1: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + styleString1: MutableStyledString | undefined = undefined; + getStyle: Array = []; + + async onPageShow() { + this.styleString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }, { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Row() { + Column() { + Button('get Style') + .id('UIComponentAttributeStringModifyingStyle016') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + this.styleString.removeStyle(0, 4, StyledStringKey.FONT); + this.controller.setStyledString(this.styleString); + this.getStyle = this.styleString.getStyles(0, 8, StyledStringKey.FONT) + this.styleString1 = new MutableStyledString('这是获取的返回样式', this.getStyle); + this.controller.setStyledString(this.styleString); + this.controller1.setStyledString(this.styleString1); + } + }) + Text(undefined, { controller: this.controller }) { + } + + Text(undefined, { controller: this.controller1 }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle022.ets new file mode 100644 index 0000000000000000000000000000000000000000..ec5d1920445c0a4b8a3e021563fe666177a4ae8d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle022.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 UIComponentAttributeStringModifyingStyle022 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + + async onPageShow() { + this.styleString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }, { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Row() { + Column() { + Button('Clear specified style') + .id('UIComponentAttributeStringModifyingStyle022') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + this.styleString.removeStyles(2, 4); + this.controller.setStyledString(this.styleString); + } + }) + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle023.ets new file mode 100644 index 0000000000000000000000000000000000000000..a3dceb685509a850241cd6100e21cbaf164e44c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle023.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 UIComponentAttributeStringModifyingStyle023 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + @State styles: string| undefined = undefined; + getStyle: Array = []; + + async onPageShow() { + this.styleString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }, { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Row() { + Column() { + Button('Remove styles then get styles') + .id('UIComponentAttributeStringModifyingStyle023') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.styleString) { + this.styleString.removeStyles(0, 8); + this.controller.setStyledString(this.styleString); + this.getStyle = this.styleString.getStyles(0, 8, StyledStringKey.FONT); + this.styles = '清除样式后获取到的样式:' + JSON.stringify(this.getStyle); + } + }) + Text(undefined, { controller: this.controller }) { + } + + Text(this.styles) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..797dc66c5eed65fec2e2a9ebef7eb27e34352650 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0090.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 UIComponentAttributeStringModifyingStyleText0090 { + controller: TextController = new TextController(); + mutableStyledString: MutableStyledString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue, }), + }, { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red, }), + }]); + @State msg: string = ''; + + async onPageShow() { + this.controller.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('Insert string') + .id('insert') + .margin({ bottom: 20 }) + .onClick(() => { + try { + let mutableStyledString = new MutableStyledString('输入框', [{ + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green }) + }]); + this.mutableStyledString.insertStyledString(-1, mutableStyledString); + } catch (err) { + this.msg = err.code; + } + }) + + Text(undefined, { controller: this.controller }) { + } + Text('错误码:' + this.msg) + .fontSize(20) + .fontColor(Color.Red) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..01e4c80cfec845d27c1c3dff68a6748bc46ba861 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0100.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 UIComponentAttributeStringModifyingStyleText0100 { + controller: TextController = new TextController(); + mutableStyledString: MutableStyledString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue, }), + }, { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red, }), + }]); + @State msg: string = ''; + + async onPageShow() { + this.controller.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('Insert string') + .id('insert') + .margin({ bottom: 20 }) + .onClick(() => { + try { + let mutableStyledString = new MutableStyledString('输入框', [{ + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green }) + }]); + this.mutableStyledString.insertStyledString(10, mutableStyledString); + } catch (err) { + this.msg = err.code; + } + }) + + Text(undefined, { controller: this.controller }) { + } + Text('错误码:' + this.msg) + .fontSize(20) + .fontColor(Color.Red) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText011.ets new file mode 100644 index 0000000000000000000000000000000000000000..54b8f2561196358397ee63f1e6e6b6f8dd5a78cf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText011.ets @@ -0,0 +1,99 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { JSON } from '@kit.ArkTS'; + +@Entry +@Component +struct UIComponentAttributeStringModifyingStyleText011 { + controller: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + @State text1: string = ''; + @State text2: string = ''; + @State text3: string = ''; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('这是一段测试文字', [ + { + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }, + { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + } + ]); + this.controller.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('Insert string') + .id('insert') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.mutableStyledString) { + this.mutableStyledString.insertStyledString(4, new StyledString('输入框', [{ + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green }) + }])) + this.controller.setStyledString(this.mutableStyledString); + } + }) + + Button('getString') + .id('getString') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.mutableStyledString) { + this.text1 = this.mutableStyledString.getString(); + } + }) + + Button('getLength') + .id('getLength') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.mutableStyledString) { + this.text2 = this.mutableStyledString.length + ''; + } + }) + + Button('getStyles') + .id('getStyles') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.mutableStyledString) { + this.text3 = JSON.stringify(this.mutableStyledString.getStyles(0, 11, StyledStringKey.FONT)); + console.log('StyleText011:: ' + JSON.stringify(new TextStyle({ fontColor: Color.Red }))); + } + }) + + Text(undefined, { controller: this.controller }) { + } + + Text(this.text1).fontSize(24) + Text(this.text2).fontSize(24).margin(10) + Text(this.text3).fontSize(24) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText023.ets new file mode 100644 index 0000000000000000000000000000000000000000..bc40e1b8ec8341d0e9fe48ac14dae6a08a37a1ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText023.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 UIComponentAttributeStringModifyingStyleText023 { + controller: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('这是一段测试文字', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]); + this.controller.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('Insert string') + .id('insert') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.mutableStyledString) { + this.mutableStyledString.insertString(0, "1"); + this.controller.setStyledString(this.mutableStyledString); + } + }) + + Button('remove string') + .id('delete') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.mutableStyledString) { + this.mutableStyledString.removeString(0, 1); + this.controller.setStyledString(this.mutableStyledString); + } + }) + + Text(undefined, { controller: this.controller }) { + } + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeUserData/UIComponentAttributeUserData0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeUserData/UIComponentAttributeUserData0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..73ec85b7566501174d853a9a665497763357c8c9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentAttributeUserData/UIComponentAttributeUserData0030.ets @@ -0,0 +1,112 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +class AtSpan extends UserDataSpan { + constructor(name: string, age: number) { + super() + this.name = name + this.age = age + } + + private name: string + private age: number +} + +@Entry +@Component +struct UIComponentAttributeUserData0030 { + controller: TextController = new TextController(); + styledString3: MutableStyledString = new MutableStyledString('styledString3', [{ + start: 0, + length: 2, + styledKey: StyledStringKey.USER_DATA, + styledValue: new AtSpan('hello', 30), + }]); + @State msg: string = ''; + @State msg1: string = ''; + @State msg2: string = ''; + @State msg3: string = ''; + + async onPageShow() { + this.controller.setStyledString(this.styledString3); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.controller }) { + } + + Row() { + Button('getStlye') + .id('getStlye') + .margin({ bottom: 20 }) + .onClick(() => { + try { + this.styledString3.getStyles(10, 7); + } catch (err) { + this.msg = err.code; + } + }) + Button('getStlye1') + .id('getStlye1') + .margin({ bottom: 20 }) + .onClick(() => { + try { + this.msg1 = JSON.stringify(this.styledString3.getStyles(0, 2)); + } catch (err) { + this.msg = err.code; + } + }) + Button('getStlye2') + .id('getStlye2') + .margin({ bottom: 20 }) + .onClick(() => { + try { + this.msg2 = JSON.stringify(this.styledString3.getStyles(2, 2)); + } catch (err) { + this.msg = err.code; + } + }) + } + + Button('getStlye3') + .id('getStlye3') + .margin({ bottom: 20 }) + .onClick(() => { + try { + this.msg3 = JSON.stringify(this.styledString3.getStyles(0, 12)); + } catch (err) { + this.msg = err.code; + } + }) + + Text(this.msg1) + .fontSize(20) + .fontColor(Color.Red) + Text(this.msg2) + .fontSize(20) + .fontColor(Color.Red) + Text(this.msg3) + .fontSize(20) + .fontColor(Color.Red) + Text('错误码:' + this.msg) + .fontSize(20) + .fontColor(Color.Red) + } + .width('100%') + .height('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton033.ets deleted file mode 100644 index 4627daca8432448708b2c8277bf9b791802cdca1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton033.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonCommonButton0330 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('Radio') - Radio({ value: 'Radio1', group: 'radioGroup' }) - .height(50) - .width(50) - .id('UIComponentButtonCommonButton0330') - - Text('Radio') - .margin({ top: 10 }) - Radio({ value: 'Radio2', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(RadioData[0].Checked) - .id('UIComponentButtonCommonButton0331') - .radioStyle(RadioData[0].RadioStyle) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -export interface RadioAttributes { - RadioStyle?: RadioStyle - Checked?: boolean -} - -export const RadioData: RadioAttributes[] = [ - { - RadioStyle: { - checkedBackgroundColor: Color.Black, - uncheckedBorderColor: Color.Green, - indicatorColor: Color.Yellow - }, - Checked: true - }, - { - RadioStyle: { checkedBackgroundColor: '#ffffff', uncheckedBorderColor: '#ff980d0d', indicatorColor: '#ff2f6db7' }, - Checked: true - }, - { - RadioStyle: { checkedBackgroundColor: undefined, uncheckedBorderColor: undefined, indicatorColor: undefined }, - Checked: false - }, - { - RadioStyle: { checkedBackgroundColor: 0xff0033, uncheckedBorderColor: 0xff0033, indicatorColor: 0xff0033 }, - Checked: false - } -] diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton034.ets deleted file mode 100644 index c39cb6462dc07beaa8580a7aafe4539f7d43046c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton034.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { RadioData } from "./UIComponentButtonCommonButton033"; - -@Entry -@Component -struct UIComponentButtonCommonButton0340 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('Radio') - Radio({ value: 'Radio1', group: 'radioGroup' }) - .height(50) - .width(50) - - Text('Radio') - .margin({ top: 10 }) - Radio({ value: 'Radio2', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(RadioData[1].Checked) - .radioStyle(RadioData[1].RadioStyle) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton035.ets deleted file mode 100644 index de4e348e6b909e39b99c49704c0f57521e390032..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton035.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { RadioData } from "./UIComponentButtonCommonButton033"; - -@Entry -@Component -struct UIComponentButtonCommonButton0350 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('Radio') - Radio({ value: 'Radio1', group: 'radioGroup' }) - .height(50) - .width(50) - - Text('Radio') - .margin({ top: 10 }) - Radio({ value: 'Radio2', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(RadioData[2].Checked) - .radioStyle(RadioData[2].RadioStyle) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton036.ets deleted file mode 100644 index 8decfd42a0762d3ea9d438d4f3c4de243235fa9b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton036.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { RadioData } from './UIComponentButtonCommonButton033'; - -@Entry -@Component -struct UIComponentButtonCommonButton0360 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('Radio') - Radio({ value: 'Radio1', group: 'radioGroup' }) - .height(50) - .width(50) - - Text('Radio') - .margin({ top: 10 }) - Radio({ value: 'Radio2', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(RadioData[3].Checked) - .radioStyle(RadioData[3].RadioStyle) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton037.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton037.ets deleted file mode 100644 index 1bcfd96634262f04f30f887bfa74c1f0efd9f882..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton037.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonCommonButton0370 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('Rating1') - Rating() - .margin({ top: 24 }) - - Text('Rating2') - .margin({ top: 10 }) - Rating() - .margin({ top: 24 }) - .stars(RatingData[0].Stars) - .stepSize(RatingData[0].StepSize) - .starStyle(RatingData[0].StarStyle) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -export interface RatingAttributes { - Stars?: number | undefined - StepSize?: number | undefined - StarStyle?: RatingStarStyle -} - -export interface RatingStarStyle { - backgroundUri: string | undefined - foregroundUri: string | undefined - secondaryUri?: string | undefined -} - -export const RatingData: RatingAttributes[] = [ - { - Stars: 10, - StepSize: 5, - StarStyle: { backgroundUri: 'image2.png', foregroundUri: 'image2.png' }, - }, - { - StarStyle: { backgroundUri: 'image2.png', foregroundUri: 'image2.png', secondaryUri: 'img.png' }, - }, - { - StarStyle: { backgroundUri: 'image2.png', foregroundUri: 'image2.png', secondaryUri: 'img2.png' }, - } -] diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton038.ets deleted file mode 100644 index 671485c17df0a23dff8fc7bd6940e56902f0b371..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton038.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { RatingData } from "./UIComponentButtonCommonButton037"; - -@Entry -@Component -struct UIComponentButtonCommonButton0380 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('Rating1') - Rating() - .margin({ top: 24 }) - - Text('Rating2') - .margin({ top: 10 }) - Rating() - .margin({ top: 24 }) - .starStyle(RatingData[1].StarStyle) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton039.ets deleted file mode 100644 index a21f385651204189baf42157cb4e2ad7e56c0f91..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton039.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { RatingData } from "./UIComponentButtonCommonButton037"; - -@Entry -@Component -struct UIComponentButtonCommonButton0390 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('Rating1') - Rating() - .margin({ top: 24 }) - - Text('Rating2') - .margin({ top: 10 }) - Rating() - .margin({ top: 24 }) - .starStyle(RatingData[2].StarStyle) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton040.ets deleted file mode 100644 index 003c30e9e04629f69a358668209ed6df3e20417f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton040.ets +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonCommonButton0400 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('原有配置的Select') - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .id('UIComponentButtonCommonButton0400') - - Text('modifier配置的Select') - .margin({ top: 10 }) - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .id('UIComponentButtonCommonButton0401') - .optionWidth(SelectData[0].OptionWidth) - .optionHeight(SelectData[0].OptionHeight) - .menuAlign(SelectData[0].MenuAlign) - .offset({ - x: SelectData[0].Offset ? SelectData[0].Offset.dx : undefined, - y: SelectData[0].Offset ? SelectData[0].Offset.dy : undefined - }) - .value(SelectData[0].Value) - .selected(SelectData[0].Selected) - .space(SelectData[0].Space) - .arrowPosition(SelectData[0].ArrowPosition) - .font(SelectData[0].Font) - .fontColor(SelectData[0].FontColor) - .selectedOptionBgColor(SelectData[0].SelectedOptionBgColor) - .selectedOptionFont(SelectData[0].SelectedOptionFont) - .selectedOptionFontColor(SelectData[0].SelectedOptionFontColor) - .optionBgColor(SelectData[0].OptionBgColor) - .optionFont(SelectData[0].OptionFont) - .optionFontColor(SelectData[0].OptionFontColor) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} - -export interface SelectDataAttributes { - OptionWidth?: Dimension | OptionWidthMode | undefined - OptionHeight?: Dimension | undefined - MenuAlign?: MenuAlignType | undefined - Offset?: Offset | undefined - Value?: ResourceStr | undefined - Selected?: number | Resource | undefined - Space?:Length | undefined - ArrowPosition?: ArrowPosition | undefined - Font?: Font | undefined - FontColor?: ResourceColor | undefined - SelectedOptionBgColor?: ResourceColor | undefined - SelectedOptionFont?: Font | undefined - SelectedOptionFontColor?:ResourceColor | undefined - OptionBgColor?:ResourceColor | undefined - OptionFont?: Font | undefined - OptionFontColor?: ResourceColor | undefined -} - -export const SelectData: SelectDataAttributes[] = [ - { - OptionWidth : 20, - OptionHeight : 30, - MenuAlign : MenuAlignType.START, - Offset : { dx: 30, dy: 30 }, - Value : "bbb", - Selected : 1, - Space : 10, - ArrowPosition : ArrowPosition.END, - Font : { size: 20, style: FontStyle.Italic, family: 'HarmonyHei', weight: 400 }, - FontColor : Color.Red, - SelectedOptionBgColor : Color.Red, - SelectedOptionFont : { size: 20, style: FontStyle.Italic, family: 'HarmonyHei', weight: 400 }, - SelectedOptionFontColor : Color.Pink, - OptionBgColor : Color.Orange, - OptionFont : { size: 30, style: FontStyle.Italic, family: 'HarmonyHei', weight: 500 }, - OptionFontColor : Color.Gray - }, - { - OptionWidth : '20px', - OptionHeight : '30px', - MenuAlign : MenuAlignType.CENTER, - Offset : { dx: '30px', dy: '30px' }, - Value : "ccc", - Selected : -1, - Space : '10px', - ArrowPosition : ArrowPosition.START, - Font : { size: '20vp', style: FontStyle.Italic, family: '', weight: '500' }, - FontColor : $r('app.color.Code_color'), - SelectedOptionBgColor : $r('app.color.tab_text_activated'), - SelectedOptionFont : { size: '20px', style: 10, weight: 'normal' }, - SelectedOptionFontColor : '#aabbccdd', - OptionBgColor : $r('app.color.category_background'), - OptionFont : { size: '24px', style: 10, weight: 'normal' }, - OptionFontColor : $r('app.color.search_placeholder') - }, - { - OptionWidth : undefined, - OptionHeight : undefined, - MenuAlign : MenuAlignType.CENTER, - Offset : undefined, - Value : "", - Selected : -1, - Space : '10px', - ArrowPosition : ArrowPosition.START, - Font : { size: '20vp', style: FontStyle.Italic, family: '', weight: '500' }, - FontColor : $r('app.color.Code_color'), - SelectedOptionBgColor : $r('app.color.tab_text_activated'), - SelectedOptionFont : { size: '20px', style: 10, weight: 'normal' }, - SelectedOptionFontColor : '#aabbccdd', - OptionBgColor : $r('app.color.category_background'), - OptionFont : { size: '24px', style: 10, weight: 'normal' }, - OptionFontColor : $r('app.color.search_placeholder') - } -] diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton041.ets deleted file mode 100644 index 6bc079c17295991ed6a377be1fb060a549566ee1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton041.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SelectData } from './UIComponentButtonCommonButton040'; - -@Entry -@Component -struct UIComponentButtonCommonButton0410 { - @State styleIndex: number = 0; - - build() { - Row() { - Column() { - Text('原有配置的Select') - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .id('UIComponentButtonCommonButton0410') - - Text('modifier配置的Select') - .margin({ top: 10 }) - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .id('UIComponentButtonCommonButton0411') - .optionWidth(SelectData[1].OptionWidth) - .optionHeight(SelectData[1].OptionHeight) - .menuAlign(SelectData[1].MenuAlign) - .offset({ - x: SelectData[1].Offset ? SelectData[1].Offset.dx : undefined, - y: SelectData[1].Offset ? SelectData[1].Offset.dy : undefined - }) - .value(SelectData[1].Value) - .selected(SelectData[1].Selected) - .space(SelectData[1].Space) - .arrowPosition(SelectData[1].ArrowPosition) - .font(SelectData[1].Font) - .fontColor(SelectData[1].FontColor) - .selectedOptionBgColor(SelectData[1].SelectedOptionBgColor) - .selectedOptionFont(SelectData[1].SelectedOptionFont) - .selectedOptionFontColor(SelectData[1].SelectedOptionFontColor) - .optionBgColor(SelectData[1].OptionBgColor) - .optionFont(SelectData[1].OptionFont) - .optionFontColor(SelectData[1].OptionFontColor) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark001.ets deleted file mode 100644 index dc968a2b4976cd5a28a86c26c4c2b28e28b36f63..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark001.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark001 { - @State textTip: string = '勾选类型的Radio选中'; - - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .id('UIComponentButtonRadioCheckMark0010') - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark003.ets deleted file mode 100644 index 67c1d723ece22a3993395a22f94760b59a6bc6cf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark003.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark003 { - @State textTip: string = '勾选类型的Radio选中'; - @State isChecked: boolean = true; - - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup', indicatorType: RadioIndicatorType.TICK }) - .checked(this.isChecked) - .width(50) - .height(50) - .id('UIComponentButtonRadioCheckMark0030') - .gesture( - LongPressGesture({repeat: true}) - .onAction((event: GestureEvent) => { - if (event && event.repeat) { - if(this.isChecked) { - this.textTip = '勾选类型的Radio选中,press状态'; - } else { - this.textTip = '勾选类型的Radio未选中,press状态'; - } - } - }) - ) - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark005.ets deleted file mode 100644 index 8dc14e4541679ec232c702b94c0c27b3fe5e2e44..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark005.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark005 { - @State textTip: string = '勾选类型的Radio选中,disable状态'; - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .enabled(false) - .id('UIComponentButtonRadioCheckMark0050') - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark006.ets deleted file mode 100644 index 98506811ab991eaf6141bebafeed8c5e692a0ff4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark006.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark006 { - @State textTip: string = '勾选类型的Radio未选中'; - - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .id('UIComponentButtonRadioCheckMark0060') - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark008.ets deleted file mode 100644 index 314b801c22f270f2df188478bf9fa1516f1e737b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark008.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark008 { - @State textTip: string = '勾选类型的Radio未选中'; - @State isChecked: boolean = false; - - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup', indicatorType: RadioIndicatorType.TICK }) - .checked(this.isChecked) - .width(50) - .height(50) - .id('UIComponentButtonRadioCheckMark0080') - .onChange(() => { - this.isChecked = !this.isChecked; - }) - .gesture( - LongPressGesture({repeat: true}) - .onAction((event: GestureEvent) => { - if (event && event.repeat) { - if(this.isChecked) { - this.textTip = '勾选类型的Radio选中,press状态'; - } else { - this.textTip = '勾选类型的Radio未选中,press状态'; - } - } - }) - ) - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark010.ets deleted file mode 100644 index ba7a3ed0a1f2e4d75160e0469d173c4495ef5847..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark010.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark010 { - @State textTip: string = '勾选类型的Radio未选中,disable状态'; - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .enabled(false) - .id('UIComponentButtonRadioCheckMark0100') - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark011.ets deleted file mode 100644 index 7d49747da6bc62947b4d30525a2c3f031ec61455..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark011.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark011 { - @State textTip: string = 'Radio选中,默认类型'; - - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup'}) - .checked(true) - .width(50) - .height(50) - .id('UIComponentButtonRadioCheckMark0110') - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark012.ets deleted file mode 100644 index 9d86d3a50cce50f14e7288c548f5714850c97659..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark012.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark012 { - @State textTip: string = 'Radio未选中,默认类型'; - - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row({space: 20}) { - Radio({ value: 'Radio', group: 'radioGroup'}) - .checked(false) - .width(50) - .height(50) - .id('UIComponentButtonRadioCheckMark0120') - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark013.ets deleted file mode 100644 index 8aea13695663a142e27f70fdbbb743a027bc26d0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark013.ets +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark013 { - @State isSetCheckedBackgroundColor: boolean = false; - @State isSetUncheckedBorderColor: boolean = false; - @State isSetIndicatorColor: boolean = false; - - - build() { - Row({space: 10}) { - Column({space: 10}) { - Button('checkedBackgroundColor为xx') - .id('UIComponentButtonRadioCheckMark0130') - .onClick(() => { - this.isSetCheckedBackgroundColor = true; - }) - Button('uncheckedBorderColor为xx') - .id('UIComponentButtonRadioCheckMark0131') - .onClick(() => { - this.isSetUncheckedBorderColor = true; - }) - Button('indicatorColor为xx') - .id('UIComponentButtonRadioCheckMark0132') - .onClick(() => { - this.isSetIndicatorColor = true; - }) - Row() { - Radio({ value: 'Radio1', group: 'radioGroup1', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? 'rgba(255,100,255,0.5)' : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? 'rgba(255,100,255,0.5)' : '', - indicatorColor: this.isSetIndicatorColor ? 'rgba(255,100,255,0.5)' : '', - }) - .id('UIComponentButtonRadioCheckMark0130') - } - Row() { - Radio({ value: 'Radio2', group: 'radioGroup2', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? undefined : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? undefined : '', - indicatorColor: this.isSetIndicatorColor ? undefined : '', - }) - .id('UIComponentButtonRadioCheckMark0131') - } - Row() { - Radio({ value: 'Radio3', group: 'radioGroup3', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? Color.Black : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? Color.Black : '', - indicatorColor: this.isSetIndicatorColor ? Color.Black : '', - }) - .id('UIComponentButtonRadioCheckMark0132') - } - Row() { - Radio({ value: 'Radio4', group: 'radioGroup4', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? 0xff00ff00 : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? 0xff00ff00 : '', - indicatorColor: this.isSetIndicatorColor ? 0xff00ff00 : '', - }) - .id('UIComponentButtonRadioCheckMark0133') - } - Row() { - Radio({ value: 'Radio5', group: 'radioGroup5', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? '#ff0000ff' : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? '#ff0000ff' : '', - indicatorColor: this.isSetIndicatorColor ? '#ff0000ff' : '', - }) - .id('UIComponentButtonRadioCheckMark0134') - } - Row() { - Radio({ value: 'Radio6', group: 'radioGroup6', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? 'bbbb' : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? 'bbbb' : '', - indicatorColor: this.isSetIndicatorColor ? 'bbbb' : '', - }) - .id('UIComponentButtonRadioCheckMark0135') - } - Row() { - Radio({ value: 'Radio7', group: 'radioGroup7', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? getContext().resourceManager.getColorSync($r("app.color.colorRed")) : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? getContext().resourceManager.getColorSync($r("app.color.colorRed")) : '', - indicatorColor: this.isSetIndicatorColor ? getContext().resourceManager.getColorSync($r("app.color.colorRed")) : '', - }) - .id('UIComponentButtonRadioCheckMark0136') - } - Row() { - Radio({ value: 'Radio8', group: 'radioGroup8', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: '', - uncheckedBorderColor: '', - indicatorColor: '', - }) - .id('UIComponentButtonRadioCheckMark0136') - } - } - .margin({ - left: 10 - }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark014.ets deleted file mode 100644 index 890cd8904282c904c8ca93e0cc924be404bbd021..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark014.ets +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCheckMark014 { - @State isSetCheckedBackgroundColor: boolean = false; - @State isSetUncheckedBorderColor: boolean = false; - @State isSetIndicatorColor: boolean = false; - - - build() { - Row({space: 10}) { - Column({space: 10}) { - Button('checkedBackgroundColor为xx') - .id('UIComponentButtonRadioCheckMark0140') - .onClick(() => { - this.isSetCheckedBackgroundColor = true; - }) - Button('uncheckedBorderColor为xx') - .id('UIComponentButtonRadioCheckMark0141') - .onClick(() => { - this.isSetUncheckedBorderColor = true; - }) - Button('indicatorColor为xx') - .id('UIComponentButtonRadioCheckMark0142') - .onClick(() => { - this.isSetIndicatorColor = true; - }) - Row() { - Radio({ value: 'Radio1', group: 'radioGroup1', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? 'rgba(255,100,255,0.5)' : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? 'rgba(255,100,255,0.5)' : '', - indicatorColor: this.isSetIndicatorColor ? 'rgba(255,100,255,0.5)' : '', - }) - .id('UIComponentButtonRadioCheckMark0130') - } - Row() { - Radio({ value: 'Radio2', group: 'radioGroup2', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? undefined : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? undefined : '', - indicatorColor: this.isSetIndicatorColor ? undefined : '', - }) - .id('UIComponentButtonRadioCheckMark0131') - } - Row() { - Radio({ value: 'Radio3', group: 'radioGroup3', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? Color.Black : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? Color.Black : '', - indicatorColor: this.isSetIndicatorColor ? Color.Black : '', - }) - .id('UIComponentButtonRadioCheckMark0132') - } - Row() { - Radio({ value: 'Radio4', group: 'radioGroup4', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? 0xff00ff00 : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? 0xff00ff00 : '', - indicatorColor: this.isSetIndicatorColor ? 0xff00ff00 : '', - }) - .id('UIComponentButtonRadioCheckMark0133') - } - Row() { - Radio({ value: 'Radio5', group: 'radioGroup5', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? '#ff0000ff' : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? '#ff0000ff' : '', - indicatorColor: this.isSetIndicatorColor ? '#ff0000ff' : '', - }) - .id('UIComponentButtonRadioCheckMark0134') - } - Row() { - Radio({ value: 'Radio6', group: 'radioGroup6', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? 'bbbb' : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? 'bbbb' : '', - indicatorColor: this.isSetIndicatorColor ? 'bbbb' : '', - }) - .id('UIComponentButtonRadioCheckMark0135') - } - Row() { - Radio({ value: 'Radio7', group: 'radioGroup7', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: this.isSetCheckedBackgroundColor ? getContext().resourceManager.getColorSync($r("app.color.colorRed")) : '', - uncheckedBorderColor: this.isSetUncheckedBorderColor ? getContext().resourceManager.getColorSync($r("app.color.colorRed")) : '', - indicatorColor: this.isSetIndicatorColor ? getContext().resourceManager.getColorSync($r("app.color.colorRed")) : '', - }) - .id('UIComponentButtonRadioCheckMark0136') - } - Row() { - Radio({ value: 'Radio8', group: 'radioGroup8', indicatorType: RadioIndicatorType.TICK }) - .checked(false) - .width(50) - .height(50) - .radioStyle({ - checkedBackgroundColor: '', - uncheckedBorderColor: '', - indicatorColor: '', - }) - .id('UIComponentButtonRadioCheckMark0136') - } - } - .margin({ - left: 10 - }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing001.ets deleted file mode 100644 index cd1d1ec279511e25d3d91d683b1c7223cd5087f1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing001.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing001 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Text('Radio1') - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new SimpleRadioStyle(1)) - .checked(true) - .width(300) - .height(100) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} - -class SimpleRadioStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildSimpleStyleRadio); - } -} - -@Builder -function buildSimpleStyleRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Red : Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0010`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing002.ets deleted file mode 100644 index 5339f783efde314835c6d1d4929989e231dedd4a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing002.ets +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing002 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: '', group: 'radioGroup' }) - .contentModifier(new FirstRadioStyle(1)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .contentModifier(new FirstRadioStyle(2)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .enabled(false) - .contentModifier(new FirstRadioStyle(3)) - } - } - .width('200px') - .height('80px') - } - } -} - -class FirstRadioStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildFirstStyleRadio); - } -} - -@Builder -function buildFirstStyleRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Brown : Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .type(config.checked ? ButtonType.Circle : ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing002${(config.contentModifier as FirstRadioStyle).type}`) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing003.ets deleted file mode 100644 index ce54a970d3b7253276db58461ceae7231aa2a004..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing003.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing003 { - - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new AttributeRadioStyle(1)) - .checked(false) - .width(300) - .height(100) - } - Row() { - Radio({ value: 'Radio2', group: 'radioGroup' }) - .contentModifier(new AttributeRadioStyle(2)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: 'Radio3', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .enabled(false) - .contentModifier(new AttributeRadioStyle(3)) - } - } - .width('200px') - .height('80px') - } - } -} - -class AttributeRadioStyle implements ContentModifier { - type: number = 0 - - constructor(numberType: number) { - this.type = numberType - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildAttributeRadio); - } -} - -@Builder -function buildAttributeRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(Color.Black) - .fill(config.checked ? Color.Black : Color.White) - Button('Hello') - .width(100) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing003${(config.contentModifier as AttributeRadioStyle).type}`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing004.ets deleted file mode 100644 index fd70424326d7a8d420b1880ee8b936a283b210c4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing004.ets +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing004 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .contentModifier(new RadioNullValueStyle(1)) - .checked(undefined) - .width(300) - .height(100) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .contentModifier(new RadioNullValueStyle(2)) - .checked(undefined) - .width(300) - .height(100) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioNullValueStyle(3)) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioNullValueStyle(4)) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioNullValueStyle(5)) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioNullValueStyle(6)) - } - } - .width('200px') - .height('80px') - } - } -} - -class RadioNullValueStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildStyleNullValueRadio); - } -} - -@Builder -function buildStyleNullValueRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Red : Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing004${(config.contentModifier as RadioNullValueStyle).type}`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing005.ets deleted file mode 100644 index e30c31cd4052acdefe8f015c42e2301baa6732b6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing005.ets +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing005 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .contentModifier(new RadioUndefinedValueStyle(1)) - .checked(undefined) - .width(300) - .height(100) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .contentModifier(new RadioUndefinedValueStyle(2)) - .checked(undefined) - .width(300) - .height(100) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioUndefinedValueStyle(3)) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioUndefinedValueStyle(4)) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioUndefinedValueStyle(5)) - } - - Row() { - Radio({ value: undefined, group: 'radioGroup' }) - .checked(undefined) - .width(300) - .height(60) - .contentModifier(new RadioUndefinedValueStyle(6)) - } - } - .width('200px') - .height('80px') - } - } -} - -class RadioUndefinedValueStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildStyleUndefinedValueRadio); - } -} - -@Builder -function buildStyleUndefinedValueRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Red : Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing005${(config.contentModifier as RadioUndefinedValueStyle).type}`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing006.ets deleted file mode 100644 index b28f8abd627a537a8d6938723b639f3e9b4457fe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing006.ets +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing006 { - build() { - Column({ space: 50 }) { - Row() { - Radio({ value: '', group: 'radioGroup' }) - .contentModifier(new SecondRadioStyle(1)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .contentModifier(new SecondRadioStyle(2)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new SecondRadioStyle(3)) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new SecondRadioStyle(4)) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new SecondRadioStyle(5)) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new SecondRadioStyle(6)) - } - } - .width('200px') - .height('80px') - } -} - -class SecondRadioStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildSecondStyleRadio); - } -} - -@Builder -function buildSecondStyleRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Red : Color.Black) - .fill(Color.White) - .strokeWidth(5) - if ((config.contentModifier as SecondRadioStyle).type === 1 || - (config.contentModifier as SecondRadioStyle).type === 6) { - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing006${(config.contentModifier as SecondRadioStyle).type}`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing007.ets deleted file mode 100644 index 9e67906926bf3d30668dc6d8a86508d74da9c583..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing007.ets +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing007 { - @State textTip: string = ''; - - build() { - Row() { - Column({ space: 50 }) { - Text(this.textTip) - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new FourRadioStyle(1)) - .checked(false) - .width(300) - .height(100) - .onChange(() => { - this.textTip = 'Radio1 回调触发'; - }) - } - - Row() { - Radio({ value: 'Radio2', group: 'radioGroup' }) - .contentModifier(new FourRadioStyle(2)) - .checked(false) - .width(300) - .height(100) - .onChange(() => { - this.textTip = 'Radio2 回调触发'; - }) - } - - Row() { - Radio({ value: 'Radio3', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new FourRadioStyle(3)) - .onChange(() => { - this.textTip = 'Radio3 回调触发'; - }) - } - - Row() { - Radio({ value: 'Radio4', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new FourRadioStyle(4)) - .onChange(() => { - this.textTip = 'Radio4 回调触发'; - }) - } - - Row() { - Radio({ value: 'Radio5', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new FourRadioStyle(5)) - .onChange(() => { - this.textTip = 'Radio5 回调触发'; - }) - } - - Row() { - Radio({ value: 'Radio6', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new FourRadioStyle(6)) - .onChange(() => { - this.textTip = 'Radio6 回调触发'; - setTimeout(() => { - this.textTip = ''; - }, 1000) - }) - } - } - .width('200px') - .height('80px') - } - } -} - -class FourRadioStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildFourStyleRadio); - } -} - -@Builder -function buildFourStyleRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Red : Color.Black) - .fill(Color.White) - .strokeWidth(5) - .id(`UIComponentButtonRadioCustonmizing007${(config.contentModifier as FourRadioStyle).type}0`) - .onClick(() => { - console.log('Circle click: ', config.triggerChange(undefined)); - }) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing007${(config.contentModifier as FourRadioStyle).type}1`) - .onClick(() => { - console.log('Button click: ', config.triggerChange(!config.checked)); - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing008.ets deleted file mode 100644 index 26dcebab8542ef20fe23b3e23fb6e13c8bf969c1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing008.ets +++ /dev/null @@ -1,85 +0,0 @@ - -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing008 { - - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new EventRadioStyle(1)) - .checked(false) - .width(300) - .height(100) - } - Row() { - Radio({ value: 'Radio2', group: 'radioGroup' }) - .contentModifier(new EventRadioStyle(2)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: 'Radio3', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .enabled(false) - .contentModifier(new EventRadioStyle(3)) - } - } - .width('200px') - .height('80px') - } - } -} - -class EventRadioStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildEventRadio); - } -} - -@Builder -function buildEventRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(Color.Black) - .fill(config.checked ? Color.Black : Color.White) - Button('Hello') - .width(100) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing008${(config.contentModifier as EventRadioStyle).type}`) - .onClick(() => { - if (config.checked) { - config.triggerChange(null); - } else { - config.triggerChange(null); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing009.ets deleted file mode 100644 index 2fc01daa5044df802bcb51f85d1ee3d2e6d8a453..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing009.ets +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing009 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: '', group: 'radioGroup' }) - .contentModifier(new ThirdRadioStyle(1)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .contentModifier(new ThirdRadioStyle(2)) - .checked(false) - .width(300) - .height(100) - } - - Row() { - Radio({ value: '', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(60) - .contentModifier(new ThirdRadioStyle(3)) - } - } - .width('200px') - .height('80px') - } - } -} - -class ThirdRadioStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildThirdStyleRadio); - } -} - -@Builder -function buildThirdStyleRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Red : Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing009${(config.contentModifier as ThirdRadioStyle).type}`) - .onClick(() => { - if (config.checked) { - config.triggerChange(undefined); - } else { - config.triggerChange(undefined); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing010.ets deleted file mode 100644 index 27c58b5b0a7fa1e766469548d769e87642f7f470..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing010.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing010 { - @State isChecked: boolean = false; - - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .contentModifier(undefined) - .checked(this.isChecked) - .width(50) - .height(50) - Button('Hello') - .width(100) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0100`) - .onClick(() => { - this.isChecked = true; - }) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing011.ets deleted file mode 100644 index c95d638114e4400f9b358984494e5da1f327c7fe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing011.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing011 { - @State isChecked: boolean = false; - - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(null) - .checked(this.isChecked) - .width(50) - .height(50) - Button('Hello') - .width(100) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0110`) - .onClick(() => { - this.isChecked = true; - }) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing012.ets deleted file mode 100644 index 3156a4a4be405f8fa83ff8824fe6d9e8c42d0ce3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing012.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing012 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Text('Radio1') - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new DefaultRadioStyle()) - .checked(false) - .width(300) - .height(100) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class DefaultRadioStyle implements ContentModifier { - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildDefaultStyleRadio); - } -} - -@Builder -function buildDefaultStyleRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0120`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing013.ets deleted file mode 100644 index f6141e9a44df28be31d8c792956f12bfceba4aad..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing013.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing013 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new CustomSecondRadioStyle()) - .checked(true) - .width(300) - .height(100) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class CustomSecondRadioStyle implements ContentModifier { - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(CustomSecondStyleRadioBuilder); - } -} - -@Builder -function CustomSecondStyleRadioBuilder(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0130`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing015.ets deleted file mode 100644 index 296f5b58465ba2d07cb1c34ddb86255b5b970f34..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing015.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing015 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new CustomThirdRadioStyle()) - .checked(true) - .width(300) - .height(100) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class CustomThirdRadioStyle implements ContentModifier { - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(CustomThirdStyleRadioBuilder); - } -} - -@Builder -function CustomThirdStyleRadioBuilder(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0150`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing016.ets deleted file mode 100644 index bf17fb51965ac2e1c72cff58b05b7b6b77cb01ea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing016.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing016 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .contentModifier(new CustomFirstRadioStyle()) - .checked(true) - .width(300) - .height(100) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class CustomFirstRadioStyle implements ContentModifier { - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(CustomFirstStyleRadioBuilder); - } -} - -@Builder -function CustomFirstStyleRadioBuilder(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(Color.Black) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0160`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing017.ets deleted file mode 100644 index a55b58a6c1d1d107db4f34d89d4c7991a114f0ab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing017.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioCustonmizing017 { - build() { - Row() { - Column({ space: 50 }) { - Row() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .contentModifier(null) - .contentModifier(new EffectiveRadioStyle(1)) - .checked(false) - .width(300) - .height(100) - } - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} - -class EffectiveRadioStyle implements ContentModifier { - type: number = 0; - - constructor(numberType: number) { - this.type = numberType; - } - - applyContent(): WrappedBuilder<[RadioConfiguration]> { - return wrapBuilder(buildEffectiveStyleRadio); - } -} - -@Builder -function buildEffectiveStyleRadio(config: RadioConfiguration) { - Row({ space: 30 }) { - Circle({ width: 50, height: 50 }) - .stroke(config.checked ? Color.Red : Color.Orange) - .fill(Color.White) - .strokeWidth(5) - Button(config.checked ? 'Hi' : 'Hello') - .width(100) - .borderRadius(config.checked ? 10 : 0) - .type(ButtonType.Normal) - .backgroundColor('#2787D9') - .id(`UIComponentButtonRadioCustonmizing0170`) - .onClick(() => { - if (config.checked) { - config.triggerChange(false); - } else { - config.triggerChange(true); - } - }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic004.ets deleted file mode 100644 index d02a491fe81269ca0e88cc7e88287da9876450ae..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic004.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic004 { - @State rating: number = 3.5; - @State resourcePng: string = 'cat.jpg'; - @State resourceColor: Color = Color.Pink; - @State checkedStatus: boolean = false; - - @Builder - indicatorBuilder() { - Image(this.resourcePng) - .width('20vp') - .height('20vp') - } - - build() { - Row() { - Column() { - Text('图片通过$r传参') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height('50vp') - .width('50vp') - .checked(this.checkedStatus) - .radioStyle({ - checkedBackgroundColor: this.resourceColor - }) - .id('UIComponentButtonRadioLConic0040') - Button('切换图片') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentButtonRadioLConic0041') - .onClick(() => { - this.resourcePng = 'image2.png'; - this.checkedStatus = true; - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic005.ets deleted file mode 100644 index 5210b226e2994051cd05f2dc74892c910d4f36ab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic005.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic005 { - @State rating: number = 3.5; - @State resourcePng: string = 'cat.jpg'; - @State resourceColor: Color = Color.Pink; - @State checkedStatus: boolean = false; - - @Builder - indicatorBuilder() { - Image(this.resourcePng) - .width('20vp') - .height('20vp') - } - - build() { - Row() { - Column() { - Text('图片传入网络图片') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height('50vp') - .width('50vp') - .checked(this.checkedStatus) - .radioStyle( - { - indicatorColor: Color.Pink - } - ) - .id('UIComponentButtonRadioLConic0050') - Button('切换图片') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentButtonRadioLConic0051') - .onClick(() => { - this.resourcePng = 'image2.png'; - this.checkedStatus = true; - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic008.ets deleted file mode 100644 index ccb3b044285f5dcd53c5a42197502ad06006e144..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic008.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic008 { - @State rating: number = 3.5; - @State resourcePng: string = 'cat.jpg'; - @State resourceColor: Color = Color.Pink; - @State checkedStatus: boolean = false; - - @Builder - indicatorBuilder() { - Image(this.resourcePng) - .width(100) - .height(100) - } - - build() { - Row() { - Column() { - Text('Radio不设置大小,image为100') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .checked(this.checkedStatus) - .radioStyle( - { - indicatorColor: Color.Pink - } - ) - .id('UIComponentButtonRadioLConic0080') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic009.ets deleted file mode 100644 index 50680246e684147b0e91a64d96b7c35932b3a261..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic009.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic009 { - @State rating: number = 3.5; - @State resourcePng: string = 'cat.jpg'; - @State resourceColor: Color = Color.Pink; - @State checkedStatus: boolean = false; - - @Builder - indicatorBuilder() { - Image(this.resourcePng) - .width(10) - .height(10) - } - - build() { - Row() { - Column() { - Text('Radio不设置大小,image为10') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .checked(this.checkedStatus) - .id('UIComponentButtonRadioLConic0090') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic013.ets deleted file mode 100644 index 07d799862b9ff84f24c03db4ab46df7917cd46a2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic013.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic013 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Text('text') - } - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height(50) - .width(50) - .checked(false) - .radioStyle( - { - checkedBackgroundColor: Color.Pink, - } - ) - .id('UIComponentButtonRadioLConic0130') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic019.ets deleted file mode 100644 index e73658debbf2ff9e09d52ee249f11a4e2b3ba0f9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic019.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic019 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - .width('100vp') - .height('100vp') - } - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder(), - }) - .height(50) - .width(50) - .checked(false) - .radioStyle( - { - indicatorColor: Color.Pink - } - ) - .id('UIComponentButtonRadioLConic0190') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic020.ets deleted file mode 100644 index 80c9c78daddb1366fc368120853886486bce7d14..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic020.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic020 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - .width('20vp') - .height('20vp') - } - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height('50vp') - .width('50vp') - .checked(false) - .radioStyle( - { - indicatorColor: Color.Pink - } - ) - .id('UIComponentButtonRadioLConic0200') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic022.ets deleted file mode 100644 index 0135451268fe1ff33befee2a0cee8cfd3a33112e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic022.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic022 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - .width('20vp') - .height('20vp') - } - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.TICK, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height('50vp') - .width('50vp') - .checked(false) - .id('UIComponentButtonRadioLConic0220') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic024.ets deleted file mode 100644 index cc19971a6b87837fee2ce36978eb48add61e8d91..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic024.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic024 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Text('text') - } - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.TICK, - indicatorBuilder: () => undefined - }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentButtonRadioLConic0240') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic025.ets deleted file mode 100644 index 34612d3bd33ad9133b84b3d0b83fb78533acf1ee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic025.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic025 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Text('text') - } - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.TICK, - indicatorBuilder: () => null - }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentButtonRadioLConic0250') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic027.ets deleted file mode 100644 index 817846e5590447f926f549deaeeb9d1632a948f1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic027.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic027 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - } - - build() { - Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { - Column() { - Text('Radio1') - Radio({ value: 'Radio1', group: 'radioGroup1', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .radioStyle({ - checkedBackgroundColor: Color.Pink - }) - .height(50) - .width(50) - .id('UIComponentButtonRadioLConic0270') - } - - Column() { - Text('Radio2') - Radio({ value: 'Radio2', group: 'radioGroup2', indicatorType: RadioIndicatorType.DOT }) - .checked(true) - .radioStyle({ - checkedBackgroundColor: Color.Pink - }) - .height(50) - .width(50) - .id('UIComponentButtonRadioLConic0271') - } - - Column() { - Text('Radio3') - Radio({ - value: 'Radio3', - group: 'radioGroup3', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .checked(true) - .radioStyle({ - checkedBackgroundColor: Color.Pink - }) - .height(50) - .width(50) - .id('UIComponentButtonRadioLConic0272') - } - }.padding({ top: 30 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic028.ets deleted file mode 100644 index 0daa7f0abef65a19b9af85d8acbf6ff38827bfd7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic028.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic028 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - } - - build() { - Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { - Column() { - Text('Radio1') - Radio({ value: 'Radio1', group: 'radioGroup1', indicatorType: RadioIndicatorType.TICK }) - .checked(true) - .radioStyle({ - checkedBackgroundColor: Color.Pink - }) - .height(50) - .width(50) - .id('UIComponentButtonRadioLConic0280') - } - - Column() { - Text('Radio2') - Radio({ value: 'Radio2', group: 'radioGroup2', indicatorType: RadioIndicatorType.DOT }) - .checked(true) - .radioStyle({ - checkedBackgroundColor: Color.Pink - }) - .height(50) - .width(50) - .id('UIComponentButtonRadioLConic0281') - } - - Column() { - Text('Radio3') - Radio({ - value: 'Radio3', - group: 'radioGroup3', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .checked(true) - .radioStyle({ - checkedBackgroundColor: Color.Pink - }) - .height(50) - .width(50) - .id('UIComponentButtonRadioLConic0282') - } - }.padding({ top: 30 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic030.ets deleted file mode 100644 index f4bca6bf9dbfb9d4572a1febb465f080e4240e0c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic030.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic030 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - .width(100) - .height(100) - } - - build() { - Row() { - Column() { - Text('indicatorBuilder值设置为image,Radio设置宽高为50,image设置宽高为100 clip设置true') - .width('100%') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height(50) - .width(50) - .checked(false) - .clip(true) - .margin({ - top: 20 - }) - .id('UIComponentButtonRadioLConic0300') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic031.ets deleted file mode 100644 index 4cf2c7ee2016e8cf00637fd0e7707afbfd55c4d1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic031.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonRadioLConic031 { - @State rating: number = 3.5; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - .width('20%') - .height('20%') - } - - build() { - Row() { - Column() { - Text('indicatorBuilder值设置为image,indicatorColor设为Pink,Radio设置为120,image传入”20%"图片') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder(), - }) - .height(120) - .width(120) - .checked(false) - .radioStyle( - { - indicatorColor: Color.Pink - } - ) - .id('UIComponentButtonRadioLConic0310') - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute004.ets deleted file mode 100644 index 7418a53002308b2ab8772a400884665049551301..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute004.ets +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute004 { - build() { - Row() { - Column({ space: 20 }) { - Text("默认值: 'HarmonyOS Sans', selected为0") - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0040') - .font({ - size: 5 - }) - .menuItemContentModifier(new FontSizeItemContentModifier(0)) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .selected(0) - - Text("默认值: 'HarmonyOS Sans'") - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0041') - .font({ - size: 0 - }) - .menuItemContentModifier(new FontSizeItemContentModifier(1)) - .selected(0) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .font({ - size: getContext().resourceManager.getNumber($r("app.integer.negative30")) - }) - - Text("默认值: 'HarmonyOS Sans'") - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0042') - .font({ - size: -5 - }) - .menuItemContentModifier(new FontSizeItemContentModifier(2)) - .selected(0) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .font({ - size: getContext().resourceManager.getNumber($r("app.integer.negative30")) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class FontSizeItemContentModifier implements ContentModifier { - selectNum: number = 0; - - constructor(selectNumber: number) { - this.selectNum = selectNumber; - } - - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(FontSizeItemBuilder); - } -} - -@Builder -function FontSizeItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute004${(configuration.contentModifier as FontSizeItemContentModifier).selectNum}_${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .fontSize(getFontSize((configuration.contentModifier as FontSizeItemContentModifier).selectNum)) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} - -function getFontSize(itemIndex: number) { - switch (itemIndex) { - case 0: - return 5; - case 1: - return 0; - case 2: - return -5; - default: - return 0; - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute005.ets deleted file mode 100644 index b16d622a5fbe8e44692c8e675d5c6f0076217aa8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute005.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute005 { - build() { - Row() { - Column({ space: 50 }) { - Text("默认值: 'HarmonyOS Sans', selected为0") - Select([{ - value: getContext().resourceManager.getStringSync($r("app.string.popup_font_family")), - }, { - value: '2', - }, { - value: '3', - }, { - value: '4', - }, { - value: '5', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0050') - .menuItemContentModifier(new FontMenuItemContentModifier(0)) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .selected(0) - - Select([{ - value: 'default_font_size', - }, { - value: getContext().resourceManager.getNumber($r("app.integer.negative30")) + '', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0051') - .menuItemContentModifier(new FontMenuItemContentModifier(1)) - .selected(0) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .font({ - size: getContext().resourceManager.getNumber($r("app.integer.negative30")) - }) - } - .width('350px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class FontMenuItemContentModifier implements ContentModifier { - selectNum: number = 0; - - constructor(selectNumber: number) { - this.selectNum = selectNumber; - } - - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(FontMenuItemBuilder); - } -} - -@Builder -function FontMenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute005${(configuration.contentModifier as FontMenuItemContentModifier).selectNum}_${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .fontSize(getContext().resourceManager.getNumber($r("app.integer.5"))) - .fontFamily(getContext().resourceManager.getStringSync($r("app.string.popup_font_time_picker"))) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute006.ets deleted file mode 100644 index c52ef9ec36e83f24fef987e50e46b4a6abe54941..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute006.ets +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute006 { - build() { - Row() { - Column({ space: 20 }) { - Text("默认值: 'HarmonyOS Sans', selected为0") - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0060') - .font({ - size: '5' - }) - .menuItemContentModifier(new FontSizeContentModifier(0)) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .selected(0) - - Text("默认值: 'HarmonyOS Sans'") - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0061') - .font({ - size: '0' - }) - .menuItemContentModifier(new FontSizeContentModifier(1)) - .selected(0) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .font({ - size: getContext().resourceManager.getNumber($r("app.integer.negative30")) - }) - - Text("默认值: 'HarmonyOS Sans'") - Select([{ - value: 'abc', - }, { - value: 'def', - }, { - value: 'ghi', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0062') - .font({ - size: '-5' - }) - .menuItemContentModifier(new FontSizeContentModifier(2)) - .selected(0) - .value(getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))) - .font({ - size: getContext().resourceManager.getNumber($r("app.integer.negative30")) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class FontSizeContentModifier implements ContentModifier { - selectNum: number = 0; - - constructor(selectNumber: number) { - this.selectNum = selectNumber; - } - - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(FontSizeMenuItemBuilder); - } -} - -@Builder -function FontSizeMenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute006${(configuration.contentModifier as FontSizeContentModifier).selectNum}_${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .fontSize(getMenuItemFontSize((configuration.contentModifier as FontSizeContentModifier).selectNum)) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} - -function getMenuItemFontSize(itemIndex: number) { - switch (itemIndex) { - case 0: - return '5'; - case 1: - return '0'; - case 2: - return '-5'; - default: - return '0'; - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute031.ets deleted file mode 100644 index fcc74902d02afab768e683841d36e76355dcd20e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute031.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute031 { - build() { - Row() { - Column({ space: 20 }) { - Text('默认值: 1, selected为-5') - Select([{ - value: '1', - }, { - value: '2', - }, { - value: '3', - }, { - value: '4', - }, { - value: '5', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0310') - .menuItemContentModifier(new TextFirstItemContentModifier()) - .selected(-5) - .value('1') - .obscured([ObscuredReasons.PLACEHOLDER]) - - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class TextFirstItemContentModifier implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(TextFirstMenuItemBuilder); - } -} - -@Builder -function TextFirstMenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute031${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute032.ets deleted file mode 100644 index 6ed37a90c794f5918e8cad3141ef7528ed5b6d7f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute032.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute032 { - build() { - Row() { - Column({ space: 20 }) { - Text('默认值: 1, selected为0') - Select([{ - value: '1', - }, { - value: '2', - }, { - value: '3', - }, { - value: '4', - }, { - value: '5', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0320') - .menuItemContentModifier(new MyMenuItemContentModifier()) - .selected(0) - .value('1') - .obscured([ObscuredReasons.PLACEHOLDER]) - - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class MyMenuItemContentModifier implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MenuItemBuilder); - } -} - -@Builder -function MenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute032${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute033.ets deleted file mode 100644 index 423734600ef57c2c796cf61bc55c55172dfe9a7c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute033.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute033 { - build() { - Row() { - Column({ space: 20 }) { - Text('默认值: 1, selected为3') - Select([{ - value: '1', - }, { - value: '2', - }, { - value: '3', - }, { - value: '4', - }, { - value: '5', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0330') - .menuItemContentModifier(new TextThirdItemContentModifier()) - .selected(3) - .value('1') - .obscured([ObscuredReasons.PLACEHOLDER]) - - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class TextThirdItemContentModifier implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(TextThirdMenuItemBuilder); - } -} - -@Builder -function TextThirdMenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute033${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute034.ets deleted file mode 100644 index 3ac6e1db7c5f2f7ba254b86a7530e9208b710f5f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute034.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute034 { - build() { - Row() { - Column({space: 20}) { - Text('默认值: 1, selected为6') - Select([{ - value: '1', - }, { - value: '2', - }, { - value: '3', - }, { - value: '4', - }, { - value: '5', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0340') - .menuItemContentModifier(new TextSecondItemContentModifier()) - .selected(6) - .value('1') - .obscured([ObscuredReasons.PLACEHOLDER]) - - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class TextSecondItemContentModifier implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(TextSecondMenuItemBuilder); - } -} - -@Builder -function TextSecondMenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute034${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute035.ets deleted file mode 100644 index 29f87ec28364bc38ca439a5fe0d28e27266743d0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute035.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectAttribute035 { - build() { - Row() { - Column({space: 20}) { - Text('默认值: 1, selected为-10异常值') - Select([{ - value: '1', - }, { - value: '2', - }, { - value: '3', - }, { - value: '4', - }, { - value: '5', - }]) - .width('100%') - .id('UIComponentButtonSelectAttribute0350') - .menuItemContentModifier(new TextFourItemContentModifier()) - .selected(-10) - .value('1') - .obscured([ObscuredReasons.PLACEHOLDER]) - - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class TextFourItemContentModifier implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(TextFourMenuItemBuilder); - } -} - -@Builder -function TextFourMenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .id(`UIComponentButtonSelectAttribute0350_${configuration.value}`) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020.ets deleted file mode 100644 index 8f94a66cdabdd87c205a1772b39b3a08779ec5aa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0020 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030.ets deleted file mode 100644 index 677f4acaa42c15ec2652d317a55fe3cea889288e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0030 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .width('100vp') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040.ets deleted file mode 100644 index 4e6852fff5aa3e56479faa4b8d21706919769fe1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0040 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .width('50vp') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050.ets deleted file mode 100644 index 8af8a70b7c52193e608c310833b9d93cba4f91e8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0050 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .width(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .width(null) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .width(-1) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .width("") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060.ets deleted file mode 100644 index 920a0e924e58fe6fbf831f3e72e661bdafbddba6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0060 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .width('66vp') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070.ets deleted file mode 100644 index ab77b0dd7fc8ab46e3703150e0e4343d4c739264..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0070 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080.ets deleted file mode 100644 index e6b928aa4374fb99ea58ba7fed4ff24219256a9d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0080 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderWidth(2) - .borderStyle({ - left: BorderStyle.Dashed, - right: BorderStyle.Dashed, - top: BorderStyle.Dashed, - bottom: BorderStyle.Dashed - }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090.ets deleted file mode 100644 index 662f00e9b593f57035392f0eb90e33d31c6bd9f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0090 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderWidth(2) - .borderStyle({ - left: BorderStyle.Dashed, - right: BorderStyle.Solid, - top: BorderStyle.Dotted, - bottom: BorderStyle.Dashed - }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100.ets deleted file mode 100644 index 97e2d6db1cd6d506ac7e62dd155d0cd18576bd0f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0100 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderWidth(2) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderWidth(2) - .borderStyle(BorderStyle.Solid) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110.ets deleted file mode 100644 index 3f2d24c293cd9da67b2229d14d7e9595a7838970..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0110 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderWidth(2) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120.ets deleted file mode 100644 index b27e5fc6cc6f9bc6f6bc5ee9c4fc3d1c5510761f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0120 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderRadius(20) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130.ets deleted file mode 100644 index 781645c06a28b4514d1c673caf0ece7f54b0571c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0130 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderRadius(500) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140.ets deleted file mode 100644 index 58b8dfe9ddfba1c9c9537292e2c8a21be9020227..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0140 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderRadius(-1) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderRadius('10%') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150.ets deleted file mode 100644 index 52c5fbc85daf6161168e9cd468cd5479726172f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0150 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderRadius(null) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderRadius(undefined) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160.ets deleted file mode 100644 index 1a976f06c15fc0d737f3af612f6b70802d6859dc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0160 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .borderRadius(20) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170.ets deleted file mode 100644 index 333f42417a212c78501ad2bcbbd6de8a3c6078d1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0170 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .font({ size: 16, weight: 500 }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180.ets deleted file mode 100644 index 8f02a8d103b8843cd7b735011f269700343ce9b1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0180 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .size(null) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .size(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .size({ width: -10, height: -10 }) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .size({ width: '10%', height: '10%' }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190.ets deleted file mode 100644 index a9dcdb2479eb284b9b985c08c4264fad49a724cb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0190 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .size({ width: '10%', height: '10%' }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200.ets deleted file mode 100644 index 35604723b14029f622c16ffe3241c9b02a4dc264..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0200 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .font({ weight: '-10%' }) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .font({ weight: -10 }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210.ets deleted file mode 100644 index 7552f1a5ce1ea32eead440a6d03302ff35095862..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0210 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .font({ weight: null }) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .font({ weight: undefined }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220.ets deleted file mode 100644 index 90fc8ed08252f3ba29d46fa12d3d1812a77418ae..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0220 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .font({ size: '16fp', weight: FontWeight.Medium }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230.ets deleted file mode 100644 index 00a103d33f4c90be2ec24116d14bedff573645ad..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0230 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(0xffff00) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240.ets deleted file mode 100644 index 376f2a5c4f79ba47d9247705ae1023d41abcf50f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0240 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(Color.Pink) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250.ets deleted file mode 100644 index e7a5a7eb2d734a282338c68d45ceccb23f368fe1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0250 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor('#ff0000ff') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260.ets deleted file mode 100644 index d032ff4771541d3e4ebef6a6884dd44451b52bba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0260 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor('#FF508131') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270.ets deleted file mode 100644 index 6bd7ffd20f29ac11fd1894866d3df5005dfe3225..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0270 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(null) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(0) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor("") - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor("2%") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280.ets deleted file mode 100644 index 1eab9672df58c690a9fd40626829c11d61b8ccce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0280 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(-1) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290.ets deleted file mode 100644 index 13d07c2334371b0bf959d1888d9ad28c74a33b7c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0290 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(Color.Black) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300.ets deleted file mode 100644 index e993e25a902e387c9129dec0e4de13af03be9414..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0300 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310.ets deleted file mode 100644 index e87e90e8f5fcb470c944852a2bbb72ac081c035d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0310 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor(0xffff00) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320.ets deleted file mode 100644 index c248a063abe0f6cdbefc9a13ee6147bd37f24c01..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0320 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor(Color.Pink) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330.ets deleted file mode 100644 index e4ccbe6b49bd3c2ab64317c7b7ce10b8ebf445a8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0330 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor('#ff0000ff') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340.ets deleted file mode 100644 index b7345220991d6a77a91e62dc7554a218c2f7042b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0340 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor('#FF508131') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350.ets deleted file mode 100644 index e99d7b4cba5776f32990b496ec75e3cdbd53072b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0350 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor(null) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor(-1) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor("") - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor('2%') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360.ets deleted file mode 100644 index 4c53312e3ec376eba2fe3b13e7a72b6ef0129fa5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0360 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor(0) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor('2%') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370.ets deleted file mode 100644 index 3d3d527e7fd6e5087b4dcb89ab059539d9858d97..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0370 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .backgroundColor('#E5000000') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380.ets deleted file mode 100644 index 0b1d4552c56d5248b52d69869fff23ca3b7dbdb1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0380 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390.ets deleted file mode 100644 index 0f726cb217981c6c9b011a46ad98a7c046fa993d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0390 { - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .padding({ top: 8, left: 16, bottom:8, right: 16 }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400.ets deleted file mode 100644 index 67bebde895c323c5e3a43829b48f34244e2ac1a4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0400 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .padding(-1) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410.ets deleted file mode 100644 index 720f69da841cb69faef83a2042d8257658228e0f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0410 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .padding(null) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420.ets deleted file mode 100644 index 5af0aab2d10ec3d39f7b9f0f7b262e3d3984fd4e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0420 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .padding({top: 8, left: 16, bottom: 8, right: 16}) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430.ets deleted file mode 100644 index 6f390512898ffc371da7f6b88a926239f8fca2f5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0430 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .padding(0) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450.ets deleted file mode 100644 index 542dacf9f992490f8f661bd04d1117b8b3e23c36..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0450 { - @State bgColor: ResourceColor = Color.Blue - @State text: string = "" - build() { - Row() { - Column() { - Button("文本长度>normal宽度:80") - .onClick(() => { - this.text = "这是一段测试文本" - }) - .id("UIComponentButtonSelectControlSize0450_001") - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - .value(this.text) - .fontColor(Color.White) - .backgroundColor(this.bgColor) - .gesture( - LongPressGesture({ repeat: false }) - .onAction((event: GestureEvent) => { - if (event) { - this.bgColor = this.bgColor === Color.Blue ? Color.Red : Color.Blue - } - }) - ) - .id("UIComponentButtonSelectControlSize0450_002") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470.ets deleted file mode 100644 index c8d6b399fdb947f4b25c2b9e40ed5bf9f15b2575..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0470 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480.ets deleted file mode 100644 index 146e5bd6edf856878904269c61901a99b59b9b1b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0480 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .width('100vp') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490.ets deleted file mode 100644 index edf8bc77e95d53108b909077bb4f8d5dc5f964d3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0490 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .width('50vp') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500.ets deleted file mode 100644 index 0c3c6c3ea5fc2fd467cb877906f1cda8a083b27d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0500 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .width(null) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .width(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .width(-1) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .width("") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510.ets deleted file mode 100644 index 39954515a249ff0379cdb65e56bf13f3f9b57b6a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0510 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .width('66vp') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520.ets deleted file mode 100644 index af78aa90b34344ad8435cfccb14faaa01fbcfbe7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0520 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderWidth(2) - .borderStyle({ - left: BorderStyle.Dotted, - right: BorderStyle.Dotted, - top: BorderStyle.Dotted, - bottom: BorderStyle.Dotted - }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530.ets deleted file mode 100644 index bfcffd51cee003d241874be4e03ed15fbd5298c2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0530 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderWidth(2) - .borderStyle({ - left: BorderStyle.Dotted, - right: BorderStyle.Dotted, - top: BorderStyle.Solid, - bottom: BorderStyle.Dashed - }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540.ets deleted file mode 100644 index 756265a746e0d6418679e83d95c9084a037a09ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0540 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderWidth(2) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderWidth(2) - .borderStyle(BorderStyle.Solid) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550.ets deleted file mode 100644 index 3676d33d1b4636779c63d17f5f99e8f5412f9677..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0550 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560.ets deleted file mode 100644 index 3dc41d0ff6df88e184de6356ffc8c95b2bc66274..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0560 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderRadius(20) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570.ets deleted file mode 100644 index f640cdd59ad5cce49e68cad88d571425a927e1aa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0570 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderRadius(500) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580.ets deleted file mode 100644 index 485aa5964a2d0ea16017117b1516029ff6b33c99..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0580 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderRadius('10%') - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderRadius(-1) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590.ets deleted file mode 100644 index 81db79de2545b35232cb672582f2e08c0810cbc2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0590 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderRadius(null) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderRadius(undefined) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600.ets deleted file mode 100644 index 2721958edba82caab500437bd88600223f7ce515..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0600 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .borderRadius(20) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610.ets deleted file mode 100644 index 0ef6660a7955e3324d0b3e2c99a9d7111e886004..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0610 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .font({ size: 16, weight: FontWeight.Bold }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620.ets deleted file mode 100644 index 85a2818f897a6835d4c5147dfd7a574653f1e279..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0620 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .size(null) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .size(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .size({ width: -10, height: -10 }) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .size({ width: '10%', height: '10%' }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630.ets deleted file mode 100644 index 1b59b7bac88f4e362b11a66fd41483c7ebe94fd8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0630 { - - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .size({ width: '10%', height: '10%' }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640.ets deleted file mode 100644 index 5fd234ce1275d6f4083c719bba4de049ac460628..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0640 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .font({ weight: -10}) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .font({ weight: '10%'}) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650.ets deleted file mode 100644 index b3d05edbc7127731040b29693980664b6ded46ba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0650 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .font({ weight: null}) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .font({ weight: undefined}) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .font({ weight: FontWeight.Medium}) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660.ets deleted file mode 100644 index 31bf89b8c0a35fd5f2993bf2d62896a941b0215e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0660 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .font({ size: 16, weight: FontWeight.Medium}) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670.ets deleted file mode 100644 index ab64d011268e11b1e36e310503c3538ef18bb8ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0670 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor(0xffff00) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680.ets deleted file mode 100644 index 474a2c6aa0970d0370be21171ac43f5cd2089fa3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0680 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor(Color.Pink) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690.ets deleted file mode 100644 index 54c714caaa07070be3f030dc17003e9baf00ee06..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0690 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor('#ff0000ff') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700.ets deleted file mode 100644 index ff167961a7ca74be9541eb2a8cd4a4477b3cb303..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0700 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor('#FF508131') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710.ets deleted file mode 100644 index b961501056f7907c3046f7b288e6b2c36f904f22..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0710 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor(null) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor(0) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor("") - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor('2%') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720.ets deleted file mode 100644 index 9d06cad3cf6931b585aaf518e7581cf0f0dbd01c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0720 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor(-1) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730.ets deleted file mode 100644 index a627db05c2f6f49b9aefd93ad72dac0048542656..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0730 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .fontColor(Color.Black) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740.ets deleted file mode 100644 index c4e55045b603afa48bb32508f41b61879c8cba16..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0740 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor(0xffff00) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750.ets deleted file mode 100644 index 18d4d90aff77f73a77e6fca51830e359448a2093..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0750 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor(Color.Pink) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760.ets deleted file mode 100644 index e9cb80faa787d4a59d05ea14258febebb609daff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0760 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor('#ff0000ff') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770.ets deleted file mode 100644 index 66f2d698ea3c18b18f7e46e9a4950db9375a8b44..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0770 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor('#FF508131') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780.ets deleted file mode 100644 index aa1eec49dfe7f8047ac7578f2bc3102864f5f636..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0780 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor(undefined) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor(null) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor(-1) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor("") - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor('2%') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790.ets deleted file mode 100644 index 9cec4110f7ef3796a1aa953f3e174e688bcd9528..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0790 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor(0) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor('2%') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800.ets deleted file mode 100644 index 1c85a911a36afda7b6c0eb08b13384162d7e729c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0800 { - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .value(this.text) - .backgroundColor('#E5000000') - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810.ets deleted file mode 100644 index 56cf5860c52247cfde1fb6f6b42432899281014a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0810 { - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .padding({ top: 8, left: 16, bottom:8, right: 16 }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820.ets deleted file mode 100644 index 26bf15aac66dfec53d4b84cf87ea6d4193e6402e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0820 { - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .padding(-1) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830.ets deleted file mode 100644 index 3b169d5f54743bb0440227850caaacc9df983a1e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0830 { - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .padding(null) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .padding(undefined) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840.ets deleted file mode 100644 index e4bb5cdf2f4bee4e50285056f49b44c4b4e4e36d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0840 { - build() { - Row() { - Column() { - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - Select(this.getOptions()) - .controlSize(ControlSize.SMALL) - .padding({ top: 8, left: 16, bottom: 8, right:16 }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860.ets deleted file mode 100644 index f46d0f68f2820c7e588eb17d476d32ac43d143b4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0860 { - @State bgColor: ResourceColor = Color.Blue - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "" - build() { - Row() { - Column() { - Button("文本长度>normal宽度:80") - .onClick(() => { - this.text = "这是一段测试文本" - }) - .id("UIComponentButtonSelectControlSize0860_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0860_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - .fontColor(Color.White) - .backgroundColor(this.bgColor) - .gesture( - LongPressGesture({ repeat: false }) - .onAction((event: GestureEvent) => { - if (event) { - this.bgColor = this.bgColor === Color.Blue ? Color.Red : Color.Blue - } - }) - ) - .id("UIComponentButtonSelectControlSize0860_003") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880.ets deleted file mode 100644 index 7f56d5487da15f7b8ef5220e6707ba1e2aca5787..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0880 { - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "" - build() { - Row() { - Column() { - Button("文本长度>normal宽度:80") - .onClick(() => { - this.text = "这是一段测试文本" - }) - .id("UIComponentButtonSelectControlSize0880_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0880_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890.ets deleted file mode 100644 index 9b00212ebc021e3628b7594b00b6d21d778e0765..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import measure from '@ohos.measure' - -@Entry -@Component -struct UIComponentButtonSelectControlSize0890 { - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "" - - build() { - Row() { - Column() { - Button("文本长度大于small小于normal:56") - .onClick(() => { - this.text = "oi.." - }) - .id("UIComponentButtonSelectControlSize0890_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0890_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900.ets deleted file mode 100644 index 8f20770318176a098250b13a9dfab887100a699f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0900 { - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "" - build() { - Row() { - Column() { - Button("文本长度 { - this.text = "1" - }) - .id("UIComponentButtonSelectControlSize0900_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0900_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910.ets deleted file mode 100644 index a41053058743deb2e13df7f14860fb1108d841e6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0910 { - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "" - build() { - Row() { - Column() { - Button("文本超长”你好我的朋友上午好早上好中午好晚上好晚安你好我的朋友上午好早上好中午好晚上好晚安”") - .onClick(() => { - this.text = '你好我的朋友上午好早上好中午好晚上好晚安你好我的朋友上午好早上好中午好晚上好晚安' - }) - .id("UIComponentButtonSelectControlSize0910_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0910_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920.ets deleted file mode 100644 index 7cc25223cef4275b0b4bef28ae8a473451c6deec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0920 { - @State control: ControlSize = ControlSize.NORMAL - @State containerWidth: Length = -1 - build() { - Row() { - Column() { - Button("容器宽度大于normal宽度:80") - .onClick(() => { - this.containerWidth = 80 - }) - .id("UIComponentButtonSelectControlSize0920_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0920_002") - Select(this.getOptions()) - .controlSize(this.control) - .width(this.containerWidth) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930.ets deleted file mode 100644 index 665fa8feb5c83fc01dc87eb8521dda5210c8f7fa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0930 { - @State control: ControlSize = ControlSize.NORMAL - @State containerWidth: Length = -1 - build() { - Row() { - Column() { - Button("容器宽度大于small小于normal:56") - .onClick(() => { - this.containerWidth = 56 - }) - .id("UIComponentButtonSelectControlSize0930_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0930_002") - Select(this.getOptions()) - .controlSize(this.control) - .width(this.containerWidth) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940.ets deleted file mode 100644 index 05e161493059e9646406aeafa6a89ae97f8cff73..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0940 { - @State control: ControlSize = ControlSize.NORMAL - @State containerWidth: Length = -1 - build() { - Row() { - Column() { - Button("容器宽度小于small:20") - .onClick(() => { - this.containerWidth = 20 - }) - .id("UIComponentButtonSelectControlSize0940_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0940_002") - Select(this.getOptions()) - .controlSize(this.control) - .width(this.containerWidth) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950.ets deleted file mode 100644 index e05b4d85e24bb28e448e155ca6825914e2a3b5e5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0950 { - @State fontSize: Length = -1 - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Button("文本高度>normal高度:font-size:100") - .onClick(() => { - this.fontSize = 100 - }) - .id("UIComponentButtonSelectControlSize0950_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0950_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - .font({ size: this.fontSize }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960.ets deleted file mode 100644 index 60c309e4dfbdccf66073ab2bffa1486ea804d2ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0960 { - @State fontSize: Length = -1 - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Button("文本高度>normal高度:font-size:35") - .onClick(() => { - this.fontSize = 35 - }) - .id("UIComponentButtonSelectControlSize0960_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0960_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - .font({ size: this.fontSize }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970.ets deleted file mode 100644 index 7861d93219048c224b43cb25eb0febb8a9884e4b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0970 { - @State fontSize: Length = -1 - @State control: ControlSize = ControlSize.NORMAL - @State text: string = "TTTTT" - build() { - Row() { - Column() { - Button("文本高度 { - this.fontSize = 20 - }) - .id("UIComponentButtonSelectControlSize0970_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0970_002") - Select(this.getOptions()) - .controlSize(this.control) - .value(this.text) - .font({ size: this.fontSize }) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980.ets deleted file mode 100644 index 80f00d80fd5ea5e17c01f6f5c64a4c2e9eeb8d78..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0980 { - @State control: ControlSize = ControlSize.NORMAL - @State containerHeight: Length = -1 - build() { - Row() { - Column() { - Button("容器高度大于normal高度:80") - .onClick(() => { - this.containerHeight = 80 - }) - .id("UIComponentButtonSelectControlSize0980_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0980_002") - Select(this.getOptions()) - .controlSize(this.control) - .height(this.containerHeight) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990.ets deleted file mode 100644 index 600813ccde7e48eb3aeb3d1ebaba22af08132366..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize0990 { - @State control: ControlSize = ControlSize.NORMAL - @State containerHeight: Length = -1 - build() { - Row() { - Column() { - Button("容器高度大于small小于normal:35") - .onClick(() => { - this.containerHeight = 35 - }) - .id("UIComponentButtonSelectControlSize0990_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize0990_002") - Select(this.getOptions()) - .controlSize(this.control) - .height(this.containerHeight) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000.ets deleted file mode 100644 index 96ec6daac73f08dcf65d3fe7b947c951c1a27cb6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize1000 { - @State control: ControlSize = ControlSize.NORMAL - @State containerHeight: Length = -1 - build() { - Row() { - Column() { - Button("容器高度小于normal:20") - .onClick(() => { - this.containerHeight = 20 - }) - .id("UIComponentButtonSelectControlSize1000_001") - Button("点击切换controlSize类型") - .onClick(() => { - this.control = this.control === ControlSize.NORMAL ? ControlSize.SMALL : ControlSize.NORMAL - }) - .id("UIComponentButtonSelectControlSize1000_002") - Select(this.getOptions()) - .controlSize(this.control) - .height(this.containerHeight) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010.ets deleted file mode 100644 index f3b927892901d491719cbba6b2853f7ffa54d4e2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectControlSize1010 { - build() { - Row() { - Column() { - Select(this.getOptions()) - Select(this.getOptions()) - .controlSize(ControlSize.NORMAL) - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options:Array = []; - for (let i = 1; i <= 20; i++) { - const value = i === 3 ? "" : (i === 4 ? '这是一个非常长的文本,可能会超过显示限制,需要截断或者滚动查看' : `item${i}`); - options.push({ value: value }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0010.ets deleted file mode 100644 index 1723bad35920797f3e27a4d667508949aab9c19d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0010.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0010 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0010_001') - Button('010_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: '1px', - color: '#33000000' - } - }) - .id('UIComponentButtonSelectDivider0010_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0010_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0020.ets deleted file mode 100644 index 03c531ad83b27e8b74768edba8009f653c7e8027..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0020.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0020 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = { - strokeWidth: 20, - startMargin: 50, - endMargin: 50, - color: Color.Green - }; - - build() { - Row() { - Column() { - Button('divider为nuIl') - .onClick(() => { - this.isDivider = false - }) - .id('UIComponentButtonSelectDivider0020_001') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0020_002") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0030.ets deleted file mode 100644 index e2d2813f4a7b18cea2886c7b95c8f69a98f177fe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0030.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0030 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0030_001') - Button('030_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: '1px', - color: '#33000000' - } - }) - .id('UIComponentButtonSelectDivider0030_002') - Select([{ value: 'aaa'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0030_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0040.ets deleted file mode 100644 index faeb73bebc2e144bebb0b915c17c4d2ecbc6a038..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0040.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0040 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0040_001') - Button('040_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: (getContext().resourceManager.getNumber($r("app.integer.5")) + 'vp') as VP, - startMargin: (getContext().resourceManager.getNumber($r("app.integer.5")) + 'vp') as VP, - endMargin: (getContext().resourceManager.getNumber($r("app.integer.5")) + 'vp') as VP, - color: getContext().resourceManager.getColorSync($r("app.color.color3")) - } - }) - .id('UIComponentButtonSelectDivider0040_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0040_003") - } - .width('100%') - .height('100%') - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0050.ets deleted file mode 100644 index c6459ac462152df9e974402fdccdbf0a6bdeb945..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0050.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0050 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0050_001') - Button('050_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: 20, - startMargin: 50, - endMargin: 50, - color: Color.Green - } - }) - .id('UIComponentButtonSelectDivider0050_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .optionWidth(100.1) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0050_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0060.ets deleted file mode 100644 index 3acf606d4244dea6dc030651f39c88c2b6997dee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0060.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0060 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0060_001') - Button('060_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: '5fp', - startMargin: '5fp', - endMargin: '5fp', - color: '#ff00ff' - } - }) - .id('UIComponentButtonSelectDivider0060_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0060_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0070.ets deleted file mode 100644 index eba0a11907db6ab38e9a1e0f7ca86d322b003830..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0070.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0070 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0070_001') - Button('070_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: '10lpx', - startMargin: '10lpx', - endMargin: '10lpx', - color: Color.Green - } - }) - .id('UIComponentButtonSelectDivider0070_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0070_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0080.ets deleted file mode 100644 index d58b76462276502b4e5a15bab8704cb2f5bf153b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0080.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0080 { - @State isDivider: boolean = true - build() { - Row() { - Column() { - Button('divider不设置') - .onClick(() => { - this.isDivider = false - }) - .id('UIComponentButtonSelectDivider0080_001') - if (!this.isDivider) { - Select([{ value: 'aaa' }, { value: 'bbb' }, { value: 'ccc' }]) - .id("UIComponentButtonSelectDivider0080_002") - } - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0090.ets deleted file mode 100644 index 1b7daecd7285f504aa6dacd9962b2ba5663e4742..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0090.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0090 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0090_001') - Button('090_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: -10, - startMargin: -10, - endMargin: -10, - color: 'null' - } - }) - .id('UIComponentButtonSelectDivider0090_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0090_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0100.ets deleted file mode 100644 index 667bcc127c65cac049fb894e8c8b21b7e8177898..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0100.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0100 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0100_001') - Button('100_divider') - .onClick(() => { - this.dividerConfig = { - startMargin: 28, - endMargin: 28 - } - }) - .id('UIComponentButtonSelectDivider0100_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .optionWidth(56) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0100_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0110.ets deleted file mode 100644 index b6998efad9edebbf93f1d6650d2b7543ad821f10..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0110.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0110 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0110_001') - Button('110_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: undefined, - startMargin: undefined, - endMargin: undefined, - color: undefined - } - }) - .id('UIComponentButtonSelectDivider0110_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0110_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0120.ets deleted file mode 100644 index 971f2ca01c505271c106a64c76eaf5ced6e83ec3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0120.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0120 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0120_001') - Button('120_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: '20px', - startMargin: '20px', - endMargin: '10px', - color: Color.Red - } - }) - .id('UIComponentButtonSelectDivider0120_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0120_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0130.ets deleted file mode 100644 index 0420ef5af393719d6f5104174de8a28822c8878f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0130.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0130 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('动态切换') - .onClick(() => { - this.isDivider = !this.isDivider - }) - .id('UIComponentButtonSelectDivider0130_001') - Button('130_动态切换') - .onClick(() => { - this.dividerConfig = { - strokeWidth: 20, - startMargin: 50, - endMargin: 50, - color: Color.Green - } - }) - .id('UIComponentButtonSelectDivider0130_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? - {strokeWidth: -10, startMargin: -10, endMargin: -10, color: undefined} : this.dividerConfig) - .id("UIComponentButtonSelectDivider0130_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0140.ets deleted file mode 100644 index f3e136e008ba0d59187fa0f65ff61182b32ccf57..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0140.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0140 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0140_001') - Button('140_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: '5vp', - startMargin: '5vp', - endMargin: '5vp', - color: 0xffff00 - } - }) - .id('UIComponentButtonSelectDivider0140_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0140_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0150.ets deleted file mode 100644 index 4cee193de6dd4c5e735e4f21e0ebb23c84fb079a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0150.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0150 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0150_001') - Button('150_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: 99999, - startMargin: 99999, - endMargin: 99999, - color: 'null' - } - }) - .id('UIComponentButtonSelectDivider0150_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0150_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0160.ets deleted file mode 100644 index 8a4daf53bb19d6d204c98e345439411b42b72a42..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0160.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonSelectDivider0160 { - @State isDivider: boolean = false - @State dividerConfig: DividerOptions = {}; - - build() { - Row() { - Column() { - Button('divider不为null') - .onClick(() => { - this.isDivider = true - }) - .id('UIComponentButtonSelectDivider0160_001') - Button('160_divider') - .onClick(() => { - this.dividerConfig = { - strokeWidth: undefined, - startMargin: undefined, - endMargin: undefined, - color: 'null' - } - }) - .id('UIComponentButtonSelectDivider0160_002') - Select([{ value: 'aaa'}, { value: 'bbb'}, { value: 'ccc'}]) - .divider(this.isDivider ? this.dividerConfig : null) - .id("UIComponentButtonSelectDivider0160_003") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle051.ets deleted file mode 100644 index 02ef62713f55e3099929e119e943e3a351acc1be..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle051.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonStyle051 { - @State rating: number = 2; - @State myButtonModifier: RatingAttributeModifier = new RatingAttributeModifier(); - - build() { - Row() { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .attributeModifier(this.myButtonModifier) - Column() { - Button('Modifier') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentButtonStyle0510') - .onClick(() => { - this.rating = 3; - }) - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class RatingAttributeModifier implements AttributeModifier { - stars: number = 0; - stepSize: number = 0; - starStyle: StarStyleOptions = { - backgroundUri: '', - foregroundUri: '' - }; - - applyNormalAttribute(instance: RatingAttribute): void { - instance.stars(this.stars); - instance.stepSize(this.stepSize); - instance.starStyle(this.starStyle); - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle052.ets deleted file mode 100644 index 574afb04d96e5269a53eeed5425fe5caac71c189..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle052.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonStyle052 { - @State rating: number = 2; - @State myButtonModifier: StarsAttributeModifier = new StarsAttributeModifier(); - - build() { - Row() { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .attributeModifier(this.myButtonModifier) - Column() { - Button('Modifier') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentButtonStyle0520') - .onClick(() => { - this.myButtonModifier.stars = 8; - }) - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class StarsAttributeModifier implements AttributeModifier { - stars: number = 0; - stepSize: number = 0; - starStyle: StarStyleOptions = { - backgroundUri: '', - foregroundUri: '' - }; - - applyNormalAttribute(instance: RatingAttribute): void { - instance.stars(this.stars); - instance.stepSize(this.stepSize); - instance.starStyle(this.starStyle); - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle053.ets deleted file mode 100644 index ea149456302defd96d1f28c326ea75c2d6c949e5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle053.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonStyle053 { - @State rating: number = 2; - @State stepSizeTextTip: string = 'stepSize: 1'; - @State myButtonModifier: StepSizeAttributeModifier = new StepSizeAttributeModifier(); - - build() { - Row() { - Column() { - Text(this.stepSizeTextTip) - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(1) - .margin({ top: 24 }) - .attributeModifier(this.myButtonModifier) - Column() { - Button('Modifier') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentButtonStyle0530') - .onClick(() => { - this.myButtonModifier.stepSize = 0.5; - this.rating += this.myButtonModifier.stepSize; - this.stepSizeTextTip = 'stepSize: ' + this.myButtonModifier.stepSize; - }) - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class StepSizeAttributeModifier implements AttributeModifier { - stars: number = 0; - stepSize: number = 0; - starStyle: StarStyleOptions = { - backgroundUri: '', - foregroundUri: '' - }; - - applyNormalAttribute(instance: RatingAttribute): void { - instance.stars(this.stars); - instance.stepSize(this.stepSize); - instance.starStyle(this.starStyle); - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle054.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle054.ets deleted file mode 100644 index 20ffbc5946b88695a9d00f876ad6d84d865cfc8e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle054.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonStyle054 { - @State myButtonModifier: StarStyleAttributeModifier = new StarStyleAttributeModifier(); - - build() { - Row() { - Column() { - Rating({ rating: 1, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .attributeModifier(this.myButtonModifier) - Column() { - Button('Modifier') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentButtonStyle0540') - .onClick(() => { - this.myButtonModifier.starStyle = { - backgroundUri: 'cat.jpg', - foregroundUri: 'cat.jpg' - }; - }) - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class StarStyleAttributeModifier implements AttributeModifier { - stars: number = 0; - stepSize: number = 0; - starStyle: StarStyleOptions = { - backgroundUri: '', - foregroundUri: '' - }; - - applyNormalAttribute(instance: RatingAttribute): void { - instance.stars(this.stars); - instance.stepSize(this.stepSize); - instance.starStyle(this.starStyle); - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle055.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle055.ets deleted file mode 100644 index 60c507563d4e42c7949fca04aad857deab81f969..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle055.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonStyle055 { - @State rating: number = 3.5; - @State myButtonModifier: RadioStyleAttributeModifier = new RadioStyleAttributeModifier(); - - build() { - Row() { - Column() { - Text('Radio') - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(true) - .attributeModifier(this.myButtonModifier) - .id('UIComponentButtonStyle0550') - .onClick(() => { - this.myButtonModifier.radioStyle = { - checkedBackgroundColor: 'rgba(255,100,255,0.5)', - uncheckedBorderColor: Color.Black, - indicatorColor: Color.White, - }; - }) - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class RadioStyleAttributeModifier implements AttributeModifier { - radioStyle: RadioStyle = { - checkedBackgroundColor: undefined, - uncheckedBorderColor: undefined, - indicatorColor: undefined - }; - - applyNormalAttribute(instance: RadioAttribute): void { - instance.radioStyle(this.radioStyle) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle056.ets deleted file mode 100644 index e41bf8d1fc74182a1528df483c43b55b45016d4e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle056.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonStyle056 { - @State rating: number = 3.5; - @State myButtonModifier: RadioAttributeModifier = new RadioAttributeModifier(); - - build() { - Row() { - Column() { - Text('Radio') - Radio({ value: 'Radio', group: 'radioGroup' }) - .checked(false) - .attributeModifier(this.myButtonModifier) - .id('UIComponentButtonStyle0560') - .onClick(() => { - this.myButtonModifier.widthValue = 30; - this.myButtonModifier.heightValue = 30; - }) - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class RadioAttributeModifier implements AttributeModifier { - widthValue: number = 50 - heightValue: number = 50 - - applyNormalAttribute(instance: RadioAttribute): void { - instance.width(this.widthValue) - instance.height(this.heightValue) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle057.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle057.ets deleted file mode 100644 index cdf850be93bf8b53a4e3f9b3b92825abd888582f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentButtonStyle/UIComponentButtonStyle057.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentButtonStyle057 { - @State rating: number = 3.5; - @State myButtonModifier: CheckedAttributeModifier = new CheckedAttributeModifier(); - - build() { - Row() { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - Column() { - Text('Radio') - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(false) - .attributeModifier(this.myButtonModifier) - .id('UIComponentButtonStyle0570') - .onChange((isChecked: boolean) => { - this.myButtonModifier.checked = isChecked; - }) - } - } - .width('200px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -class CheckedAttributeModifier implements AttributeModifier { - checked: boolean = false; - - applyNormalAttribute(instance: RadioAttribute): void { - instance.checked(this.checked); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor001.ets new file mode 100644 index 0000000000000000000000000000000000000000..b07e37e69d07118580309b14806cfffddb8797a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor001.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 UIComponentCreateColor001 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + TextInput({ controller: this.controller, text: this.inputValue }) + .id('inputComponent') + .margin(10) + .border({ width: 1 }) + .height('48vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor002.ets new file mode 100644 index 0000000000000000000000000000000000000000..8990f3934c25a5d7c25d2d98a0d56a62f0a50504 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor002.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 UIComponentCreateColor002 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State selectedBackgroundColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the selected background color to red') + .id('redBackground') + .margin({ bottom: 20 }) + .onClick(() => { + this.selectedBackgroundColor = Color.Red; + }) + + Button('Change the selected background color to green') + .id('greenBackground') + .margin({ bottom: 20 }) + .onClick(() => { + this.selectedBackgroundColor = Color.Green; + }) + + TextInput({ controller: this.controller, text: this.inputValue }) + .id('inputComponent') + .margin(10) + .border({ width: 1 }) + .height('48vp') + .selectedBackgroundColor(this.selectedBackgroundColor) + .copyOption(CopyOptions.LocalDevice) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor003.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba29dadac018af26b069ebc841c9ffb03f43ce66 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor003.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 UIComponentCreateColor003 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + @State opacityNumber: number = 1; + + build() { + Column() { + Button('caretColor') + .id('caretColor') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = " rgba(255,0,0,0.5)"; + }) + + Button('opacity') + .id('opacity') + .margin({ bottom: 20 }) + .onClick(() => { + this.opacityNumber = 0.2; + }) + + TextInput({ controller: this.controller, text: this.inputValue }) + .id('inputComponent') + .margin(10) + .border({ width: 1 }) + .height('48vp') + .opacity(this.opacityNumber) + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor004.ets new file mode 100644 index 0000000000000000000000000000000000000000..3ca2138489eb8162fe571e96d9a34e72e0882d17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor004.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 UIComponentCreateColor004 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + @State selectedBackgroundColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Set caretColor to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Set caretColor to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + Button('Set selectedBackgroundColor to red') + .id('redBackgroundColor') + .margin({ bottom: 20 }) + .onClick(() => { + this.selectedBackgroundColor = Color.Red; + }) + + Button('Set selectedBackgroundColor to green') + .id('greenBackgroundColor') + .margin({ bottom: 20 }) + .onClick(() => { + this.selectedBackgroundColor = Color.Green; + }) + + TextInput({ controller: this.controller, text: this.inputValue }) + .id('inputComponent') + .margin(10) + .border({ width: 1 }) + .height('48vp') + .caretColor(this.caretColor) + .selectedBackgroundColor(this.selectedBackgroundColor) + .copyOption(CopyOptions.LocalDevice) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_1.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_1.ets new file mode 100644 index 0000000000000000000000000000000000000000..12c1bfae3f017aa3b12ab5e483a9ad0b89eb1875 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_1.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 UIComponentCreateColor006_1 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Row() { + Text('Normal') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0060') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.Normal) + } + + Row() { + Text('Password') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0061') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.Password) + } + + Row() { + Text('Email') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0062') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.Email) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_2.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_2.ets new file mode 100644 index 0000000000000000000000000000000000000000..cf02e28bc86c0b30fe98afd2273ba7a96c47efa9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_2.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 UIComponentCreateColor006_2 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Set caretColor to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Row() { + Text('Number') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0063') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.Number) + } + + Row() { + Text('PhoneNumber') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0064') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.PhoneNumber) + } + + Row() { + Text('USER_NAME') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0065') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.USER_NAME) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_3.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_3.ets new file mode 100644 index 0000000000000000000000000000000000000000..fafc203ff0f5d070bfe58a003c9fb0863748039a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor006_3.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 UIComponentCreateColor006_3 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Set caretColor to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + Row() { + Text('NEW_PASSWORD') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0066') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.NEW_PASSWORD) + } + + Row() { + Text('NUMBER_PASSWORD') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0067') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.NUMBER_PASSWORD) + } + + Row() { + Text('NUMBER_DECIMAL') + TextInput({ controller: this.controller, text: this.inputValue }) + .id('UIComponentCreateColor0068') + .margin(5) + .border({ width: 1 }) + .height('35vp') + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + .type(InputType.NUMBER_DECIMAL) + } + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor007.ets new file mode 100644 index 0000000000000000000000000000000000000000..6b00a34f84f2b10122168e8225f807551b8da37a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor007.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 UIComponentCreateColor007 { + controller: TextInputController = new TextInputController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + TextInput({ controller: this.controller, text: this.inputValue }) + .id('inputComponent') + .margin(10) + .border({ width: 1 }) + .height('48vp') + .style(TextContentStyle.INLINE) + .caretColor(this.caretColor) + .copyOption(CopyOptions.LocalDevice) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor008.ets new file mode 100644 index 0000000000000000000000000000000000000000..dbd9e114e6aef8f6d6121b9bb8990851b60c3261 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor008.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 UIComponentCreateColor008 { + controller: TextAreaController = new TextAreaController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + TextArea({ controller: this.controller, text: this.inputValue}) + .id('textAreaComponent') + .caretColor(this.caretColor) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor009.ets new file mode 100644 index 0000000000000000000000000000000000000000..4564984b96d54fe4a147e934754429bd8c9513a5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor009.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 UIComponentCreateColor009 { + controller: TextAreaController = new TextAreaController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + @State opacityNumber: number = 1; + + build() { + Column() { + Button('caretColor') + .id('caretColor') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = " rgba(255,0,0,0.5)"; + }) + + Button('opacity') + .id('opacity') + .margin({ bottom: 20 }) + .onClick(() => { + this.opacityNumber = 0.2; + }) + + TextArea({ controller: this.controller, text: this.inputValue}) + .id('textAreaComponent') + .caretColor(this.caretColor) + .height(200) + .opacity(this.opacityNumber) + .copyOption(CopyOptions.LocalDevice) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor011.ets new file mode 100644 index 0000000000000000000000000000000000000000..67450e6f31da54d3c39230e4d5ad19caf5b0c23e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor011.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 UIComponentCreateColor011 { + controller: TextAreaController = new TextAreaController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + @State opacityNumber: number = 1; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + TextArea({ controller: this.controller, text: this.inputValue }) + .id('textAreaComponent') + .caretColor(this.caretColor) + .height(200) + .opacity(this.opacityNumber) + .copyOption(CopyOptions.LocalDevice) + .style(TextContentStyle.INLINE) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..77d0abf84622aeb1b6e407ff247c20aeae57a76e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0120.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 UIComponentCreateColor0120 { + controller: TextAreaController = new TextAreaController(); + @State inputValue: string = "123333445454545451212"; + @State typeNormal: TextAreaType = TextAreaType.NORMAL; + + build() { + Column() { + TextArea({ controller: this.controller, text: this.inputValue }) + .id('textAreaComponent') + .type(this.typeNormal) + .width('50%') + .height(50) + .margin(2) + Button('切换输入框类型为email') + .id('changeButton1') + .margin(2) + .onClick(() => { + this.typeNormal = TextAreaType.EMAIL; + }) + Button('切换输入框类型为NUMBER') + .id('changeButton2') + .margin(2) + .onClick(() => { + this.typeNormal = TextAreaType.NUMBER; + }) + Button('切换输入框类型为PHONE_NUMBER') + .id('changeButton3') + .margin(2) + .onClick(() => { + this.typeNormal = TextAreaType.PHONE_NUMBER; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..981168393a3a57e9cd30cb123c7afb29f2c86c57 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0130.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 UIComponentCreateColor0130 { + controller: SearchController = new SearchController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .caretStyle({ + width: '1.5vp', + color: this.caretColor + }) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..8ef19d3824526e2d7115265beb968ed42dc3f342 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0140.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 UIComponentCreateColor0140 { + controller: SearchController = new SearchController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + Button('setTextSelection') + .id('setTextSelection') + .margin({ bottom: 20 }) + .onClick(() => { + this.controller.setTextSelection(0, 5); + }) + + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .caretStyle({ + width: '1.5vp', + color: this.caretColor + }) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..51f0a64b765859165b8b2add0a5abdeaa3347995 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0150.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 UIComponentCreateColor0150 { + controller: SearchController = new SearchController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to rgba(255,0,0,0.5)') + .id('btnCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = 'rgba(255,0,0,0.5)'; + }) + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .caretStyle({ + width: '1.5vp', + color: this.caretColor + }) + .opacity(0.2) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..234ae91ce772515be0d4b1f5353c6d2d9212207b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0160.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 UIComponentCreateColor0160 { + controller: SearchController = new SearchController(); + @State inputValue: string = "123333445454545451212"; + @State typeNormal: SearchType = SearchType.NORMAL; + + build() { + Column() { + Search({ controller: this.controller, value: this.inputValue }) + .id('textAreaComponent') + .type(this.typeNormal) + .width('50%') + .height(50) + .margin(2) + Button('切换输入框类型为email') + .id('changeButton1') + .margin(2) + .onClick(() => { + this.typeNormal = SearchType.EMAIL; + }) + Button('切换输入框类型为NUMBER') + .id('changeButton2') + .margin(2) + .onClick(() => { + this.typeNormal = SearchType.NUMBER; + }) + Button('切换输入框类型为PHONE_NUMBER') + .id('changeButton3') + .margin(2) + .onClick(() => { + this.typeNormal = SearchType.PHONE_NUMBER; + }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..6f5e9c4558548160e8dfb21c6eeee3e90dfead69 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0170.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 UIComponentCreateColor0170 { + controller: SearchController = new SearchController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .caretStyle({ + width: '1.5vp', + color: this.caretColor + }) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..f69004faf9b88cf768c84dba4ebce876cb7efa17 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0180.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 UIComponentCreateColor0180 { + controller: SearchController = new SearchController(); + @State inputValue: string = ''; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .caretStyle({ + width: '5vp', + color: this.caretColor + }) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..b5c72f22118aae5f92a6c3100f96f39d984454c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0200.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 UIComponentCreateColor0200 { + controller: TextAreaController = new TextAreaController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + TextArea({ controller: this.controller, text: this.inputValue }) + .id('textAreaComponent') + .caretStyle({ + width: '1.5vp', + color: this.caretColor + }) + .selectedBackgroundColor(this.caretColor) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..746dc4e94140c7a970b5a6c9bcdac8f6fd434d18 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentCreateColor/UIComponentCreateColor0210.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 UIComponentCreateColor0210 { + controller: SearchController = new SearchController(); + @State inputValue: string = ""; + @State caretColor: ResourceColor = Color.Blue; + + build() { + Column() { + Button('Change the caret color to red') + .id('redCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Red; + }) + + Button('Change the caret color to green') + .id('greenCaret') + .margin({ bottom: 20 }) + .onClick(() => { + this.caretColor = Color.Green; + }) + + Search({ controller: this.controller, value: this.inputValue }) + .id('searchComponent') + .caretStyle({ + width: '1.5vp', + color: this.caretColor + }) + .selectedBackgroundColor(this.caretColor) + .height(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0010.ets deleted file mode 100644 index 25578282f9ff27eee909809e2fe0ef6044220bee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0010.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0010 { - @State symbolModifier: SymbolGlyphModifier | null = null - - build() { - Row() { - Column() { - Button('010_symbolicon') - .onClick(() => { - this.symbolModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_star')) - .fontSize(999) - .fontColor(["#ffffff"]) - }) - .id('UIComponentFunctionSelectSymbol0010_001') - Select([{ value: 'aaa', symbolIcon: this.symbolModifier }]) - .optionBgColor(Color.Black) - .id('UIComponentFunctionSelectSymbol0010_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0020.ets deleted file mode 100644 index d32e3b6ccf46852dc536f482c5818c30e0881076..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0020.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MenuItemModifier, SymbolGlyphModifier } from '@kit.ArkUI' - -class MyMenuItemContentModifier implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MenuItemBuilder) - } -} - -@Builder -function MenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Text(configuration.value) - Blank(100) - SymbolGlyph().attributeModifier(configuration.symbolIcon) - } -} - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0020 { - @State beChange: boolean = false - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_star')) - .fontColor([Color.Blue]) - .fontSize(50) - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')) - .fontColor([Color.Red]) - .fontSize(100) - @State symbolModifier: SymbolGlyphModifier = this.symbolModifier1 - - build() { - Row() { - Column() { - Button('020_动态切换') - .onClick(() => { - this.beChange = !this.beChange - }) - .id('UIComponentFunctionSelectSymbol0020_001') - if (this.beChange) { - Button('symbolicon++、symbilicon样式++') - .onClick(() => { - this.symbolModifier = this.symbolModifier === this.symbolModifier1 ? - this.symbolModifier2 : this.symbolModifier1 - }) - .id('UIComponentFunctionSelectSymbol0020_002') - Select([{ value: 'aaa', symbolIcon: this.symbolModifier }]) - .menuItemContentModifier(new MyMenuItemContentModifier()) - .id('UIComponentFunctionSelectSymbol0020_003') - } - } - .width('100%') - .height('100%') - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0030.ets deleted file mode 100644 index 98d9ada4ebd5d954da7f03455a76f9628aaa621a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0030.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0030 { - @State symbolModifier: SymbolGlyphModifier | null = null - - build() { - Row() { - Column() { - Button('030_symbolicon') - .onClick(() => { - this.symbolModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_trash')) - .fontSize(24) - .fontColor(["#E5182431"]) - }) - .id('UIComponentFunctionSelectSymbol0030_001') - Select([{ value: 'aaa', symbolIcon: this.symbolModifier }]) - .id('UIComponentFunctionSelectSymbol0030_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0040.ets deleted file mode 100644 index 55f0f9480f111ecb297420f191226bbeffcfa880..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0040.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0040 { - @State resource: ResourceStr | null = null - - build() { - Row() { - Column() { - Button('040_引用icon') - .onClick(() => { - this.resource = $r('app.media.icon') - }) - .id('UIComponentFunctionSelectSymbol0040_001') - Select([{ value: 'aaa', icon: this.resource, symbolIcon: undefined }]) - .id('UIComponentFunctionSelectSymbol0040_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0050.ets deleted file mode 100644 index b4c6714b08434797c87038de31741cda6aedd9b1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0050.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0050 { - @State option: Array = [] - - build() { - Row() { - Column() { - Button('050_symbolicon_icon') - .onClick(() => { - this.option = [{ value: 'aaa', icon: undefined, symbolIcon: undefined}, - {value: 'bbb', icon: undefined, symbolIcon: undefined}] - }) - .id('UIComponentFunctionSelectSymbol0050_001') - Select(this.option) - .id('UIComponentFunctionSelectSymbol0050_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0060.ets deleted file mode 100644 index cbf224c3c0ea5a30c6d25a499c662437a8ee4651..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0060.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0060 { - @State symbolModifier: SymbolGlyphModifier | null = null - - build() { - Row() { - Column() { - Button('060_symbolicon') - .onClick(() => { - this.symbolModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')) - }) - .id('UIComponentFunctionSelectSymbol0060_001') - Select([{ value: 'aaa', icon: undefined, symbolIcon: this.symbolModifier }]) - .id('UIComponentFunctionSelectSymbol0060_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0070.ets deleted file mode 100644 index 6e1ab47bee1b2d0e565c9809b9e04b82f241d874..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0070.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0070 { - @State symbolModifier: SymbolGlyphModifier | null = null - @State resource: ResourceStr | null = null - - build() { - Row() { - Column() { - Button('070_symbolicon_icon') - .onClick(() => { - this.symbolModifier = new SymbolGlyphModifier($r('sys.symbol.exposure')) - .fontSize(getContext().resourceManager.getNumber($r("app.integer.50"))) - .fontColor([getContext().resourceManager.getColorSync($r("app.color.txt_color"))]) - this.resource = $r('app.media.icon') - }) - .id('UIComponentFunctionSelectSymbol0070_001') - Select([{ value: 'aaa', icon: this.resource, symbolIcon: this.symbolModifier }]) - .id('UIComponentFunctionSelectSymbol0070_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0090.ets deleted file mode 100644 index c5faaf980b243f63e5830d131f10ddd5124c42c8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0090.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0090 { - @State option: Array = [] - - build() { - Row() { - Column() { - Button('090_symbolicon_icon') - .onClick(() => { - this.option = [{ value: 'aaa'}, {value: 'bbb'}] - }) - .id('UIComponentFunctionSelectSymbol0090_001') - Select(this.option) - .id('UIComponentFunctionSelectSymbol0090_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0110.ets deleted file mode 100644 index 7478893dc44dd7c2a6ae1da2cb9614d956b0096f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0110.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0110 { - @State resource: ResourceStr | null = null - - build() { - Row() { - Column() { - Button('110_引用icon') - .onClick(() => { - this.resource = $r('app.media.icon') - }) - .id('UIComponentFunctionSelectSymbol0110_001') - Select([{ value: 'aaa', icon: this.resource}]) - .id('UIComponentFunctionSelectSymbol0110_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0120.ets deleted file mode 100644 index ae66dcd2a283484d355601ce670a0badae21165a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0120.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentFunctionSelectSymbol0120 { - @State symbolModifier: SymbolGlyphModifier | null = null - - build() { - Row() { - Column() { - Button('120_symbolicon') - .onClick(() => { - this.symbolModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_trash')) - .fontSize(-24) - .fontColor([0xffa500]) - }) - .id('UIComponentFunctionSelectSymbol0120_001') - Select([{ value: 'aaa', symbolIcon: this.symbolModifier }]) - .id('UIComponentFunctionSelectSymbol0120_002') - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfe0d4b40df6abeebd9991a43f4aea1a8faa1180 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0010.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0010 { + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + TextInput() + .width('20%') + .margin({ + top:500 + }) + TextArea() + .width('20%') + .id('UIComponentInputKeyboardAvoidMode0010_001') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..1382762afeb12166f29dc982a7c6889727d720a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0020.ets @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0020 { + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + TextInput() + .width('20%') + .style(TextInputStyle.Inline) + .margin({ + top:500 + }) + TextArea() + .width('20%') + .style(TextContentStyle.INLINE) + .id('UIComponentInputKeyboardAvoidMode0020_001') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..de81dab5c0161f7e4cf077854d3a4009d3acd89a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0030.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 { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0030 { + @State inputMode: TextInputStyle = TextInputStyle.Inline; + @State areaMode: TextContentStyle = TextContentStyle.INLINE; + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + Button('切换') + .id('UIComponentInputKeyboardAvoidMode0030_002') + .onClick(() => { + this.inputMode = this.inputMode == TextInputStyle.Inline ? TextInputStyle.Default : TextInputStyle.Inline; + this.areaMode = this.areaMode == TextContentStyle.INLINE ? TextContentStyle.DEFAULT : TextContentStyle.INLINE; + }) + .margin({ + top: 500 + }) + TextInput() + .width('20%') + .style(this.inputMode) + TextArea() + .width('20%') + .style(this.areaMode) + .id('UIComponentInputKeyboardAvoidMode0030_001') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6f833b40125157ad6b03c7e442a13f901fe339c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0040.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 { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0040 { + controller: TextInputController = new TextInputController() + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + Button('button') + .id('UIComponentInputKeyboardAvoidMode0040_002') + .onClick(() => { + this.controller.caretPosition(1); + }) + .margin({ + top: 500 + }) + TextInput({ text: 'text', controller: this.controller }) + .id('UIComponentInputKeyboardAvoidMode0040_001') + .width('20%') + TextArea() + .width('20%') + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..5fada81ff3bd082c1258fb395aa20d88a5695af9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0050.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 { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0050 { + @State sizeText: number = 15; + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + Button('button') + .id('UIComponentInputKeyboardAvoidMode0050_002') + .onClick(()=>{ + this.sizeText = 30; + }) + .margin({ + top:500 + }) + TextInput() + .width('20%') + TextArea({text: '这是一段测试中文断行的文字'}) + .width('20%') + .id('UIComponentInputKeyboardAvoidMode0050_001') + .fontSize(this.sizeText) + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..d426f0d5c80edfb90254b3c56569ace176e92f03 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0060.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 { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0060 { + @State letterSpacing: number = 0; + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + Button('button') + .id('UIComponentInputKeyboardAvoidMode0060_002') + .onClick(() => { + this.letterSpacing = 25; + }) + .margin({ + top: 500 + }) + TextInput() + .width('20%') + TextArea({ text: '这是一段测试中文断行的文字' }) + .width('20%') + .id('UIComponentInputKeyboardAvoidMode0060_001') + .letterSpacing(this.letterSpacing) + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..f4eec9677bd3bff124aa903a66e04e31f528d1a4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0070.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 { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0070 { + @State inputWidth: number = 200; + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + Button('button') + .id('UIComponentInputKeyboardAvoidMode0070_002') + .onClick(()=>{ + this.inputWidth = 100; + }) + .margin({ + top:500 + }) + TextInput() + .width('20%') + TextArea({text: '这是一段测试中文断行的文字'}) + .width(this.inputWidth) + .id('UIComponentInputKeyboardAvoidMode0070_001') + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..3c0288b6e89dc1ff794217cee4a6194e5ce28b8f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0080.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 { KeyboardAvoidMode } from '@kit.ArkUI'; +import TestAbility from '../../TestAbility'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0080 { + @State alignment: TextAlign = TextAlign.Center; + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + Button('button') + .id('UIComponentInputKeyboardAvoidMode0080_002') + .onClick(() => { + this.alignment = TextAlign.End; + }) + .margin({ + top: 500 + }) + TextInput() + .width('20%') + TextArea({ text: '测试文字' }) + .width('40%') + .id('UIComponentInputKeyboardAvoidMode0080_001') + .textAlign(this.alignment) + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..2e845e0fc95c3c6a7ee644c0bf021eb0ca4b2a9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0090.ets @@ -0,0 +1,38 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0090 { + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + Scroll(){ + TextArea() + .width('20%') + .id('UIComponentInputKeyboardAvoidMode0090_001') + } + .margin({ + top:500 + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b4e8e0c910102b8576893beb1a9db7be6f8b7f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0100.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 { KeyboardAvoidMode } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0100 { + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET); + } + + build() { + Column() { + Button() + .id('UIComponentInputKeyboardAvoidMode0100_002') + .onClick(() => { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE_WITH_CARET); + }) + .margin({ + top: 500 + }) + TextInput() + .width('20%') + TextArea({ text: '这是一段测试中文断行的文字' }) + .width('40%') + .id('UIComponentInputKeyboardAvoidMode0100_001') + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..77fe8ff77075dd4c1fc4274fca0cfd52f2188e5a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0110.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 { KeyboardAvoidMode } from '@kit.ArkUI'; +import TestAbility from '../../TestAbility'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0110 { + @State alignment: TextAlign = TextAlign.Center; + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + TextInput() + .margin({ + top: 500 + }) + .width('20%') + TextArea({ text: '这是一段测试中文断行的文字' }) + .width('40%') + .id('UIComponentInputKeyboardAvoidMode0110_001') + .textAlign(this.alignment) + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..abb03524f2ad171cd94dc29f057658ea3c715886 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0120.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 { KeyboardAvoidMode } from '@kit.ArkUI'; +import TestAbility from '../../TestAbility'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0120 { + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + TextInput() + .id('UIComponentInputKeyboardAvoidMode0120_002') + .width('30%') + .height('30%') + .draggable(true) + .margin({ + top: 200 + }) + TextArea({ text: '这是一段测试中文断行的文字' }) + .width('20%') + .id('UIComponentInputKeyboardAvoidMode0120_001') + .draggable(true) + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..8df2dfc8605e4f4cc763aa1969fadf3c31dddf64 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0130.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 { KeyboardAvoidMode } from '@kit.ArkUI'; +import TestAbility from '../../TestAbility'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0130 { + @State alignment: TextAlign = TextAlign.Center; + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + TextInput() + .margin({ + top: 500 + }) + .width('20%') + TextArea({ text: '这是一段测试中文断行的文字,这是一段测试中文断行的文字' }) + .width('20%') + .height(75) + .id('UIComponentInputKeyboardAvoidMode0130_001') + .textAlign(this.alignment) + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a5660ef53b5254995c950d436dd6218b266013e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0150.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 { KeyboardAvoidMode } from '@kit.ArkUI'; +import TestAbility from '../../TestAbility'; + +@Entry +@Component +struct UIComponentInputKeyboardAvoidMode0150 { + @State alignment: TextAlign = TextAlign.Center; + + onPageShow(): void { + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.OFFSET_WITH_CARET / KeyboardAvoidMode.RESIZE_WITH_CARET); + } + + build() { + Column() { + TextInput() + .margin({ + top: 500 + }) + .width('20%') + TextArea({ text: '这是一段测试中文断行的文字,这是一段测试中文断行的文字' }) + .width('20%') + .height(75) + .id('UIComponentInputKeyboardAvoidMode0150_001') + .textAlign(this.alignment) + Search() + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0080458.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0080458.ets deleted file mode 100644 index f45455ea2c8a3e22f1b0b5570eb4b44463fd865a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0080458.ets +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 12; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0080458 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 12; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 12]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .rowsTemplate("1fr 1fr 1fr") - .columnsGap('abc') - .rowsGap('abc') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutDirection(FlexDirection.ColumnReverse) - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0080458_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0090321.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0090321.ets deleted file mode 100644 index 703225beaec89ee618342032004bac9960877524..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0090321.ets +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 12; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0090321 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 12; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 12]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .rowsTemplate("1fr 1fr 1fr") - .columnsGap('abc') - .rowsGap('abc') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutDirection(FlexDirection.Column) - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0090321_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0100678.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0100678.ets deleted file mode 100644 index 5a0eb84c881cf451caa1de106e3d4013e8bcbebe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0100678.ets +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 12; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0100678 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 12; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 12]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .rowsTemplate("1fr 1fr 1fr") - .columnsGap('abc') - .rowsGap('abc') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutDirection(FlexDirection.RowReverse) - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0100678_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0110972.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0110972.ets deleted file mode 100644 index 6f21d3552baffe9e2e18a20f4092ef0478fa7891..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0110972.ets +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 12; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0110972 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 12; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 12]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .rowsTemplate("1fr 1fr 1fr") - .columnsGap('abc') - .rowsGap('abc') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutDirection(FlexDirection.Row) - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0110972_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0120725.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0120725.ets deleted file mode 100644 index e43a0859b668c69953669809b9c12d20dc537544..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0120725.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 12; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0120725 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 12; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 12]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .rowsTemplate("1fr 1fr 1fr") - .columnsGap('abc') - .rowsGap('abc') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0120725_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0130072.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0130072.ets deleted file mode 100644 index 90f9858bdf8be045a2d710ef921965b14b76d0b1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0130072.ets +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 20; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0130072 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 100; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - // 存在对应的jpg文件才会显示图片 - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .onAppear(() => { - // 即将触底时提前增加数据 - if (item + 20 == this.dataSource.totalCount()) { - for (let i = 0; i < 100; i++) { - this.dataSource.addLastItem() - } - } - }) - .width('100%') - .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap('') - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0270011_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0140666.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0140666.ets deleted file mode 100644 index dbc72c657192fcd875218d35f2cbf4aa55dbdf9b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0140666.ets +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 20; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0140666 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 100; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - // 存在对应的jpg文件才会显示图片 - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .onAppear(() => { - // 即将触底时提前增加数据 - if (item + 20 == this.dataSource.totalCount()) { - for (let i = 0; i < 100; i++) { - this.dataSource.addLastItem() - } - } - }) - .width('100%') - .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0270011_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0150827.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0150827.ets deleted file mode 100644 index a45ca8edba761cface9c0190677459270ea27120..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0150827.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0150827 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 10]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap($r('app.string.width_20')) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0150827_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0160890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0160890.ets deleted file mode 100644 index 227b4f395acfb9ebd9d95aac58773c0b8e33ce5d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0160890.ets +++ /dev/null @@ -1,239 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 20; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0160890 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 100; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - // 存在对应的jpg文件才会显示图片 - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .onAppear(() => { - // 即将触底时提前增加数据 - if (item + 20 == this.dataSource.totalCount()) { - for (let i = 0; i < 100; i++) { - this.dataSource.addLastItem() - } - } - }) - .width('100%') - .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap('5vp') - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0270011_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0170444.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0170444.ets deleted file mode 100644 index 09f64e0225caa049ebec998df73bf2cee0bf2a8c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0170444.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0170444 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 10]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap('abc') - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0170444_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0270011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0270011.ets deleted file mode 100644 index 2f3589e478e76b8f6c4ac740d91a3f549f332f99..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0270011.ets +++ /dev/null @@ -1,240 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 20; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0270011 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 100; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - // 存在对应的jpg文件才会显示图片 - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .onAppear(() => { - // 即将触底时提前增加数据 - if (item + 20 == this.dataSource.totalCount()) { - for (let i = 0; i < 100; i++) { - this.dataSource.addLastItem() - } - } - }) - .width('100%') - .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .itemConstraintSize({minWidth:'0%',maxWidth:'50%',minHeight:'0%',maxHeight:'100%'}) - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0270011_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0280056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0280056.ets deleted file mode 100644 index 8f3ae95bcf262c1cb3464e1e0d6c767eb95dce7f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0280056.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0280056 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 10]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap('abc') - .rowsGap('') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0280056_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0290223.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0290223.ets deleted file mode 100644 index 57622af02ddd5dac7b1fac4ccb14e56b22c6c0ea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0290223.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0290223 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 10]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap('abc') - .rowsGap(10) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0290223_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0300414.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0300414.ets deleted file mode 100644 index f46d210ac0ac0e8fb227e769dd18b0111e8902ba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0300414.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0300414 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 10]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap('abc') - .rowsGap($r('app.string.height_20')) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0300414_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0310330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0310330.ets deleted file mode 100644 index d59903784248888bbaefbd43d1e4d88c84dbad4d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0310330.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0310330 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 10]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap('abc') - .rowsGap('5vp') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0310330_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0320534.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0320534.ets deleted file mode 100644 index 9d8f77ccc1d74d3bbda12d587b4700339caf3d97..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0320534.ets +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= -@Entry -@Component -struct UIComponentListAndGridWaterFlowAdd0320534 { - @State minSize: number = 80 - @State maxSize: number = 180 - @State fontSize: number = 24 - @State colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - private itemWidthArray: number[] = [] - private itemHeightArray: number[] = [] - - // 计算FlowItem宽/高 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的宽/高数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemWidthArray.push(this.getSize()) - //this.itemHeightArray.push(this.getSize()) - this.itemWidthArray.push(60) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - } - - @Builder - itemFoot() { - Column() { - Text(`Footer`) - .fontSize(10) - .backgroundColor(Color.Red) - .width(50) - .height(50) - .align(Alignment.Center) - .margin({ top: 2 }) - } - } - - build() { - Column({ space: 2 }) { - WaterFlow() { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - Column() { - Text("N" + item).fontSize(12).height('16') - Image($r("app.media.waterFlowTest")) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1) - } - } - .width('100%') - .height(this.itemHeightArray[item % 10]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate("1fr 1fr") - .columnsGap('abc') - .rowsGap('abc') - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .onReachStart(() => { - console.info('waterFlow reach start') - }) - .onScrollStart(() => { - console.info('waterFlow scroll start') - }) - .onScrollStop(() => { - console.info('waterFlow scroll stop') - }) - .onScrollFrameBegin((offset: number, state: ScrollState) => { - console.info('waterFlow scrollFrameBegin offset: ' + offset + ' state: ' + state.toString()) - return { offsetRemain: offset } - }) - .id('UIComponentListAndGridWaterFlowAdd0320534_001'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0370.ets deleted file mode 100644 index 0f41441aa330ba51c442b73d3a0fe6f737389132..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0370.ets +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0370 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - @State newCrossCount: number = 3 - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 2, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount: 2, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Row() { - Button('push') - .height('5%') - .onClick(() => { - let newSection: SectionOptions = { - itemsCount: 6, - crossCount: this.newCrossCount, - columnsGap: 15, - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - this.dataSource.addItem(this.oneColumnSection.itemsCount) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 1) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 2) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 3) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 5) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 6) - const result: boolean = this.sections.push(newSection) - }) - .id('UIComponentListAndGridWaterSections0370_001'); - Button('改变crossCount') - .height('5%') - .onClick(() => { - this.newCrossCount = this.newCrossCount+1 - }).id('UIComponentListAndGridWaterSections0370_002'); - }.margin({ bottom: 20 }) - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0380.ets deleted file mode 100644 index 1ecfd41bf3812d4d5806de866eea688d333e92fd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0380.ets +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0380 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - @State newColumnsGap: number = 15 - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 2, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount: 2, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Row() { - Button('push') - .height('5%') - .onClick(() => { - let newSection: SectionOptions = { - itemsCount: 6, - crossCount: 3, - columnsGap: this.newColumnsGap, - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - this.dataSource.addItem(this.oneColumnSection.itemsCount) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 1) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 2) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 3) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 5) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 6) - const result: boolean = this.sections.push(newSection) - }) - .id('UIComponentListAndGridWaterSections0380_001'); - Button('改变ColumnsGap') - .height('5%') - .onClick(() => { - this.newColumnsGap = this.newColumnsGap+10 - }).id('UIComponentListAndGridWaterSections0380_002'); - }.margin({ bottom: 20 }) - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0390.ets deleted file mode 100644 index 5288f7e0841fa758293967bae3e7503b39409aaf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0390.ets +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0390 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - @State newItemsCount: number = 6 - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 2, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount: 2, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Row() { - Button('push') - .height('5%') - .onClick(() => { - let newSection: SectionOptions = { - itemsCount: this.newItemsCount, - crossCount: 3, - columnsGap: 15, - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - this.dataSource.addItem(this.oneColumnSection.itemsCount) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 1) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 2) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 3) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 5) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 6) - const result: boolean = this.sections.push(newSection) - }) - .id('UIComponentListAndGridWaterSections0390_001'); - Button('改变itemsCount') - .height('5%') - .onClick(() => { - this.newItemsCount = this.newItemsCount+1 - }).id('UIComponentListAndGridWaterSections0390_002'); - }.margin({ bottom: 20 }) - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0400.ets deleted file mode 100644 index 2a80a15fa33e1867d64d26ec45f863adeaa4df2e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0400.ets +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0400 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - @State newRowsGap: number = 10 - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 2, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount: 2, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Row() { - Button('push') - .height('5%') - .onClick(() => { - let newSection: SectionOptions = { - itemsCount: 6, - crossCount: 3, - columnsGap: 15, - rowsGap: this.newRowsGap, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - this.dataSource.addItem(this.oneColumnSection.itemsCount) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 1) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 2) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 3) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 5) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 6) - const result: boolean = this.sections.push(newSection) - }) - .id('UIComponentListAndGridWaterSections0400_001'); - Button('改变rowsGap') - .height('5%') - .onClick(() => { - this.newRowsGap = this.newRowsGap + 10 - }).id('UIComponentListAndGridWaterSections0400_002'); - }.margin({ bottom: 20 }) - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0410.ets deleted file mode 100644 index 439beee8020525a019844fa8e9f6873626879438..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0410.ets +++ /dev/null @@ -1,285 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0410 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 2, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount: 2, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Row() { - Button('push') - .height('5%') - .onClick(() => { - let newSection: SectionOptions = { - itemsCount: 6, - crossCount: 3, - columnsGap: 15, - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - this.dataSource.addItem(this.oneColumnSection.itemsCount) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 1) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 2) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 3) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 5) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 6) - const result: boolean = this.sections.push(newSection) - }) - .id('UIComponentListAndGridWaterSections0410_001'); - Button('改变Margin') - .height('5%') - .onClick(() => { - this.sectionMargin = { top: 20, left: 10, bottom: 20, right: 10 } - }).id('UIComponentListAndGridWaterSections0410_002'); - }.margin({ bottom: 20 }) - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0420.ets deleted file mode 100644 index dccde5cb602befbd15b6e311757d74974bfab34e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0420.ets +++ /dev/null @@ -1,290 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0420 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 2, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount: 2, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Row() { - Button('push') - .height('5%') - .onClick(() => { - let newSection: SectionOptions = { - itemsCount: 6, - crossCount: 3, - columnsGap: 15, - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - this.dataSource.addItem(this.oneColumnSection.itemsCount) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 1) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 2) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 3) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 5) - this.dataSource.addItem(this.oneColumnSection.itemsCount + 6) - for (let i = 10; i < 16; i++) { - this.itemHeightArray.push(this.getSize()) - } - const result: boolean = this.sections.push(newSection) - }) - .id('UIComponentListAndGridWaterSections0420_001'); - Button('改变itemHeigh') - .height('5%') - .onClick(() => { - for (let i = 0; i < 16; i++) { - this.itemHeightArray.push(30) - } - }).id('UIComponentListAndGridWaterSections0420_002'); - }.margin({ bottom: 20 }) - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0500.ets deleted file mode 100644 index 673aaef1d6c54623ccc107ee4778f85a909692fb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0500.ets +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0500 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0510.ets deleted file mode 100644 index 149782f8f14af53d4fd0e41857106ffedb0ca68a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0510.ets +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0510 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount:2, - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount:2, - rowsGap: 5, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(20) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0520.ets deleted file mode 100644 index 30f972ba9483f8a21087273cc0b4c8cf325e679f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0520.ets +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0520 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount:2, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 100] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount:2, - onGetItemMainSizeByIndex: (index: number) => { - return 10 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .rowsGap(20) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0530.ets deleted file mode 100644 index d18fcd31c65c262690f8db24675baaccc1681b56..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0530.ets +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0530 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 0, left: 0, bottom: 0, right: 0 } - oneColumnSection: SectionOptions = { - itemsCount: 5, - crossCount:2, - onGetItemMainSizeByIndex: (index: number) => { - return 50; - } - } - twoColumnSection: SectionOptions = { - itemsCount: 5, - crossCount:2, - margin:this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return 50; - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .rowsGap(20) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0540.ets deleted file mode 100644 index 9d1ac7b374f0598883283bafdc0601ced6f28778..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0540.ets +++ /dev/null @@ -1,260 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} - -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - /* Image($r("app.media.waterFlowTest")) - .overlay('N' + this.item, { align: Alignment.Top }) - .objectFit(ImageFit.Fill) - .width('100%') - .layoutWeight(1)*/ - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0540 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - @State newPadding: number = 0; - sectionMargin: Margin = { top: 0, left: 0, bottom: 0, right: 0 } - oneColumnSection: SectionOptions = { - itemsCount: 5, - crossCount: 2, - onGetItemMainSizeByIndex: (index: number) => { - return 50; - } - } - twoColumnSection: SectionOptions = { - itemsCount: 5, - crossCount: 2, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return 50; - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Button('改变padding') - .height('5%') - .onClick(() => { - this.newPadding = 20 - }).id('UIComponentListAndGridWaterSections0540_001'); - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .rowsGap(20) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .padding(this.newPadding) - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0560.ets deleted file mode 100644 index 988ec7c9f482da38a801107464e3865f3fce231a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0560.ets +++ /dev/null @@ -1,269 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// 实现IDataSource接口的对象,用于瀑布流组件加载数据 -export class WaterFlowDataSource implements IDataSource { - private dataArray: number[] = [] - private listeners: DataChangeListener[] = [] - - constructor() { - for (let i = 0; i < 10; i++) { - this.dataArray.push(i) - } - } - - // 获取索引对应的数据 - public getData(index: number): number { - return this.dataArray[index] - } - - // 通知控制器数据重新加载 - notifyDataReload(): void { - this.listeners.forEach(listener => { - listener.onDataReloaded() - }) - } - - // 通知控制器数据增加 - notifyDataAdd(index: number): void { - this.listeners.forEach(listener => { - listener.onDataAdd(index) - }) - } - - // 通知控制器数据变化 - notifyDataChange(index: number): void { - this.listeners.forEach(listener => { - listener.onDataChange(index) - }) - } - - // 通知控制器数据删除 - notifyDataDelete(index: number): void { - this.listeners.forEach(listener => { - listener.onDataDelete(index) - }) - } - - // 通知控制器数据位置变化 - notifyDataMove(from: number, to: number): void { - this.listeners.forEach(listener => { - listener.onDataMove(from, to) - }) - } - - //通知控制器数据批量修改 - notifyDatasetChange(operations: DataOperation[]): void { - this.listeners.forEach(listener => { - listener.onDatasetChange(operations); - }) - } - - // 获取数据总数 - public totalCount(): number { - return this.dataArray.length - } - - // 注册改变数据的控制器 - registerDataChangeListener(listener: DataChangeListener): void { - if (this.listeners.indexOf(listener) < 0) { - this.listeners.push(listener) - } - } - - // 注销改变数据的控制器 - unregisterDataChangeListener(listener: DataChangeListener): void { - const pos = this.listeners.indexOf(listener) - if (pos >= 0) { - this.listeners.splice(pos, 1) - } - } - - // 增加数据 - public add1stItem(): void { - this.dataArray.splice(0, 0, this.dataArray.length) - this.notifyDataAdd(0) - } - - // 在数据尾部增加一个元素 - public addLastItem(): void { - this.dataArray.splice(this.dataArray.length, 0, this.dataArray.length) - this.notifyDataAdd(this.dataArray.length - 1) - } - - // 在指定索引位置增加一个元素 - public addItem(index: number): void { - this.dataArray.splice(index, 0, this.dataArray.length) - this.notifyDataAdd(index) - } - - // 删除第一个元素 - public delete1stItem(): void { - this.dataArray.splice(0, 1) - this.notifyDataDelete(0) - } - - // 删除第二个元素 - public delete2ndItem(): void { - this.dataArray.splice(1, 1) - this.notifyDataDelete(1) - } - - // 删除最后一个元素 - public deleteLastItem(): void { - this.dataArray.splice(-1, 1) - this.notifyDataDelete(this.dataArray.length) - } - - // 在指定索引位置删除一个元素 - public deleteItem(index: number): void { - this.dataArray.splice(index, 1) - this.notifyDataDelete(index) - } - - // 重新加载数据 - public reload(): void { - this.dataArray.splice(1, 1) - this.dataArray.splice(3, 2) - this.notifyDataReload() - } -} -//============================================================= - -@Reusable -@Component -struct ReusableFlowItem { - @State item: number = 0 - - // 从复用缓存中加入到组件树之前调用,可在此处更新组件的状态变量以展示正确的内容 - aboutToReuse(params: Record) { - this.item = params.item; - console.info('Reuse item:' + this.item) - } - - aboutToAppear() { - console.info('new item:' + this.item) - } - - build() { - } -} - -@Entry -@Component -struct UIComponentListAndGridWaterSections0560 { - minSize: number = 80 - maxSize: number = 180 - fontSize: number = 24 - colors: number[] = [0xFFC0CB, 0xDA70D6, 0x6B8E23, 0x6A5ACD, 0x00FFFF, 0x00FF7F] - scroller: Scroller = new Scroller() - dataSource: WaterFlowDataSource = new WaterFlowDataSource() - dataCount: number = this.dataSource.totalCount() - private itemHeightArray: number[] = [] - @State sections: WaterFlowSections = new WaterFlowSections() - sectionMargin: Margin = { top: 10, left: 5, bottom: 10, right: 5 } - oneColumnSection: SectionOptions = { - itemsCount: 4, - crossCount: 1, - columnsGap: '5vp', - rowsGap: 10, - margin: this.sectionMargin, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - twoColumnSection: SectionOptions = { - itemsCount: 6, - crossCount: 2, - onGetItemMainSizeByIndex: (index: number) => { - return 100 - } - } - - // 计算FlowItem高度 - getSize() { - let ret = Math.floor(Math.random() * this.maxSize) - return (ret > this.minSize ? ret : this.minSize) - } - - // 设置FlowItem的高度数组 - setItemSizeArray() { - for (let i = 0; i < 10; i++) { - //this.itemHeightArray.push(this.getSize()) - this.itemHeightArray.push(100) - } - } - - aboutToAppear() { - this.setItemSizeArray() - // 初始化瀑布流分组信息 - let sectionOptions: SectionOptions[] = [] - let count = 0 - let oneOrTwo = 0 - while (count < this.dataCount) { - if (oneOrTwo++ % 2 == 0) { - sectionOptions.push(this.oneColumnSection) - count += this.oneColumnSection.itemsCount - } else { - sectionOptions.push(this.twoColumnSection) - count += this.twoColumnSection.itemsCount - } - } - this.sections.splice(0, 0, sectionOptions) - } - - build() { - Column({ space: 2 }) { - Row() { - Button('splice') - .height('5%') - .onClick(() => { - // 将所有分组替换成一个新分组,注意保证LazyForEach中数据数量和新分组itemsCount保持一致 - let totalCount: number = this.dataSource.totalCount() - let newSection: SectionOptions = { - itemsCount: totalCount, - crossCount: 2, - onGetItemMainSizeByIndex: (index: number) => { - return this.itemHeightArray[index % 10] - } - } - let oldLength: number = this.sections.length() - this.sections.splice(0, oldLength, [newSection]) - }) - .id('UIComponentListAndGridWaterSections0560_001') - .margin({ top: 10, left: 20 }) - }.margin({ bottom: 20 }) - - WaterFlow({ scroller: this.scroller, sections: this.sections }) { - LazyForEach(this.dataSource, (item: number) => { - FlowItem() { - ReusableFlowItem({ item: item }) - } - .width('100%') - // 以onGetItemMainSizeByIndex为准 - // .height(this.itemHeightArray[item % 100]) - .backgroundColor(this.colors[item % 5]) - }, (item: string) => item) - } - .columnsTemplate('1fr 1fr') // 瀑布流使用sections参数时该属性无效 - .columnsGap(10) - .rowsGap(5) - .backgroundColor(0xFAEEE0) - .width('100%') - .height('100%') - .layoutWeight(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0370.ets deleted file mode 100644 index 430529e918ebabe14c0a966dc108b7ed967c80c8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0370.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier0370 { - private controller: TabsController = new TabsController(); - @State gridGutter: number = 10; - - build() { - Column() { - Row() { - Button("gridGutter+10 " + this.gridGutter) - .width('47%') - .height(50) - .margin({ top: 5 }) - .onClick((event?: ClickEvent) => { - this.gridGutter += 10; - }).id('UIComponentNavModifier0370_001') - .margin({ right: '6%', bottom: '12vp' }); - Button("gridGutter-10 " + this.gridGutter) - .width('47%') - .height(50) - .margin({ top: 5 }) - .onClick((event?: ClickEvent) => { - this.gridGutter -= 10; - }).id('UIComponentNavModifier0370_002') - .margin({ bottom: '12vp' }); - } - - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "1")); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "2")); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(BottomTabBarStyle.of($r("sys.media.ohos_app_icon"), "3")); - } - .width('350vp') - .animationDuration(300) - .height('60%') - .barGridAlign({ sm: 2, margin: 10, gutter: this.gridGutter }) - .backgroundColor(0xf1f3f5); - } - .width('100%') - .height(500) - .margin({ top: 5 }) - .padding('10vp'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0380.ets deleted file mode 100644 index 78c6dcf16b22a7d1fdf7f4d844ed0446369ca9a8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0380.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentNavModifier0380 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barGridAlign( - { - lg:10 - } - ) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0400.ets deleted file mode 100644 index 9b203df82efb3c9439b3b1a645b60e12222ed49d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0400.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentNavModifier0400 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barGridAlign( - { - sm:10 - } - ) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier041.ets deleted file mode 100644 index fa5fb4106d504b2e93c5d0b295f45f28333bd164..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier041.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier041 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'blue'; - @State strokeWidth: Resource = ($r('app.float.strokewidth_10')); - @State isVisible: boolean = false; - @State startMargin: number = 0; - @State endMargin: number = 0; - @State nullFlag: boolean = false; - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red'); - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }); - - Button('设置').width('50%').margin({ top: 20 }) - .onClick(() => { - this.isVisible = !this.isVisible; - }).id('UIComponentNavModifier041_001') - if (this.isVisible) { - Text($r('app.float.strokewidth_10')).fontSize(30); - } - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier043.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier043.ets deleted file mode 100644 index 55ac82a7786286c9883c653a0585b3ca3271101e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier043.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier043 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'blue' - @State strokeWidth: number = -10 - @State strokeWidthDefaultWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - aboutToAppear(): void { - console.log(`gzc+${this.strokeWidth}`) - if(this.strokeWidth < 0) - { - this.strokeWidth = this.strokeWidthDefaultWidth - } - } - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - Button('设置').width('50%').margin({ top: 20 }) - .onClick(()=>{ - if(this.strokeWidth < 0) - { - this.strokeWidth = this.strokeWidthDefaultWidth - } - }).id('UIComponentNavModifier043_001') - - Text(this.strokeWidth + '').fontSize(30) - - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier044.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier044.ets deleted file mode 100644 index fca54e6b2e4b1f07f1f2aa80fa5ba773a5a0b4f5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier044.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier044 { - private controller1: TabsController = new TabsController(); - @State dividerColor: string = 'blue'; - @State strokeWidth: string = '50'; - @State startMargin: number = 0; - @State endMargin: number = 0; - @State nullFlag: boolean = false; - @State isVisible: boolean = false; - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green'); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red'); - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }); - Button('设置').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.isVisible = !this.isVisible; - }).id('UIComponentNavModifier044_001'); - - if (this.isVisible) { - Text(this.strokeWidth).fontSize(30); - } - - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier045.ets deleted file mode 100644 index e939be39f2ffd613918dd9cf0a65112116aa4b30..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier045.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier045 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'blue' - @State strokeWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier046.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier046.ets deleted file mode 100644 index cc364cabf459fb94e19e9ad57700becf5cb65989..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier046.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier046 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = '#FF0000' - @State strokeWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier048.ets deleted file mode 100644 index edfa0002f0625fd71ac98e0cffb758369f942bbb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier048.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier048 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = '#FFC0CB' - @State strokeWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier053.ets deleted file mode 100644 index 2d75c1617fb5f4238940333ec6209facdc6a6407..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier053.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier053 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'red' - @State strokeWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - - Button('设置startMargin').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.startMargin = -10 - }).id('UIComponentNavModifier053_001') - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier056.ets deleted file mode 100644 index 7e1bdbc9fd0e032a58f7e682755eff9df7d9ec9c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier056.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier056 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'red' - @State strokeWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State tabHeight: number = 200 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height(this.tabHeight) - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - - Button('设置endMargin').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.endMargin = this.tabHeight * 0.8 - }).id('UIComponentNavModifier056_001') - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier058.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier058.ets deleted file mode 100644 index e881db5f3c0066fb11139da4ae27c8b6fc98ea75..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier058.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier058 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'red' - @State strokeWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - - Button('设置endMargin').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.endMargin = -10 - }).id('UIComponentNavModifier058_001') - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier060.ets deleted file mode 100644 index a738a3ae6c2c23df3bd9d18b0a787faa9133b066..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier060.ets +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier060 { - @State message: string = 'Hello World' - private controller: TabsController = new TabsController() - private controller1: TabsController = new TabsController() - @State selfFadingFade: boolean = false; - - build() { - Column() { - Button('子页签设置渐隐').width('100%').margin({ bottom: '12vp' }) - .onClick((event?: ClickEvent) => { - this.selfFadingFade = true; - }) - Button('子页签设置不渐隐').width('100%').margin({ bottom: '12vp' }) - .onClick((event?: ClickEvent) => { - this.selfFadingFade = false; - }) - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Scrollable) - .barHeight(80) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .fadingEdge(this.selfFadingFade) - .height('30%') - .width('100%') - - } - .padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier063.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier063.ets deleted file mode 100644 index 18a669509f6f7166692c8573c6c8680c1d3c3297..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier063.ets +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier063 { - @State fontColor: string = '#182431' - @State bgColor: number = 0xff0000 - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight(56) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(190) - .barBackgroundColor(this.bgColor) - .margin({ top: 38 }) - Button('设置背景色').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.bgColor = 0xffffff - }).id('UIComponentNavModifier063_001') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier065.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier065.ets deleted file mode 100644 index 5d92d9403ed2f0a03810c9829679646e9956d7b5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier065.ets +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier065 { - @State fontColor: string = '#182431' - @State bgColor: string = '#ff0000' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight(56) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(190) - .backgroundColor(this.bgColor) - .margin({ top: 38 }) - Button('设置背景色').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.bgColor = '#ffffff' - }).id('UIComponentNavModifier065_001') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier066.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier066.ets deleted file mode 100644 index ac1406f41c47e908cf15c09b90c64ebb7e161504..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier066.ets +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier066 { - @State fontColor: string = '#182431' - @State bgColor: Resource = $r('app.color.yellow') - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight(56) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(190) - .backgroundColor(this.bgColor) - .margin({ top: 38 }) - Button('设置背景色').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.bgColor = $r('app.color.blue') - }).id('UIComponentNavModifier066_001') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0770.ets deleted file mode 100644 index 159e306ef28a9e20e1605eac288ff64ee4dba77e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0770.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier0770 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State selectedIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? $r("app.media.magnifier") : $r("app.media.tick")) - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - } - }.tabBar(this.tabBuilder(0)).backgroundColor(Color.Red) - - TabContent() { - Column() { - Text('Tab2') - } - }.tabBar(this.tabBuilder(1)).backgroundColor(Color.Green) - - TabContent() { - Column() { - Text('Tab3') - } - }.tabBar(this.tabBuilder(2)).backgroundColor(Color.Yellow) - - TabContent() { - Column() { - Text('Tab4') - } - }.tabBar(this.tabBuilder(3)).backgroundColor(Color.Green) - } - .vertical(false) - .barHeight(56) - .barWidth(-300) - .width(360) - .height(190) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0810.ets deleted file mode 100644 index 77c4d706fadd7103f5c3e527cc1cd20673f7e103..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0810.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier0810 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State selectedIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? $r("app.media.magnifier") : $r("app.media.tick")) - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - } - }.tabBar(this.tabBuilder(0)).backgroundColor(Color.Red) - - TabContent() { - Column() { - Text('Tab2') - } - }.tabBar(this.tabBuilder(1)).backgroundColor(Color.Green) - - TabContent() { - Column() { - Text('Tab3') - } - }.tabBar(this.tabBuilder(2)).backgroundColor(Color.Yellow) - - TabContent() { - Column() { - Text('Tab4') - } - }.tabBar(this.tabBuilder(3)).backgroundColor(Color.Green) - } - .vertical(false) - .barHeight(250) - .barWidth('100%') - .width(360) - .height(300) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier083.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier083.ets deleted file mode 100644 index 368cfe7807adc9c396986c90feb2a315b1f3009e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier083.ets +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier083{ - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State tabBarHeight: number = 0 - @State tabBarHeight2: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? $r("sys.media.ohos_app_icon") : $r("sys.media.ohos_app_icon")) - //.width(24) - //.height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').onSizeChange((oldValue: SizeOptions, newValue: SizeOptions) => { - this.tabBarHeight = newValue.height as number - }) - } - - build() { - Column({space:10}) { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight(56) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(190) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - Button('设置').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.tabBarHeight2 = this.tabBarHeight - }).id('UIComponentNavModifier083_001') - - Text('barWidth为'+this.tabBarHeight2 + '').fontSize(30) - }.width('100%') - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0840.ets deleted file mode 100644 index f96cc0728fc4772c8018e22dbbe6ff7c0ac1a3b5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0840.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier0840 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State selectedIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? $r("app.media.magnifier") : $r("app.media.tick")) - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - } - }.tabBar(this.tabBuilder(0)).backgroundColor(Color.Red) - - TabContent() { - Column() { - Text('Tab2') - } - }.tabBar(this.tabBuilder(1)).backgroundColor(Color.Green) - - TabContent() { - Column() { - Text('Tab3') - } - }.tabBar(this.tabBuilder(2)).backgroundColor(Color.Yellow) - - TabContent() { - Column() { - Text('Tab4') - } - }.tabBar(this.tabBuilder(3)).backgroundColor(Color.Green) - } - .vertical(false) - .barHeight(-100) - .barWidth('100%') - .width(360) - .height(300) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0860.ets deleted file mode 100644 index 37f47718e4a30dd0071b3c027461ee86ec21c162..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0860.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier0860 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State selectedIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? $r("app.media.magnifier") : $r("app.media.tick")) - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - } - }.tabBar(this.tabBuilder(0)).backgroundColor(Color.Red) - - TabContent() { - Column() { - Text('Tab2') - } - }.tabBar(this.tabBuilder(1)).backgroundColor(Color.Green) - - TabContent() { - Column() { - Text('Tab3') - } - }.tabBar(this.tabBuilder(2)).backgroundColor(Color.Yellow) - - TabContent() { - Column() { - Text('Tab4') - } - }.tabBar(this.tabBuilder(3)).backgroundColor(Color.Green) - } - .vertical(false) - .barHeight(250) - .barWidth('100%') - .width(360) - .height(300) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0900.ets deleted file mode 100644 index 9304ac5dff09e3135b391a85c3474da479ffb69a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0900.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier0900 { - @State fontColor: string = '#182431'; - @State selectedFontColor: string = '#007DFF'; - @State currentIndex: number = 0; - @State selectedIndex: number = 0; - private controller: TabsController = new TabsController(); - - @Builder tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.selectedIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }); - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.selectedIndex === index ? 1 : 0); - }.width('100%').id(name); - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor('#00CB87') - }.tabBar(this.tabBuilder(0, 'green')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#007DFF') - }.tabBar(this.tabBuilder(1, 'blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#FFBF00') - }.tabBar(this.tabBuilder(2, 'yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#E67C92') - }.tabBar(this.tabBuilder(3, 'pink')); - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(56) - .animationDuration(-100) - .onChange((index: number) => { - this.currentIndex = index - this.selectedIndex = index - }) - .width(360) - .height(296) - .margin({ top: 52 }) - .backgroundColor('#F1F3F5'); - }.width('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0920.ets deleted file mode 100644 index 93ce0e74846d5976cb34cddc8341a2df19164795..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavModifier/UIComponentNavModifier0920.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavModifier0920 { - @State fontColor: string = '#182431'; - @State selectedFontColor: string = '#007DFF'; - @State currentIndex: number = 0; - @State selectedIndex: number = 0; - private controller: TabsController = new TabsController(); - - @Builder tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.selectedIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }); - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.selectedIndex === index ? 1 : 0); - }.width('100%').id(name); - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor('#00CB87') - }.tabBar(this.tabBuilder(0, 'green')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#007DFF') - }.tabBar(this.tabBuilder(1, 'blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#FFBF00') - }.tabBar(this.tabBuilder(2, 'yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#E67C92') - }.tabBar(this.tabBuilder(3, 'pink')); - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(56) - .animationDuration(30/100) - .onChange((index: number) => { - this.currentIndex = index - this.selectedIndex = index - }) - .width(360) - .height(296) - .margin({ top: 52 }) - .backgroundColor('#F1F3F5'); - }.width('100%'); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0011.ets deleted file mode 100644 index 02c3b142a40fabacb4735b0d1461a6d66f867a10..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0011.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsAction0011 { - @State height1: number = 200; - @State width1: number = 200; - build() { - Column({ space: 5 }) { - - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink').id('Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow').id('Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue').id('Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green').id('Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .id('UIComponentNavTabsAction0011_001') - .width(this.width1) - .height(this.height1) - .backgroundColor(0xF1F3F5); - - Button('增加宽高').width('50%').margin({ top: 20 }) - .onClick(() => { - if(this.height1 == 200) - { - this.height1 = 250 - } - else - { - this.height1 = 200 - } - if(this.width1 == 200) - { - this.width1 = 250 - } - else - { - this.width1 = 200 - } - }).id('UIComponentNavTabsAction0011_002'); - }.width('100%').height(200) - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0012.ets deleted file mode 100644 index 25dbe57b19c88c7be22ca87ab9aa4d000fbe6aa3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0012.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsAction0012 { - @State simpleList: Array = ['tab0','tab1','tab2','tab3','tab4','tab5','tab6','tab7','tab8','tab9', - 'tab10','tab11','tab12','tab13','tab14','tab15','tab16','tab17','tab18','tab19', - 'tab20','tab21','tab22','tab23','tab24','tab25','tab26','tab27','tab28','tab29', - 'tab30','tab31','tab32','tab33','tab34','tab35','tab36','tab37','tab38','tab39', - 'tab40','tab41','tab42','tab43','tab44','tab45','tab46','tab47','tab48','tab49', - 'tab50','tab51','tab52','tab53','tab54','tab55','tab56','tab57','tab58','tab59', - 'tab60','tab61','tab62','tab63','tab64','tab65','tab66','tab67','tab68','tab69', - 'tab70','tab71','tab72','tab73','tab74','tab75','tab76','tab77','tab78','tab79', - 'tab80','tab81','tab82','tab83','tab84','tab85','tab86','tab87','tab88','tab89', - 'tab90','tab91','tab92','tab93','tab94','tab95','tab96','tab97','tab98','tab99'] - @State currentIndex: number = 0 - @Builder tabBuilder(title: string) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .id(title) - .justifyContent(FlexAlign.Center) - } - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`).fontSize(50) - } - }.tabBar(this.tabBuilder(item)) - }, (item: string) => item) - } - .vertical(false) - .id('UIComponentNavTabsAction0012_001') - //.barMode(BarMode.Scrollable) - .barWidth(400) - .barHeight(120) - .animationDuration(0) - .width(400) - .height(400) - .backgroundColor('#FF0000') - .scrollable(true) - - } - .width('100%') - .height('100%') - - } - .height('100%') - .backgroundColor(0xF1F3F5) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0030.ets deleted file mode 100644 index fb4018de3cdc9be404d64bb413ca21c41f3418c4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0030.ets +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsAction0030 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State selectedIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number) { - Column() { - Text(index == 0 ? 'Pink' : - (index == 1 ? 'Yellow' : - (index == 2 ? 'Green' : 'Blue'))) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').id(index == 0 ? 'Pink' : - (index == 1 ? 'Yellow' : - (index == 2 ? 'Green' : 'Blue'))) - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight(56) - .onChange((index: number) => { - // currentIndex控制TabContent显示页签 - this.currentIndex = index - }) - .onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => { - if (index === targetIndex) { - return - } - // selectedIndex控制自定义TabBar内Image和Text颜色切换 - this.selectedIndex = targetIndex - }) - .id('UIComponentNavTabsAction0030_001') - .width(360) - .height(190) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }); - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0010.ets deleted file mode 100644 index 6dfef64945256f56baf7c336fc7bae73de8511d2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0010.ets +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0010 { - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - - - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode) - ) - } - .vertical(false) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0010_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0010_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0010_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0010_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0010_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0010_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0010_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0010_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0010_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0010_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0010_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0010_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0010_013') - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0011.ets deleted file mode 100644 index cfe17f97526c997f18a446b924bd65853892dfb1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0011.ets +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0011 { - @State selectedMode: SelectedMode = SelectedMode.BOARD; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - - - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode) - ) - } - .vertical(false) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0011_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0011_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0011_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0011_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0011_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0011_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0011_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0011_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0011_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0011_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0011_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0011_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0011_013') - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0012.ets deleted file mode 100644 index 0ef5fd10155ef2be71cf089e1256ad676aa7c375..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0012.ets +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0012 { - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - - - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode) - ) - } - .vertical(true) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0012_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0012_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0012_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0012_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0012_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0012_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0012_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0012_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0012_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0012_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0012_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0012_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0012_013') - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0013.ets deleted file mode 100644 index 3b6c3e637e225ffcd7c10e3c3ded2b69b9525a97..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0013.ets +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0013 { - @State selectedMode: SelectedMode = SelectedMode.BOARD; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - - - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode) - ) - } - .vertical(true) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0013_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0013_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0013_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0013_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0013_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0013_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0013_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0013_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0013_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0013_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0013_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0013_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0013_013') - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0014.ets deleted file mode 100644 index c8e8b277a37dedd88646ca72f83dd7c90c5ea7df..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0014.ets +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0014 { - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - - - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode) - ) - } - .vertical(true) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0014_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0014_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0014_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0014_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0014_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0014_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0014_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0014_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0014_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0014_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0014_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0014_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0014_013') - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0015.ets deleted file mode 100644 index 674c4c6106ca1b751127a50a6616cd7be80e577e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0015.ets +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0015 { - @State selectedMode: SelectedMode = SelectedMode.BOARD; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - - - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode) - ) - } - .vertical(true) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0015_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0015_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0015_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0015_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0015_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0015_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0015_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0015_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0015_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0015_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0015_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0015_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0015_013') - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0016.ets deleted file mode 100644 index ee751d148045155516b6d580afd4c3c587724a17..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0016.ets +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0016 { - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - - - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode) - ) - } - .vertical(false) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0016_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0016_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0016_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0016_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0016_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0016_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0016_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0016_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0016_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0016_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0016_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0016_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0016_013') - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0017.ets deleted file mode 100644 index d213b086c62bf81e23e307be9ee005d8c51ca9da..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0017.ets +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0017 { - @State selectedMode: SelectedMode = SelectedMode.BOARD; - @State blurtype: BlurStyle = BlurStyle.COMPONENT_THIN; - @State seq: number = 0; - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - } - .vertical(false) - .scrollable(true) - .barBackgroundBlurStyle(this.blurtype) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('设置材质NONE').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0017_001') - - Button('设置材质Thin').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thin - }).id('UIComponentNavTabsBlurStyle0017_002') - - Button('设置材质Regular').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Regular - }).id('UIComponentNavTabsBlurStyle0017_003') - - Button('设置材质Thick').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.Thick - }).id('UIComponentNavTabsBlurStyle0017_004') - - Button('设置材质BACKGROUND_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THIN - }).id('UIComponentNavTabsBlurStyle0017_005') - - Button('设置材质BACKGROUND_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_REGULAR - }).id('UIComponentNavTabsBlurStyle0017_006') - - Button('设置材质BACKGROUND_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_THICK - }).id('UIComponentNavTabsBlurStyle0017_007') - - Button('设置材质BACKGROUND_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.BACKGROUND_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0017_008') - - Button('设置材质COMPONENT_ULTRA_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THIN - }).id('UIComponentNavTabsBlurStyle0017_009') - - Button('设置材质COMPONENT_REGULAR').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_REGULAR - }).id('UIComponentNavTabsBlurStyle0017_010') - - Button('设置材质COMPONENT_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THICK - }).id('UIComponentNavTabsBlurStyle0017_011') - - Button('设置材质COMPONENT_ULTRA_THICK').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0017_012') - - Button('设置材质COMPONENT_THIN').width('50%') - .onClick(()=>{ - this.blurtype = BlurStyle.COMPONENT_THIN - }).id('UIComponentNavTabsBlurStyle0017_013') - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0018.ets deleted file mode 100644 index 9fe44d5cc0502b3cedf9d1df97ce6ac71cb7bb50..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0018.ets +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0018 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Button('关闭模糊效果') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }) - .id('UIComponentNavTabsBlurStyle0018_001') - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1, 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3, 'Green')) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - .margin({ top: 52 }) - .backgroundColor('#F1F3F5') - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0019.ets deleted file mode 100644 index fe049ee2b226cb338440e79c52684cc522364955..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0019.ets +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (c) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0019 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Button('关闭模糊效果') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }) - .id('UIComponentNavTabsBlurStyle0019_001') - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1, 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3, 'Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(this.tabBuilder(3, 'Red')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(3, 'Blue')) - } - .divider({ - strokeWidth: 1, - color: Color.Red - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - .margin({ top: 52 }) - .backgroundColor('#F1F3F5') - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0020.ets deleted file mode 100644 index 7009d34e8a4e7284621a2dac5a8336ade2596b87..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0020.ets +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0020 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1, 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3, 'Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(this.tabBuilder(3, 'Red')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(3, 'Blue')) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .barPosition(BarPosition.Start) - .vertical(false) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(296) - .margin({ top: 52 }) - .backgroundColor('#F1F3F5') - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0021.ets deleted file mode 100644 index 2a06849ae2ccbc8cece6043851a255e45e32ee84..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0021.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0021 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1, 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3, 'Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(this.tabBuilder(3, 'Red')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(3, 'Blue')) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barHeight(50) - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - .margin({ top: 52 }) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0022.ets deleted file mode 100644 index dbd8d98e887b71a51f07308f5acb65bf69ea0b18..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0022.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0022 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1, 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3, 'Green')) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barMode(BarMode.Scrollable) - .margin('12vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0023.ets deleted file mode 100644 index 555c6bd41f25a594ac0bbf8bd13902aa43a99f86..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0023.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0023 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('pink') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(SubTabBarStyle.of('Yellow') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(SubTabBarStyle.of('Red') - .selectedMode(SelectedMode.BOARD) - ) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Fixed) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - .margin({ top: 52 }) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0024.ets deleted file mode 100644 index 27501c81cb4a57960e58e7a3d9b766b9c1a8797e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0024.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0024 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('Pink') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - } - .tabBar(SubTabBarStyle.of('Yellow') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - } - .tabBar(SubTabBarStyle.of('Green') - .selectedMode(SelectedMode.BOARD) - ) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(80) - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - .margin({ top: 52 }) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0025.ets deleted file mode 100644 index 6878c233291b169b067f02521c4e1d77d35eca9a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0025.ets +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0025 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('Pink') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - } - .tabBar(SubTabBarStyle.of('Yellow') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - } - .tabBar(SubTabBarStyle.of('Green') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('Red') - .selectedMode(SelectedMode.BOARD) - ) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barHeight(300) - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - .margin({ top: 52 }) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0026.ets deleted file mode 100644 index 3097bcb9f7ae0b82a42e5aa93bfc7762a7135c67..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0026.ets +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0026 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('Pink') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - } - .tabBar(SubTabBarStyle.of('Yellow') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - } - .tabBar(SubTabBarStyle.of('Green') - .selectedMode(SelectedMode.BOARD) - ) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Fixed) - .padding('10vp') - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0027.ets deleted file mode 100644 index 74e17628891a1ead97b44f3754c4f43c1c501e63..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0027.ets +++ /dev/null @@ -1,133 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0027 { - @State fontColor: string = '#182431'; - @State selectedFontColor: string = '#007DFF'; - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State indicatorColor: ResourceColor = Color.Blue; - @State indicatorHeight: number = 30; - @State indicatorWidth: number = 70; - private controller: TabsController = new TabsController(); - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Button('下划线颜色变化') - .onClick(() => { - this.getUIContext()?.animateTo( - { - duration: 1000, - curve: Curve.Linear, - delay: 200, - iterations: 1, - playMode: PlayMode.Normal - }, () => { - if (this.indicatorColor === Color.Red) { - this.indicatorColor = Color.Yellow; - } else { - this.indicatorColor = Color.Red; - } - }) - }) - Button('下划线高度变化') - .onClick(()=>{ - this.getUIContext()?.animateTo( - { - duration: 1000, - curve: Curve.Linear, - delay: 200, - iterations: 1, - playMode: PlayMode.Normal - }, () => { - if (this.indicatorHeight === 20) { - this.indicatorHeight = 10; - } else { - this.indicatorHeight = 20; - } - }) - }) - Button('下划线宽度变化') - .onClick(()=>{ - this.getUIContext()?.animateTo( - { - duration: 1000, - curve: Curve.Linear, - delay: 200, - iterations: 1, - playMode: PlayMode.Normal - }, () => { - if (this.indicatorWidth === 30) { - this.indicatorWidth = 50; - } else { - this.indicatorWidth = 30; - } - }) - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('pink') - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(SubTabBarStyle.of('Yellow') - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue') - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green') - ) - } - .divider({ - strokeWidth: this.indicatorWidth, - color: this.indicatorColor, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Fixed) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.Start) - .vertical(false) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0028.ets deleted file mode 100644 index 817aa9e99a4fe9ea141b7024c13956e58397a2ba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0028.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0028 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1, 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3, 'Green')) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.End) - .vertical(false) - .width(360) - .height(296) - .margin({ top: 52 }) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0029.ets deleted file mode 100644 index 03638c4ca11ceff0911239e5de9d0eaeb33f8f03..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0029.ets +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0029 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.NONE - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(300) - .barHeight(300) - .vertical(false) - .padding('10vp') - .width('auto') - .height(396) - .fadingEdge(true) - Button('打开模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0029_001') - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0029_002') - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0030.ets deleted file mode 100644 index f25db1a6153b44d204f68b38a80536ce350cd907..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0030.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0030 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .barHeight(300) - .vertical(false) - .margin('10vp') - .width('auto') - .height(396) - .fadingEdge(true) - /* - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0030_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0031.ets deleted file mode 100644 index 7437b83260d10b3c9fec02610738c58d33a35ecb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0031.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0031 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(50) - .barHeight(300) - .vertical(false) - .margin('10vp') - .width('auto') - .height(396) - .fadingEdge(true) -/* - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0031_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0032.ets deleted file mode 100644 index 72efc2ae8dd2ab9625d4e20aae5a7f9b88b2ce98..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0032.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0032 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - /* - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - */ - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth('auto') - .barHeight(300) - .vertical(false) - .margin('10vp') - .width('auto') - .height(396) - .fadingEdge(true) -/* - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0032_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0033.ets deleted file mode 100644 index a76433e9979d1c0fb5026a02797f52f2f72e8f96..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0033.ets +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0033 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Fixed) - .barWidth(50) - .barHeight(100) - .vertical(false) - .width('auto') - .height(396) - .fadingEdge(true) - /* - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0033_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0034.ets deleted file mode 100644 index 8dbe91fb99e388d21e0b474f6041eef68da01cea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0034.ets +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0034 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(80) - .barHeight(100) - .vertical(false) - .width('auto') - .height(396) - .fadingEdge(true) - /* - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0034_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0035.ets deleted file mode 100644 index 5fc82a7c9246606e43cbbedd14e5b8415f92247a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0035.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0035 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth('auto') - .barHeight(300) - .vertical(false) - .padding('10vp') - .width('auto') - .height(396) - .fadingEdge(true) - /* - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0035_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0036.ets deleted file mode 100644 index 79b2ecdb55389c395b033f4ec147fac682f9a00c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0036.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0036 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - /* - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode))*/ - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth('auto') - .barHeight(100) - .vertical(false) - .padding('10vp') - .width('auto') - .height(396) - .fadingEdge(true) - - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0036_001') - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0038.ets deleted file mode 100644 index 651fc16fab4f56a158e891dc96d4f43fc5f1a869..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0038.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0038 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(80) - .barHeight(300) - .vertical(true) - .padding(('10vp')) - .width(360) - .height(396) - .fadingEdge(true) - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0039.ets deleted file mode 100644 index 2cf9c48c29940e8b0625b3b979ae9685d133bce3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0039.ets +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0039 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.NONE - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .barHeight(300) - .vertical(true) - .padding(('10vp')) - .width(360) - .height(396) - .fadingEdge(true) - Button('打开模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0039_001') - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0039_002') - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0040.ets deleted file mode 100644 index c7a2d4a8ffb40c719201cc6c09daaf3eb94e2e31..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0040.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0040 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .barHeight(300) - .vertical(true) - .padding(('10vp')) - .width(360) - .height(396) - .fadingEdge(true) - - /*Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0040_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0041.ets deleted file mode 100644 index fd23edf3a68f5f501717aa62023f5c0c258a2db8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0041.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0041 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(50) - .barHeight(300) - .vertical(true) - .padding(('10vp')) - .width(360) - .height(396) - .fadingEdge(true) - - /*Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0041_001')*/ - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0042.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0042.ets deleted file mode 100644 index 98e26ea385a1148f0806dfb4abaa88271f247608..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0042.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0042 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Fixed) - .barWidth(50) - .vertical(true) - .width(360) - .height(396) - .fadingEdge(true) - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0043.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0043.ets deleted file mode 100644 index 242b6fdaf95dba25210d7db1fad3e9ede7d8e26e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0043.ets +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0043 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Blur') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(80) - //.padding('10vp') - .vertical(true) - .width(360) - .height(396) - .fadingEdge(true) - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0044.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0044.ets deleted file mode 100644 index 53551f1cafd911429e3aed466868e698ee56bc8c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0044.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0044 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.COMPONENT_ULTRA_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(80) - .barHeight(300) - .vertical(true) - .width(360) - .height(396) - .fadingEdge(true) - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0045.ets deleted file mode 100644 index d61e9c1a5415ef1c0a9b9c33c388f43b51ce8eda..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0045.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0045 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(80) - .padding('10vp') - .vertical(true) - .width(360) - .height(396) - .fadingEdge(true) - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0046.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0046.ets deleted file mode 100644 index 96e991bf7f173f86c39c6da412a91b296bf9a7b7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0046.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0046 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - @State selectedMode: SelectedMode = SelectedMode.BOARD; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Fixed) - .barWidth(50) - .padding('10vp') - .vertical(true) - .width(360) - .height(396) - .fadingEdge(true) - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0047.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0047.ets deleted file mode 100644 index d6da2636e1cb258e26017bad4bfb1b303239134e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0047.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0047 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1, 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3, 'Green')) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.End) - .vertical(true) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0048.ets deleted file mode 100644 index f741e52440aa4e80d51e5a541b7aaa608f9f2716..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0048.ets +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0048 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.NONE - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - .backgroundBlurStyle(this.blurStyle) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .divider({ - strokeWidth: 2, - color: Color.Red, - }) - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.End) - .vertical(true) - .width(360) - .height(196) - .fadingEdge(true) - Button('打开模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.COMPONENT_ULTRA_THICK - }).id('UIComponentNavTabsBlurStyle0048_001') - Button('关闭模糊').width('50%') - .onClick(()=>{ - this.blurStyle = BlurStyle.NONE - }).id('UIComponentNavTabsBlurStyle0048_002') - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0049.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0049.ets deleted file mode 100644 index 2f173a8ed52e5aa4471b5da70ba3737e898a7d95..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0049.ets +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0049 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(100) - .padding('10vp') - .barPosition(BarPosition.End) - .vertical(true) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0050.ets deleted file mode 100644 index d873edf84dd67bc7f6a0e0a32712b39611bc5940..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0050.ets +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0050 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Red') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Red }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barWidth(50) - .padding('10vp') - .barPosition(BarPosition.End) - .vertical(true) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0051.ets deleted file mode 100644 index 6937152cd39cdda5733ca18401c53dc547ea90ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0051.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0051 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('Pink') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - } - .tabBar(SubTabBarStyle.of('Yellow') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - } - .tabBar(SubTabBarStyle.of('Green') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('Red') - .selectedMode(SelectedMode.BOARD) - ) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Fixed) - .barWidth(50) - .barPosition(BarPosition.End) - .vertical(true) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0052.ets deleted file mode 100644 index ce25afd9115e5bfa1e7c9602de07a2d014b1a749..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0052.ets +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0052 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('Pink') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - } - .tabBar(SubTabBarStyle.of('Yellow') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - } - .tabBar(SubTabBarStyle.of('Green') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('Red') - .selectedMode(SelectedMode.BOARD) - ) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .barHeight(300) - .barPosition(BarPosition.End) - .vertical(true) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0053.ets deleted file mode 100644 index dedd3f028ac0fdfcaa746f125c4012f639dcc7fc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0053.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0053 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number, name: string) { - Column() { - Text(name) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(16) - .fontWeight(this.currentIndex === index ? 500 : 400) - .lineHeight(22) - .margin({ top: 17, bottom: 7 }) - Divider() - .strokeWidth(2) - .color('#007DFF') - .opacity(this.currentIndex === index ? 1 : 0) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('Pink') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - } - .tabBar(SubTabBarStyle.of('Yellow') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - } - .tabBar(SubTabBarStyle.of('Blue') - .selectedMode(SelectedMode.BOARD) - ) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - } - .tabBar(SubTabBarStyle.of('Green') - .selectedMode(SelectedMode.BOARD) - ) - } - .barBackgroundBlurStyle(this.blurStyle) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(BarMode.Scrollable) - .padding('10vp') - .barPosition(BarPosition.End) - .vertical(true) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0060.ets deleted file mode 100644 index a5c8a6910d19899fafb18bf044220a25a13d8ef2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0060.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0060 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%') - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width('100%').height('100%') - } - .tabBar(SubTabBarStyle.of('2')) - - } - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0080.ets deleted file mode 100644 index 9c187a58c379547f19df5871287b7514fdd31a7d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0080.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0080 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0100.ets deleted file mode 100644 index fdf750c12980ef4ff215e841d5d5ae193945ea31..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0100.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0100 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - } - .opacity(0.6) - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - } - .opacity(0.6) - .tabBar(SubTabBarStyle.of('2')) - - } - .opacity(0.6) - .barOverlap(true) - .width(360) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0110.ets deleted file mode 100644 index c3393cbbbbbd30ab17c541f77c068c579adbcfe0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0110.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0110 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barWidth('50%') - .barOverlap(true) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0160.ets deleted file mode 100644 index c82db6f7b8fbc156f4bfcfb6e5de9b2a5f520a04..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0160.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0160 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barOverlap(true) - .height(296) - .margin(10) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0170.ets deleted file mode 100644 index cbad1cf46ecfab96ed3cb29df4f15856f9885323..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0170.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0170 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barOverlap(true) - .height(296) - .padding(10) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0180.ets deleted file mode 100644 index 254ad5afce511b7f419fe63d6c31605e7c594e5b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0180.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */@Entry -@Component -struct UIComponentNavTabsBlurStyle0180 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Red) - } - .opacity(0) - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .opacity(0) - .tabBar(SubTabBarStyle.of('2')) - - } - .barOverlap(true) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0190.ets deleted file mode 100644 index 581d2831d705024ec667f55be57b681fcb70c880..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0190.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0190 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Red) - } - .opacity(0.6) - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .opacity(0.6) - .tabBar(SubTabBarStyle.of('2')) - - } - .barOverlap(true) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0200.ets deleted file mode 100644 index 1710160ec671acfa1a44d844c6c03f6ffd9bd783..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0200.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0200 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .opacity(0.6) - .barOverlap(true) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0210.ets deleted file mode 100644 index 08693368cda518a72ec12a91b2f59f52bfcdcc79..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0210.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0210 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Red) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .opacity(0) - .barOverlap(true) - .height(296) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0220.ets deleted file mode 100644 index 8d28c9a1c19af2b192fdcde6aefb73be1916f158..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0220.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0220 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(this.blurStyle) - .divider({ - strokeWidth: 10, - color: Color.Red }) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0230.ets deleted file mode 100644 index 76dc54c84fc148787a0fda03d1cbef4fc3ee7141..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0230.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0230 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor('#ff0000') - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0240.ets deleted file mode 100644 index e34491b12a60215c191a4df58ca6b74c33257724..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0240.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0240 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor('#ffffff') - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0250.ets deleted file mode 100644 index 77f2db72b2da824752064724d9b5f641995cf0d0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0250.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0250 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor(0xff0000) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0260.ets deleted file mode 100644 index 8753255d9ed8d93196c67005961da5df873a3eac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0260.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0260 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor(0xffff00) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0270.ets deleted file mode 100644 index aad861ede37e675a7888aa0f93c95df8245b2337..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0270.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0270 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor(Color.Blue) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0280.ets deleted file mode 100644 index e79cbfe2600a841fa80eb064f840d5cf7fc11d5a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0280.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0280 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor(Color.Yellow) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0290.ets deleted file mode 100644 index 4a148ed267973de16604b0faab72e27c44e8b457..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0290.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0290 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor($r('app.color.start_window_background')) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0300.ets deleted file mode 100644 index f1c10b0815834a6d7ac21ffe3c8c5451f8b1f85c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0300.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0300 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor('rgb(255,255,0)') - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0310.ets deleted file mode 100644 index ca812e5062171d02f2baad0d7f4b9a4b0c5ea42c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0310.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0310 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor('rgba(255,0,0,0.5)') - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0320.ets deleted file mode 100644 index f2b863e8785fc24ae95403576b52eb56a1aac46b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0320.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0320 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor('abc') - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0340.ets deleted file mode 100644 index 783cb4fefe9e764f73b6d499bf42f8a5e48c78a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0340.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0340 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Green) - } - .tabBar(SubTabBarStyle.of('tab1')) - - TabContent() { - Column().width(500).height('100%') - } - .tabBar(SubTabBarStyle.of('tab2')).backgroundColor(Color.Red) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0350.ets deleted file mode 100644 index 6f305f9f2322bee3a4d6ce5b6fe03a59f3e4c397..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0350.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0350 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor(Color. Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0360.ets deleted file mode 100644 index 19ce03d1ef56d2898f0a5e53436d434880af830f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0360.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0360 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundColor(Color. Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .opacity(0.6) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0370.ets deleted file mode 100644 index 4d03eec2be34fe0dbbe0105d8a5db90f73d03422..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0370.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0370 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barWidth('150%') - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0380.ets deleted file mode 100644 index 5d37b7e1d857987ca80e7667a2ce7ce9452031f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0380.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0380 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barHeight('100%') - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0390.ets deleted file mode 100644 index e64126db2481805f715a5301d4cf92f355356f3b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0390.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0390 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barHeight('150%') - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0400.ets deleted file mode 100644 index 8f396c2104fb0da446ffdd2ad1dbe604d7269319..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0400.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsBlurStyle0400 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barHeight('20%') - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount014.ets deleted file mode 100644 index 0a9b2b6dac4bc4348365dfeaa880fa66686b7c47..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount014.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { BusinessError } from '@kit.BasicServicesKit' - -@Entry -@Component -struct UIComponentNavTabsCachedCount014 { - @State currentIndex: number = 0 - private tabsController: TabsController = new TabsController() - - build() { - Column() { - Tabs({ index: this.currentIndex, barPosition: BarPosition.Start, controller: this.tabsController }) { - TabContent() { - MyComponent({ color: '#00CB87' }) - }.tabBar(SubTabBarStyle.of('green')) - - TabContent() { - MyComponent({ color: '#007DFF' }) - }.tabBar(SubTabBarStyle.of('blue')) - - TabContent() { - MyComponent({ color: '#FFBF00' }) - }.tabBar(SubTabBarStyle.of('yellow')) - - TabContent() { - MyComponent({ color: '#E67C92' }) - }.tabBar(SubTabBarStyle.of('pink')) - } - .width(360) - .height(296) - .backgroundColor('#F1F3F5') - .onChange((index: number) => { - this.currentIndex = index - }) - - Button('preload items: [1, 3]') - .margin(5) - .onClick(() => { - // 预加载第1、3个子节点,提高滑动或点击切换至这些节点时的性能 - this.tabsController.preloadItems([1, 3]) - .then(() => { - console.info('preloadItems success.') - }) - .catch((error: BusinessError) => { - console.error('preloadItems failed, error code: ' + error.code + ', error message: ' + error.message) - }) - }) - .id('UIComponentNavTabs014_001') - } - } -} - -@Component -struct MyComponent { - private color: string = "" - - aboutToAppear(): void { - console.info('aboutToAppear backgroundColor:' + this.color) - } - - aboutToDisappear(): void { - console.info('aboutToDisappear backgroundColor:' + this.color) - } - - build() { - Column() - .width('100%') - .height('100%') - .backgroundColor(this.color) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount015.ets deleted file mode 100644 index 57f6ee4c8128606f7a91c98774151a39f7e319a4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount015.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { BusinessError } from '@kit.BasicServicesKit' - -@Entry -@Component -struct UIComponentNavTabsCachedCount015 { - @State currentIndex: number = 0 - private tabsController: TabsController = new TabsController() - - build() { - Column() { - Tabs({ index: this.currentIndex, barPosition: BarPosition.End, controller: this.tabsController }) { - TabContent() { - MyComponent({ color: '#00CB87' }) - }.tabBar(SubTabBarStyle.of('green')) - - TabContent() { - MyComponent({ color: '#007DFF' }) - }.tabBar(SubTabBarStyle.of('blue')) - - TabContent() { - MyComponent({ color: '#FFBF00' }) - }.tabBar(SubTabBarStyle.of('yellow')) - - TabContent() { - MyComponent({ color: '#E67C92' }) - }.tabBar(SubTabBarStyle.of('pink')) - } - .width(360) - .height(296) - .backgroundColor('#F1F3F5') - .onChange((index: number) => { - this.currentIndex = index - }) - - Button('preload items: [1, 3]') - .margin(5) - .onClick(() => { - // 预加载第1、3个子节点,提高滑动或点击切换至这些节点时的性能 - this.tabsController.preloadItems([1, 3]) - .then(() => { - console.info('preloadItems success.') - }) - .catch((error: BusinessError) => { - console.error('preloadItems failed, error code: ' + error.code + ', error message: ' + error.message) - }) - }) - .id('UIComponentNavTabs015_001') - } - } -} - -@Component -struct MyComponent { - private color: string = "" - - aboutToAppear(): void { - console.info('aboutToAppear backgroundColor:' + this.color) - } - - aboutToDisappear(): void { - console.info('aboutToDisappear backgroundColor:' + this.color) - } - - build() { - Column() - .width('100%') - .height('100%') - .backgroundColor(this.color) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount016.ets deleted file mode 100644 index 4989f8dabb7a0c66a3c9b87587fa61a16e322691..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount016.ets +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { BusinessError } from '@kit.BasicServicesKit' - -@Entry -@Component -struct UIComponentNavTabsCachedCount016 { - @State currentIndex: number = 0 - @State barPosition: BarPosition = BarPosition.Start // 新增状态以动态改变 barPosition - private tabsController: TabsController = new TabsController() - - build() { - Column() { - // Tabs 组件,使用动态 barPosition - Tabs({ index: this.currentIndex, barPosition: this.barPosition, controller: this.tabsController }) { - TabContent() { - MyComponent({ color: '#00CB87' }) - }.tabBar(SubTabBarStyle.of('green')) - - TabContent() { - MyComponent({ color: '#007DFF' }) - }.tabBar(SubTabBarStyle.of('blue')) - - TabContent() { - MyComponent({ color: '#FFBF00' }) - }.tabBar(SubTabBarStyle.of('yellow')) - - TabContent() { - MyComponent({ color: '#E67C92' }) - }.tabBar(SubTabBarStyle.of('pink')) - } - .width(360) - .height(296) - .backgroundColor('#F1F3F5') - .onChange((index: number) => { - this.currentIndex = index - }) - - Button('preload items: [1, 3]') - .margin(5) - .onClick(() => { - // 预加载第1、3个子节点,提高滑动或点击切换至这些节点时的性能 - this.tabsController.preloadItems([1, 3]) - .then(() => { - console.info('preloadItems success.') - }) - .catch((error: BusinessError) => { - console.error('preloadItems failed, error code: ' + error.code + ', error message: ' + error.message) - }) - }) - .id('UIComponentNavTabs016_001') - - // 按钮用于切换 barPosition - Button('Toggle Bar Position') - .margin(5) - .onClick(() => { - // 切换 barPosition - this.barPosition = this.barPosition === BarPosition.Start ? BarPosition.End : BarPosition.Start; - console.info('Bar position changed to: ' + this.barPosition); - }) - .id('UIComponentNavTabs016_002') - } - } -} - -@Component -struct MyComponent { - private color: string = "" - - aboutToAppear(): void { - console.info('aboutToAppear backgroundColor:' + this.color) - } - - aboutToDisappear(): void { - console.info('aboutToDisappear backgroundColor:' + this.color) - } - - build() { - Column() - .width('100%') - .height('100%') - .backgroundColor(this.color) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt001.ets deleted file mode 100644 index 38dc88331734f88d757c9855df5f410cd8735c3a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt001.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt001 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barWidth('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height(400) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt002.ets deleted file mode 100644 index 978133ebb0ae3f3f9976786ccd459484175bc86f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt002.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt002 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width(500) - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt003.ets deleted file mode 100644 index 3a480b85cc3741a557ed52423bbe9d202c6c165b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt003.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt003 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width(500) - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt004.ets deleted file mode 100644 index 8bc1098ddda6fb6bfa9e606e3a3d57bb04924d64..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt004.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt004 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barWidth('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height(400) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0050.ets deleted file mode 100644 index 7e7ab58e5cf0e4e6cf88b65de127c8c33eb72486..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0050.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt0500 { - private controller: TabsController = new TabsController() - @State subTabBorderRadius: number = 10; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height(50).backgroundColor(Color.Pink).borderRadius(this.subTabBorderRadius) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height(60).backgroundColor(Color.Yellow).borderRadius(this.subTabBorderRadius) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height(70).backgroundColor(Color.Blue).borderRadius(this.subTabBorderRadius) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height(80).backgroundColor(Color.Green).borderRadius(this.subTabBorderRadius) - }.tabBar('green') - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Scrollable) - .barHeight(140) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .backgroundColor(0xF5F5F5) - .height('auto') - - }.width('100%').height(250).padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt007.ets deleted file mode 100644 index 88974097360926137ed7ee8f5e1b58c855f40cf6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt007.ets +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt007 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State tabPadding: string = 'auto' - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width(500) - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - .padding(this.tabPadding) - - Button('tab.padding设置为10').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabPadding = '10' - }).id('UIComponentNavTabsContentAdapt007_001') - - Button('tab.padding设置为20').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabPadding = '20' - }).id('UIComponentNavTabsContentAdapt007_002') - - Button('tab.padding设置为30').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabPadding = '30' - }).id('UIComponentNavTabsContentAdapt007_003') - - Button('tab.padding设置为auto').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabPadding = 'auto' - }).id('UIComponentNavTabsContentAdapt007_004') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0080.ets deleted file mode 100644 index a595bf5629810e2144fa68fdc18a05c2a4197052..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0080.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt0080 { - private controller: TabsController = new TabsController() - @State subTabBorderRadius: number = 10; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height(50).backgroundColor(Color.Pink).borderRadius(this.subTabBorderRadius) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height(60).backgroundColor(Color.Yellow).borderRadius(this.subTabBorderRadius) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height(70).backgroundColor(Color.Blue).borderRadius(this.subTabBorderRadius) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height(80).backgroundColor(Color.Green).borderRadius(this.subTabBorderRadius) - }.tabBar('green') - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Scrollable) - .barHeight(140) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .backgroundColor(0xF5F5F5) - .height('auto') - - Button('addBorderRadius').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.subTabBorderRadius = 20 - }).id('UIComponentNavTabsContentAdapt0080_001') - - Button('resetBorderRadius').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.subTabBorderRadius = 10 - }).id('UIComponentNavTabsContentAdapt0080_002') - - }.width('100%').height(250).padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt010.ets deleted file mode 100644 index d226bfc2c8d907d9537d0675c9317de92b3d08f0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt010.ets +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt010 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text('Tab') - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').height('100%').justifyContent(FlexAlign.Center) - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(50) - }.tabBar(this.tabBuilder(0)) - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(100) - }.tabBar(this.tabBuilder(1)) - TabContent(){ - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(150) - }.tabBar(this.tabBuilder(2)) - TabContent(){ - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(true) - .barWidth(96) - .barHeight(414) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height(414) - .backgroundColor('#F1F3F5') - .margin({ top: 52 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt011.ets deleted file mode 100644 index 5d4994b3976c0292a2f28079f9d852ba65324a4c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt011.ets +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt011 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text('Tab') - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').height('100%').justifyContent(FlexAlign.Center) - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50) - }.tabBar(this.tabBuilder(0)) - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100) - }.tabBar(this.tabBuilder(1)) - TabContent(){ - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150) - }.tabBar(this.tabBuilder(2)) - TabContent(){ - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(400) - }.tabBar(this.tabBuilder(3)) - } - .vertical(true) - .barWidth(96) - .barHeight(200) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(300) - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 52 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt012.ets deleted file mode 100644 index 5ea70d1d46db3afc654963ff58ef0acce6ec9834..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt012.ets +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt012 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text('Tab') - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').height('100%').justifyContent(FlexAlign.Center) - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50) - }.tabBar(this.tabBuilder(0)) - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100) - }.tabBar(this.tabBuilder(1)) - TabContent(){ - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150) - }.tabBar(this.tabBuilder(2)) - TabContent(){ - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(400) - }.tabBar(this.tabBuilder(3)) - } - .vertical(true) - .barWidth(96) - .barHeight(200) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(300) - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 52 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt013.ets deleted file mode 100644 index 495b06153678a4f67745fb6deaeb1f51b280f773..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt013.ets +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt013 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text('Tab') - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').height('100%').justifyContent(FlexAlign.Center) - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(50) - }.tabBar(this.tabBuilder(0)) - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(100) - }.tabBar(this.tabBuilder(1)) - TabContent(){ - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(150) - }.tabBar(this.tabBuilder(2)) - TabContent(){ - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(true) - .barWidth(96) - .barHeight(414) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height(414) - .backgroundColor('#F1F3F5') - .margin({ top: 52 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt014.ets deleted file mode 100644 index 4422d4d9a7ff0046616207ea64fe2f5f571933e0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt014.ets +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt014 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50).width(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100).width(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150).width(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(200).width(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .scrollable(false) - .barHeight('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - .padding('auto') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0150.ets deleted file mode 100644 index 7274559e79bcab2e40b8482ebaa08c9db13f0ef1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0150.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt0150 { - @State barWidth: number = 300; - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')); - } - .vertical(false) - .scrollable(true) - .barHeight('auto') - .barWidth(this.barWidth) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()); - }) - .width('400') - .height('auto') - .backgroundColor(0xF1F3F5); - Button('宽度改变').width('50%') - .onClick(() => { - if (this.barWidth == 300) { - this.barWidth = 400; - } - else { - this.barWidth = 300; - } - }).id('UIComponentNavTabsContentAdapt0150_001'); - - }.width('100%').height(200) - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0160.ets deleted file mode 100644 index 57cfb440c28f8e9eb4cd84631705b16e64094fe5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0160.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0160 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barWidth: number = 200; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barWidth') - .id('UIComponentNavTabsContentadapt0160_001') - .onClick(() => { - this.barWidth += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('auto') - .barWidth(this.barWidth) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0170.ets deleted file mode 100644 index 9ffae16a4e9a399ca596d3b68771a3d2f558cd4d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0170.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0170 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barWidth: number = 200; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barWidth') - .id('UIComponentNavTabsContentadapt0170_001') - .onClick(() => { - this.barWidth += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('auto') - .barWidth(this.barWidth) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0180.ets deleted file mode 100644 index 15c96d9b15834e7a280e52fd26cdeae492e931c7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0180.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt0180 { - @State barWidth: number = 200; - build() { - Column({ space: 5 }) { - - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')); - } - .vertical(true).scrollable(true).barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('auto') - .barWidth(this.barWidth) - .backgroundColor(0xF1F3F5); - - Button('宽度改变').width('50%') - .onClick(() => { - this.barWidth -= 50; - if (this.barWidth <= 100) { - this.barWidth = 200; - } - }).id('UIComponentNavTabsContentAdapt0180_001'); - - }.width('400').height('400'); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0190.ets deleted file mode 100644 index ac565f2f779f2d27a252d44306323323d92e2480..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0190.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0190 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barWidth: number = 200; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barWidth') - .id('UIComponentNavTabsContentadapt0190_001') - .onClick(() => { - this.barWidth += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .vertical(true) - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .width('auto') - .barWidth(this.barWidth) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0200.ets deleted file mode 100644 index 5f4db990807104330cd3d210c269385f35643e74..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0200.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0200 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barWidth: number = 200; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barWidth') - .id('UIComponentNavTabsContentadapt0200_001') - .onClick(() => { - this.barWidth += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .vertical(true) - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('auto') - .barWidth(this.barWidth) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0210.ets deleted file mode 100644 index 26fb7de5a70ad77dd6aa6e4d40623cb4f8b317cd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0210.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt0210 { - @State barHeight: number = 100; - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')); - } - .vertical(false) - .scrollable(true) - .barHeight(this.barHeight) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()); - }) - .width('100%') - .height('auto') - .backgroundColor(0xF1F3F5); - Button('高度改变').width('50%') - .onClick(() => { - this.barHeight += 50; - if (this.barHeight >= 200) { - this.barHeight = 100; - } - }).id('UIComponentNavTabsContentAdapt0210_001'); - - }.width('100%').height(200) - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0220.ets deleted file mode 100644 index 61c778abaa031aea5d7508cc4b277a4921b2e4f5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0220.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0220 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barHeight: number = 100; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barheight') - .id('UIComponentNavTabsContentadapt0220_001') - .onClick(() => { - this.barHeight += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('auto') - .barHeight(this.barHeight) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0230.ets deleted file mode 100644 index bd0c8fc2afb56965f602f6981974cf11fd4689fd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0230.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0230 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barHeight: number = 200; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barHeight') - .id('UIComponentNavTabsContentadapt0230_001') - .onClick(() => { - this.barHeight += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('auto') - .barHeight(this.barHeight) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0240.ets deleted file mode 100644 index 9be0ffc85c8266ca2e182cb784ad107c0da2f9a8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0240.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt0240 { - @State barHeight: number = 400; - build() { - Column({ space: 5 }) { - - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')); - } - .vertical(true).scrollable(true).barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('auto') - .barHeight(this.barHeight) - .backgroundColor(0xF1F3F5); - - Button('高度改变').width('50%') - .onClick(() => { - this.barHeight -= 50; - if (this.barHeight <= 300) { - this.barHeight = 400; - } - }).id('UIComponentNavTabsContentAdapt0240_001'); - - }.width('100%').height(400); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0250.ets deleted file mode 100644 index 7bb6a5df18b52c6395ce1fbb2dc98b00b7ee2c2d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0250.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0250 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barHeight: number = 100; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barheight') - .id('UIComponentNavTabsContentadapt0250_001') - .onClick(() => { - this.barHeight += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .vertical(true) - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .width('auto') - .barHeight(this.barHeight) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0260.ets deleted file mode 100644 index 0f786fc593f799773b07f8dd03bd8e7e023331b7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0260.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentadapt0260 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State barHeight: number = 200; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('change barHeight') - .id('UIComponentNavTabsContentadapt0260_001') - .onClick(() => { - this.barHeight += 50; - }) - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(SubTabBarStyle.of('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(SubTabBarStyle.of('Green')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(SubTabBarStyle.of('Blue')) - } - .vertical(true) - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .width('auto') - .barHeight(this.barHeight) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt027.ets deleted file mode 100644 index 9e1ab4d5e947f835f8342df33a356262606d1cc6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt027.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt027 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'red' - @State strokeWidth: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller1 }) { - TabContent() { - Column().width('100%').height(50).backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height(80).backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height(100).backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height(120).backgroundColor(Color.Green) - }.tabBar('green') - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth('auto') - .barHeight('auto') - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('auto') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - - Button('增加Divider').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.nullFlag = false; - this.strokeWidth += 2; - this.dividerColor = 'red'; - this.startMargin = 0; - this.endMargin = 0; - }).id('UIComponentNavTabsContentAdapt027_001') - Button('复位Divider').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.nullFlag = false - this.strokeWidth = 2; - }).id('UIComponentNavTabsContentAdapt027_002') - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt028.ets deleted file mode 100644 index dd92e42c203db554e3ef40ce6ba805b5b280c34a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt028.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt028 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'blue' - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller1 }) { - TabContent() { - Column().width('100%').height(50).backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height(70).backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height(80).backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height(100).backgroundColor(Color.Green) - }.tabBar('green') - - } - .vertical(false) - .direction(Direction.Ltr) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth('auto') - .barHeight('auto') - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('auto') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: 2, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - Button('上边距增加').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.startMargin += 2 - }).id('UIComponentNavTabsContentAdapt028_001') - - Button('上边距减少').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - if (this.startMargin > 2) { - this.startMargin -= 2 - } - }).id('UIComponentNavTabsContentAdapt028_002') - - Button('下边距增加').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.endMargin += 2 - }).id('UIComponentNavTabsContentAdapt028_003') - - Button('下边距减少').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - if (this.endMargin > 2) { - this.endMargin -= 2 - } - }).id('UIComponentNavTabsContentAdapt028_004') - - Button('颜色变为红色').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.dividerColor = 'red' - }).id('UIComponentNavTabsContentAdapt028_005') - - - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt030.ets deleted file mode 100644 index fcb001cd536778fb1e758d54297ff479d4ed2728..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt030.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt030 { - private controller: TabsController = new TabsController() - @State barOverlap: boolean = true; - @State barBackgroundColor: string = '#88888888'; - - build() { - Column() { - - Tabs({ barPosition: BarPosition.Start, index: 2, controller: this.controller }) { - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(200) - .backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "1")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(300) - .backgroundColor(Color.Yellow) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "2")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(400) - .backgroundColor(Color.Green) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "3")) - } - .vertical(false) - .barMode(BarMode.Fixed) - .height('60%') - .barOverlap(true) - .scrollable(true) - .animationDuration(10) - .barBackgroundColor(this.barBackgroundColor) - } - .height(500) - .padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0310.ets deleted file mode 100644 index 8fb27f96eda57ecc929133e7570ef8f7332ec922..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0310.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt0310 { - @State vertical: boolean = false; - build() { - Column({ space: 5 }) { - - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height(100).backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')) - - TabContent() { - Column().width('100%').height(110).backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')) - - TabContent() { - Column().width('100%').height(120).backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')) - - TabContent() { - Column().width('100%').height(130).backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')) - } - .vertical(this.vertical).scrollable(true).barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .height('auto') - .backgroundColor(0xF1F3F5); - - Button('设置').width('50%').margin({ top: 20 }) - .onClick(() => { - this.vertical = !this.vertical; - }).id('UIComponentNavTabsContentAdapt0310_001') - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt032.ets deleted file mode 100644 index 79e66eecc76efc97d41a84272fcb36e898da7140..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt032.ets +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt032 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State tabVertical: boolean = false - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Button('tab.vertical设置为true').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabVertical = !this.tabVertical - }).id('UIComponentNavTabsContentAdapt032_001') - - Tabs({ barPosition: BarPosition.Start, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50).width(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100).width(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150).width(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(200).width(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(this.tabVertical) - .barHeight('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - .padding('auto') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt033.ets deleted file mode 100644 index d41ad152cd890ae101acae668c26f50906c7a4aa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt033.ets +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct Index { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')); - @State symbolModifier3: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.dot_video')); - @State symbolModifier4: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.exposure')); - - @State barPosition: BarPosition = BarPosition.Start // 新增状态以动态改变 barPosition - - build() { - Column({space: 5}) { - Text("底部页签样式") - Column(){ - Tabs({barPosition: this.barPosition}) { - TabContent() { - Column(){ - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 0, bottom: 6.5 }) - }.width('100%').height('auto').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Pink')) - .onWillShow(() => { - console.info("Pink will show") - }) - .onWillHide(() => { - console.info("Pink will hide") - }) - - TabContent() { - Column(){ - Text('Tab_222') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 10, bottom: 16.5 }) - }.width('100%').height('auto').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier2, - }, 'Orange')) - .onWillShow(() => { - console.info("Orange will show") - }) - .onWillHide(() => { - console.info("Orange will hide") - }) - - TabContent() { - Column(){ - Text('Tab_333333') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 20, bottom: 26.5 }) - }.width('100%').height('auto').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier3, - }, 'Blue')) - .onWillShow(() => { - console.info("Blue will show") - }) - .onWillHide(() => { - console.info("Blue will hide") - }) - - TabContent() { - Column(){ - Text('Tab_444444444') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 36.5 }) - }.width('100%').height('auto').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier4, - }, 'Green')) - .onWillShow(() => { - console.info("Green will show") - }) - .onWillHide(() => { - console.info("Green will hide") - }) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index:number)=>{ - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - // 按钮用于切换 barPosition - Button('Toggle Bar Position') - .margin(5) - .onClick(() => { - // 切换 barPosition - this.barPosition = this.barPosition === BarPosition.Start ? BarPosition.End : BarPosition.Start; - console.info('Bar position changed to: ' + this.barPosition); - }) - .id('UIComponentNavTabs033_001') - - }.width('100%').height(200) - - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt034.ets deleted file mode 100644 index 80b50767a09985ab43a5ccea6172a025717e8773..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt034.ets +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt034 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State tabWidth: string = 'auto' - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text('Tab') - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').height('100%').justifyContent(FlexAlign.Center) - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(50) - }.tabBar(this.tabBuilder(0)) - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(100) - }.tabBar(this.tabBuilder(1)) - TabContent(){ - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(150) - }.tabBar(this.tabBuilder(2)) - TabContent(){ - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(250) - }.tabBar(this.tabBuilder(3)) - } - .vertical(true) - .barWidth(96) - .barHeight(414) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(this.tabWidth) - .height(414) - .backgroundColor('#F1F3F5') - .margin({ top: 52 }) - - Button('宽度设置为200').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabWidth = '200' - }).id('UIComponentNavTabsContentAdapt034_001') - - Button('宽度设置为-100').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabWidth = '-100' - }).id('UIComponentNavTabsContentAdapt034_002') - - Button('宽度设置为100%').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabWidth = '100%' - }).id('UIComponentNavTabsContentAdapt034_003') - - Button('宽度设置为auto').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabWidth = 'auto' - }).id('UIComponentNavTabsContentAdapt034_004') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt035.ets deleted file mode 100644 index 5dcf876c5d12a30d0faab26b66ff3ff7200996b4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt035.ets +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsContentAdapt035 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State tabHeight: string = 'auto' - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width(500) - .height(this.tabHeight) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - - Button('高度设置为200').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabHeight = '300' - }).id('UIComponentNavTabsContentAdapt035_001') - - Button('高度设置为-1').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabHeight = 'auto' - }).id('UIComponentNavTabsContentAdapt035_002') - - Button('高度设置为50%').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabHeight = '50%' - }).id('UIComponentNavTabsContentAdapt035_003') - - Button('高度设置为auto').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.tabHeight = '-1' - }).id('UIComponentNavTabsContentAdapt035_004') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0230.ets deleted file mode 100644 index 9334f81c220304e132da8284a679c7826f7b6e4e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0230.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsEdgeeffect0230 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0270.ets deleted file mode 100644 index 1c64ab4c43cc61f6e4b18410b5ef08ee5888b7d5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0270.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsEdgeeffect0270 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(SubTabBarStyle.of('1')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(SubTabBarStyle.of('2')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0010.ets deleted file mode 100644 index 9cd6c935ab810ba797161506bef3e7b8157ddfd2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0010.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0010 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0020.ets deleted file mode 100644 index 5d35f376c7404b39461d8abe5f076a6b22665bfe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0020.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0020 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0030.ets deleted file mode 100644 index a8bf8d37e29fba14b96f8656e4fe2785e642532f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0030.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0030 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - .expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.TOP, SafeAreaEdge.BOTTOM]) - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0040.ets deleted file mode 100644 index bc633d6239139a10cd3f913175792dadc696511a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0040.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0040 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - .expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.TOP]) - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0050.ets deleted file mode 100644 index 0093d68cfb8a611154ac559228e665ffc6c08b06..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0050.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0050 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - .expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.BOTTOM]) - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0060.ets deleted file mode 100644 index f710671495671a7aa49d52ce282e84f179fe5567..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0060.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0060 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - .expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.START, SafeAreaEdge.END]) - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0070.ets deleted file mode 100644 index 9a3a066430dd47cea5141cd225c71f403e75399e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0070.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0070 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - .expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.START]) - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0080.ets deleted file mode 100644 index 90c447407833eddca7bc4bc34818446d6e87857e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0080.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0080 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - .expandSafeArea([SafeAreaType.SYSTEM],[SafeAreaEdge.END]) - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0090.ets deleted file mode 100644 index e03fbf643d9fd86045daac9038cff0887676e586..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0090.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0090 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0100.ets deleted file mode 100644 index d1edb2fd370e2b82def1295d01b14f90ae83bbf7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0100.ets +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0100 { - @State currentIndex: number = 0 - @State simpleList: Array = ['1','2']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - }.tabBar(this.tabBuilder(item, 1)) - }, (item: string) => item) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(200) - .backgroundColor('#F1F3F5') - .scrollable(true) - - Button('addTabs').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 2000; i++) { - console.log("addTabs=%d",i); - this.simpleList.push('a'); - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0140_001') - - Button('changeTabIndex').width('50%').margin({ top: 20 }) - .onClick(() => { - this.currentIndex = 3 - }).id('UIComponentNavTabsImproTrace0140_002') - } - .width('100%') - .height('100%') - - } - .height('100%') - .backgroundColor(0xF1F3F5) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0110.ets deleted file mode 100644 index 8b87aebe0f545221178caf7252c6a8534acf04c9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0110.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0110 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Scroll(){ - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0120.ets deleted file mode 100644 index c028a16c3f394969ebfedc24cad79132482d1a96..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0120.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentNavTabsExpandsafearea0120 { - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - private controller: TabsController = new TabsController(); - - build() { - Column() { - Text('文本') - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Pink') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Pink }) - ) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_ic_public_text'), 'Black') - .labelStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - .iconStyle({ unselectedColor: Color.Red, selectedColor: Color.Black }) - ) - - } - .backgroundColor(Color.Green) - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .height('50%') - Text('文本') - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsHeight/UIComponentNavTabsHeight001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsHeight/UIComponentNavTabsHeight001.ets deleted file mode 100644 index fa19b6d2bcb65dee0931a81670f606d2d697dec9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsHeight/UIComponentNavTabsHeight001.ets +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsHeight001 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - } - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller, }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(50) - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(100) - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(150) - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.height(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight('auto') - .onChange((index: number) => { - this.currentIndex = index - }) - .width(500) - .height('auto') - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0010.ets deleted file mode 100644 index 359b549b677bb6570272722ae8dbd928122db907..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0010.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0010 { - @State currentIndex: number = 0; - @State tabVertical: boolean = false; - @State direction1: Direction = Direction.Rtl; - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController(); - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - aboutToAppear(): void { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - } - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(100) - .width(100) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center); - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(true) - .barMode(BarMode.Fixed) - .barWidth(60) - .barHeight(360) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index; - }) - .width(200) - .height('auto') - .backgroundColor('#F1F3F5') - .scrollable(true) - .direction(this.direction1); - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0020.ets deleted file mode 100644 index fef0a00a2e8fa3a28b1a38fe4962ba55b8ae3649..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0020.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0020 { - @State fontColor: string = '#182431'; - @State selectedFontColor: string = '#007DFF'; - @State currentIndex: number = 0; - @State selectedIndex: number = 0; - @State simpleList: Array = [1]; - private controller: TabsController = new TabsController(); - - @Builder - tabBuilder(index: number) { - Column() { - Image(this.selectedIndex === index ? $r("app.media.magnifier") : $r("app.media.tick")) - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 5; i++) { - this.simpleList.push(i); - } - }).id('UIComponentNavTabsImproTrace0020_001'); - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - ForEach(this.simpleList, (item: number) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(200) - .width(200) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center); - }.tabBar(this.tabBuilder(item)); - - }, (item: string) => item); - } - .vertical(false) - .barHeight(56) - .onChange((index: number) => { - this.currentIndex = index - }) - .onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => { - if (index === targetIndex) { - return - } - this.selectedIndex = targetIndex + 1 - }) - .width(360) - .height(190) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }); - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0030.ets deleted file mode 100644 index 327c620bc6798c7623960f20c5579f08a6947eda..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0030.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0030 { - @State currentIndex: number = 0 - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .id(title) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0030_001'); - - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(200) - .width(200) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barWidth(260) - .barMode(BarMode.Fixed) - .barHeight(100) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height('300') - .backgroundColor('#F1F3F5') - .scrollable(true) - .id('UIComponentNavTabsImproTrace0030_002'); - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0040.ets deleted file mode 100644 index ce06fb0e8eee2ad1360326e71fa0aa724169a321..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0040.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0040 { - @State currentIndex: number = 0 - - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0040_001'); - - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(400) - .width(400) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barWidth(360) - .barMode(BarMode.Scrollable) - .barHeight(100) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height('500') - .backgroundColor('#F1F3F5') - .scrollable(true) - .id('UIComponentNavTabsImproTrace0040_002'); - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0060.ets deleted file mode 100644 index d94c02ea8164afa36792f6573cc94664e6f757b9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0060.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0060 { - @State currentIndex: number = 0 - - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0060_001'); - - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(400) - .width(400) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barWidth(360) - .barMode(BarMode.Scrollable) - .barHeight(100) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height('500') - .backgroundColor('#F1F3F5') - .scrollable(true) - .id('UIComponentNavTabsImproTrace0060_002'); - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0070.ets deleted file mode 100644 index 436587898f127487dc6f28ac84128a28bfc48461..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0070.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0070 { - @State currentIndex: number = 0 - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0070_001'); - - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(200) - .width(200) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barWidth(260) - .barMode(BarMode.Scrollable) - .barHeight(100) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height('300') - .backgroundColor('#F1F3F5') - .scrollable(true) - .id('UIComponentNavTabsImproTrace0070_002'); - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0080.ets deleted file mode 100644 index 67062e5ba94b9863c8cd62ed5a9795bd3a721720..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0080.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0080 { - @State currentIndex: number = 0 - @State barWidth: string = '360' - @State barHeight: string = '60' - @State tabWidth: string = 'auto' - @State tabHeight: string = '200' - @State tabVertical: boolean = false - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0080_001'); - - Button('横纵向切换').width('50%').margin({ top: 20 }) - .onClick(() => { - this.barWidth = '60' - this.barHeight = '360' - this.tabWidth = '200' - this.tabHeight = 'auto' - this.tabVertical = !this.tabVertical - }).id('UIComponentNavTabsImproTrace0080_002'); - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(100) - .width(100) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(this.tabVertical) - .barMode(BarMode.Fixed) - .barWidth(this.barWidth) - .barHeight(this.barHeight) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(this.tabWidth) - .height(this.tabHeight) - .backgroundColor('#F1F3F5') - .scrollable(true) - - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0120.ets deleted file mode 100644 index 1c0bb5553cd7e487e8e7617a7eaca8f29200d77a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0120.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0120 { - @State currentIndex: number = 0 - @State tabContentWidth: number = 60 - @State tabContentHeight: number = 60 - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(this.tabContentHeight) - .width(this.tabContentWidth) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height(200) - .backgroundColor('#F1F3F5') - .scrollable(true) - - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0120_001'); - - Button('增加宽和高').width('50%').margin({ top: 20 }) - .onClick(() => { - this.tabContentHeight = this.tabContentHeight + 10; - this.tabContentWidth = this.tabContentWidth + 10; - }).id('UIComponentNavTabsImproTrace0120_002'); - - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0130.ets deleted file mode 100644 index bfc06f4d5c93b1a76217531b4b3e1df93e3431c6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0130.ets +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0130 { - @State currentIndex: number = 0 - @State tabVertical: boolean = false - @State direction1: Direction = Direction.Rtl - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - - Button('addTabContents').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0130_001'); - - Button('镜像切换').width('50%').margin({ top: 20 }) - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl; - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr; - } - }).id('UIComponentNavTabsImproTrace0130_002'); - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - .height(100) - .width(100) - .backgroundColor('#FF0000') - .justifyContent(FlexAlign.Center); - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(true) - .barMode(BarMode.Fixed) - .barWidth(60) - .barHeight(360) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(200) - .height('auto') - .backgroundColor('#F1F3F5') - .scrollable(true) - .direction(this.direction1); - } - .width('100%') - .height('100%'); - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0140.ets deleted file mode 100644 index 1491994ee5f65bada5d2593385f96ea7ad159c52..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0140.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0140 { - @State currentIndex: number = 0 - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(200) - .backgroundColor('#F1F3F5') - .scrollable(true); - - Button('addTabs').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0140_001'); - - Button('changeTabIndex').width('50%').margin({ top: 20 }) - .onClick(() => { - this.controller.changeIndex(3) - }).id('UIComponentNavTabsImproTrace0140_002'); - } - .width('100%') - .height('100%'); - - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0150.ets deleted file mode 100644 index daa7375ed74e7b2b71bab7bc696aaff19dcc1be2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0150.ets +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsImproTrace0150 { - @State currentIndex: number = 0 - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(200) - .backgroundColor('#F1F3F5') - .scrollable(true); - - Button('addTabs').width('50%').margin({ top: 20 }) - .onClick(() => { - for (let i = 2; i <= 10; i++) { - this.simpleList.push(i.toString()); - } - }).id('UIComponentNavTabsImproTrace0150_001'); - - Button('changeTabIndex').width('50%').margin({ top: 20 }) - .onClick(() => { - this.currentIndex = 3 - }).id('UIComponentNavTabsImproTrace0150_002'); - } - .width('100%') - .height('100%'); - - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0160.ets deleted file mode 100644 index e02ef7cf11bb9e3ccd7b2c884f0d8956313cec33..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0160.ets +++ /dev/null @@ -1,235 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' -@Entry -@Component -struct UIComponentNavTabsImproTrace0160 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State tarBarMode: BarMode = BarMode.Scrollable - @State currentIndex: number = 0 - @State tarVertical: boolean = false - @State direction1: Direction = Direction.Rtl - @State gridMargin: number = 10 - @State gridGutter: number = 10 - @State sm: number = -2 - @State selectedIndex: number = 0 - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - @State symmetricExtensible: boolean = false; - @State layoutMode: LayoutMode = LayoutMode.VERTICAL; - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')); - @State symbolModifier3: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.dot_video')); - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? $r("app.media.magnifier") : $r("app.media.tick")) - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text(`Tab${index + 1}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - @Builder - build() { - Column() { - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({normal: this.symbolModifier1,}, "3") - .layoutMode(this.layoutMode) - .symmetricExtensible(this.symmetricExtensible)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({normal: this.symbolModifier2,}, "4") - .layoutMode(this.layoutMode) - .symmetricExtensible(this.symmetricExtensible)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({normal: this.symbolModifier3,}, "4") - .layoutMode(this.layoutMode) - .symmetricExtensible(this.symmetricExtensible)); - - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)) - - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(this.tarBarMode) - .barWidth(200) - .barHeight(200) - .vertical(this.tarVertical) - .margin('10vp') - .width('auto') - .height(396) - .fadingEdge(true) - .barGridAlign({ sm: this.sm, margin: this.gridMargin, gutter: this.gridGutter }) - .direction(this.direction1); - - Button('index改变').width('50%') - .onClick(() => { - this.currentIndex++; - if (this.currentIndex >= 6) { - this.currentIndex = 0; - } - }).id('UIComponentNavTabsImproTrace0160_001'); - - Button('方向改变').width('50%') - .onClick(() => { - this.tarVertical = !this.tarVertical - }).id('UIComponentNavTabsImproTrace0160_002'); - - Button('barMode改变').width('50%') - .onClick(() => { - if (this.tarBarMode == BarMode.Scrollable) { - this.tarBarMode = BarMode.Fixed - } - else { - this.tarBarMode = BarMode.Scrollable - } - }).id('UIComponentNavTabsImproTrace0160_003'); - Button('镜像改变').width('50%') - .onClick(()=>{ - if(this.direction1 == Direction.Ltr) - { - this.direction1 = Direction.Rtl - } - else if(this.direction1 == Direction.Rtl) - { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsImproTrace0160_004') - - Button('barGridAlign改变').width('50%') - .onClick(()=>{ - this.gridMargin += 10 - }).id('UIComponentNavTabsImproTrace0160_005') - - Button('gridGutter改变').width('50%') - .onClick(()=>{ - this.gridGutter += 10 - }).id('UIComponentNavTabsImproTrace0160_006') - - Button('sm改变').width('50%') - .onClick(()=>{ - this.sm += 2; - if(this.sm>=8) - { - this.sm = -2; - } - }).id('UIComponentNavTabsImproTrace0160_007') - - Button('symmetricExtensible改变').width('50%') - .onClick(()=>{ - this.symmetricExtensible = !this.symmetricExtensible - }).id('UIComponentNavTabsImproTrace0160_008') - - Button('layoutMode改变').width('50%') - .onClick(()=>{ - if(this.layoutMode == LayoutMode.VERTICAL) - { - this.layoutMode = LayoutMode.HORIZONTAL; - } - else if(this.layoutMode == LayoutMode.HORIZONTAL) - { - this.layoutMode = LayoutMode.VERTICAL; - } - }).id('UIComponentNavTabsImproTrace0160_009') - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0010.ets deleted file mode 100644 index e00858bd04c108002142b1ff5227d43098021cfe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0010.ets +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0010 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .id('UIComponentNavTabsInterception0010_001') - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (currentIndex == 2 && comingIndex == 3) - { - return false - } - else - { - return true - } - - }) - Button('changeIndex').width('50%').margin({ top: 20 }) - .onClick(()=>{ - if(this.currentIndex==0) { - this.currentIndex = 2 - } - else - { - this.currentIndex = 0 - } - }).id('UIComponentNavTabsInterception0010_002') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0030.ets deleted file mode 100644 index f7c811d771f6a257435f978ab68bab2ce7255642..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0030.ets +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0030 { - @State currentIndex: number = 3 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .id('UIComponentNavTabsInterception0030_001') - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) - { - return true - } - else - { - return true - } - - }) - Button('changeIndex2').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.currentIndex = 2 - }).id('UIComponentNavTabsInterception0030_002') - - Button('changeIndex4').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.currentIndex = 4 - }).id('UIComponentNavTabsInterception0030_004') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0040.ets deleted file mode 100644 index 27cbd8dc307247f5c10b49f8120d74052e93dd07..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0040.ets +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0040 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return false - } - return true - }) - Button('changeIndex').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.controller.changeIndex(3) - }).id('UIComponentNavTabsInterception0040_001') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0050.ets deleted file mode 100644 index bea663c90c10540c3bdf03963a59d666638df0e4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0050.ets +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0050 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return true - } - return true - }) - Button('changeIndex').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.controller.changeIndex(3) - }).id('UIComponentNavTabsInterception0050_001') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0060.ets deleted file mode 100644 index 009cf1a3db59cb7afdec681edf85467ca2383462..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0060.ets +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0060 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return false - } - return true - }) - Button('changeIndex').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.currentIndex = 3 - }).id('UIComponentNavTabsInterception0060_001') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0070.ets deleted file mode 100644 index 8c1fb94e4652f02871ad13d38ee118bebd52e5ea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0070.ets +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0070 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return true - } - return true - }) - Button('changeIndex').width('50%').margin({ top: 20 }) - .onClick(()=>{ - this.currentIndex = 3 - }).id('UIComponentNavTabsInterception0070_001') - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0080.ets deleted file mode 100644 index 792b4b18dbe054ebafaa9dfef262f89c68dc5bca..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0080.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0080 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .id(title) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - console.error(`onChange() this.currentIndex = ${index}`); - this.currentIndex = index - }).id('UIComponentNavTabsInterception0080_001') - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return false - } - return true - }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0090.ets deleted file mode 100644 index 2aada3d3a46f26a7c5fd63ad47da963d404abd3d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0090.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0090 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .id(title) - .justifyContent(FlexAlign.Center) - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - console.error(`onChange() this.currentIndex = ${index}`); - this.currentIndex = index - }).id('UIComponentNavTabsInterception0090_001') - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return true - } - return true - }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0130.ets deleted file mode 100644 index 2b28ef290e6a7abb891e85670c3b22f50c186781..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0130.ets +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0130 { - @State currentIndex: number = 2 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title).fontColor(this.currentIndex === targetIndex ? '#1698CE' : '#6B6B6B') - }.width('100%') - .height(50) - - .justifyContent(FlexAlign.Center) - - } - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - TabContent() { - Column(){ - Text('首页的内容') - }.width('100%').height('100%').backgroundColor('#00CB87').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('首页',0)) - - TabContent() { - Column(){ - Text('发现的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('发现',1)) - - TabContent() { - Column(){ - Text('推荐的内容') - }.width('100%').height('100%').backgroundColor('#FFBF00').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('推荐',2)) - - TabContent() { - Column(){ - Text('我的内容') - }.width('100%').height('100%').backgroundColor('#E67C92').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('我的',3)) - - TabContent() { - Column(){ - Text('他的内容') - }.width('100%').height('100%').backgroundColor('#007DFF').justifyContent(FlexAlign.Center) - }.tabBar(this.tabBuilder('他的',4)) - } - - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(600) - .backgroundColor('#F1F3F5') - .scrollable(true) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return false - } - return true - }).id('UIComponentNavTabsInterception0130_001') - - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0150.ets deleted file mode 100644 index 48d7cabb7219f9a084aac78b3c7ba2bfc762f74f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0150.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterception0150 { - @State simpleList: Array = ['one', 'two', 'three', 'four', 'five']; - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - }.tabBar(item) - }, (item: string) => item) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onContentWillChange((currentIndex, comingIndex) => { - if (comingIndex == 3) { - return false; - } - return true; - }) - .width(360) - .height(200) - .backgroundColor('#F1F3F5') - .scrollable(true) - - Button('delTabContent').width('50%').margin({ top: 20 }) - .onClick(() => { - this.simpleList.pop(); - }).id('UIComponentNavTabsInterception0150_001') - - Button('addTabContent').width('50%').margin({ top: 20 }) - .onClick(() => { - this.simpleList.push('five'); - }).id('UIComponentNavTabsInterception0150_002') - } - .width('100%') - .height('100%') - - } - .height('100%') - .backgroundColor(0xF1F3F5) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface012.ets deleted file mode 100644 index 5dd52beb9843462626275c30d9d34886da78a360..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface012.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterface012 { - @State message: string = 'Hello World' - private controller: TabsController = new TabsController() - private controller1: TabsController = new TabsController() - - build() { - Column() { - - Tabs({ barPosition: BarPosition.End, index: 0, controller: this.controller }) { - TabContent() { - Column().width(200).height('100%').backgroundColor(Color.Pink) - }.tabBar('pink111111111111111111111111111111111111111') - - TabContent() { - Column().width(250).height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow222222222222222222222222222222') - - TabContent() { - Column().width(300).height('100%').backgroundColor(Color.Blue) - }.tabBar('blue33333333333333333333333333333333') - - TabContent() { - Column().width(300).height('100%').backgroundColor(Color.Green) - }.tabBar('green444444444444444444444444444') - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Scrollable) - .barHeight(80) - .barWidth(400) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('30%') - .width(200) - - } - .padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1190.ets deleted file mode 100644 index c8255774796c58dc178ea44e150d80391b7fe90c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1190.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterface1190 { - @State currentIndex: number = 0; - @State seq: number = 1; - @State simpleList: Array = ['1']; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(title: string, targetIndex: number) { - Column() { - Text(title) - }.width('100%') - .height(50) - .justifyContent(FlexAlign.Center); - } - - build() { - Row() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller, index: this.currentIndex }) { - ForEach(this.simpleList, (item: string) => { - TabContent() { - Column() { - Text(`Content:${item}`) - } - }.tabBar(this.tabBuilder(item, 1)); - }, (item: string) => item) - } - .vertical(false) - .barMode(BarMode.Fixed) - .barWidth(360) - .barHeight(60) - .animationDuration(0) - .onChange((index: number) => { - this.currentIndex = index - }) - .width(360) - .height(200) - .backgroundColor('#F1F3F5') - .scrollable(true); - - Button('addTabar').width('50%').margin({ top: 20 }) - .onClick(() => { - this.seq += 1 - this.simpleList.push(this.seq.toString()); - this.currentIndex = this.simpleList.length - 1 - }).id('UIComponentNavTabsInterface1190_001'); - - } - .width('100%') - .height('100%'); - - } - .height('100%') - .backgroundColor(0xF1F3F5); - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1220.ets deleted file mode 100644 index 46241a0517e676a44c00ffcc13f77b991d88c8c9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1220.ets +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsInterface1220 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State selectedIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Text(`Tab${index + 1}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.id('UIComponentNavTabsInterface1220_001').width('100%') - }.tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('Tab2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('Tab3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('Tab4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ top: 30, bottom: 56.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width('100%') - }.tabBar(this.tabBuilder(3)) - } - .vertical(false) - .barHeight(56) - .onChange((index: number) => { - // currentIndex控制TabContent显示页签 - this.currentIndex = index - }) - .onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => { - if (index === targetIndex) { - return - } - // selectedIndex控制自定义TabBar内Image和Text颜色切换 - this.selectedIndex = targetIndex - }) - .width(360) - .height(190) - .backgroundColor('#F1F3F5') - .margin({ top: 38 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0030.ets deleted file mode 100644 index e960dc29d5c137de73f5db286d54a5a47ca2b06c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0030.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0030 { - private controller: TabsController = new TabsController() - @State barOverlap: boolean = true; - @State barBackgroundColor: string = '#88888888'; - @State direction1: Direction = Direction.Rtl - build() { - Column() { - Button('方向改变').width('50%').margin({ top: 20 }) - .onClick(()=>{ - if(this.direction1 == Direction.Ltr) - { - this.direction1 = Direction.Rtl - } - else if(this.direction1 == Direction.Rtl) - { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror0030_001') - Tabs({ barPosition: BarPosition.Start, index: 2, controller: this.controller }) { - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(200) - .backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "1")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(300) - .backgroundColor(Color.Yellow) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "2")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(400) - .backgroundColor(Color.Green) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "3")) - } - .vertical(true) - .barMode(BarMode.Fixed) - .height('60%') - .barOverlap(true) - .scrollable(true) - .direction(this.direction1) - .animationDuration(10) - .barBackgroundColor(this.barBackgroundColor) - } - .height(500) - .padding({ top: '24vp', left: '24vp', right: '24vp' }) - - - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0070.ets deleted file mode 100644 index 596ee6eabb0f1ba160da3a58212c2b80b659a6d2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0070.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0070 { - private controller: TabsController = new TabsController() - @State barOverlap: boolean = true; - @State barBackgroundColor: string = '#88888888'; - @State direction1: Direction = Direction.Rtl - build() { - Column() { - Button('方向改变').width('50%').margin({ top: 20 }) - .onClick(()=>{ - if(this.direction1 == Direction.Ltr) - { - this.direction1 = Direction.Rtl - } - else if(this.direction1 == Direction.Rtl) - { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror0070_001') - Tabs({ barPosition: BarPosition.Start, index: 2, controller: this.controller }) { - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(200) - .backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "1")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(300) - .backgroundColor(Color.Yellow) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "2")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(400) - .backgroundColor(Color.Green) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "3")) - } - .vertical(true) - .barMode(BarMode.Fixed) - .height('60%') - .barOverlap(true) - .scrollable(true) - .direction(this.direction1) - .animationDuration(10) - .barBackgroundColor(this.barBackgroundColor) - } - .height(500) - .padding({ top: '24vp', left: '24vp', right: '24vp' }) - - - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0090.ets deleted file mode 100644 index 8ad90cd1637f6687e2960a6c99c8b0e33afacc1e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0090.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0090 { - private controller: TabsController = new TabsController() - @State barOverlap: boolean = true; - @State barBackgroundColor: string = '#88888888'; - @State direction1: Direction = Direction.Rtl - build() { - Column() { - Button('方向改变').width('50%').margin({ top: 20 }) - .onClick(()=>{ - if(this.direction1 == Direction.Ltr) - { - this.direction1 = Direction.Rtl - } - else if(this.direction1 == Direction.Rtl) - { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror0090_001') - Tabs({ barPosition: BarPosition.Start, index: 2, controller: this.controller }) { - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(200) - .backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "1")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(300) - .backgroundColor(Color.Yellow) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "2")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(400) - .backgroundColor(Color.Green) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "3")) - } - .vertical(false) - .barMode(BarMode.Fixed) - .height('60%') - .barOverlap(true) - .scrollable(true) - .direction(this.direction1) - .animationDuration(10) - .barBackgroundColor(this.barBackgroundColor) - } - .height(500) - .padding({ top: '24vp', left: '24vp', right: '24vp' }) - - - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror010.ets deleted file mode 100644 index 3df89e54dd175a855ba73c7e556c22466001b52a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror010.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror010 { - private controller: TabsController = new TabsController() - @State barOverlap: boolean = true; - @State barBackgroundColor: string = '#88888888'; - @State direction1: Direction = Direction.Rtl - build() { - Column() { - Button('方向改变').width('50%').margin({ top: 20 }) - .onClick(()=>{ - if(this.direction1 == Direction.Ltr) - { - this.direction1 = Direction.Rtl - } - else if(this.direction1 == Direction.Rtl) - { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror010_001') - Tabs({ barPosition: BarPosition.Start, index: 2, controller: this.controller }) { - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(200) - .backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "1")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(300) - .backgroundColor(Color.Yellow) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "2")) - - TabContent() { - Column() { - Text(`barOverlap ${this.barOverlap}`).fontSize(16).margin({ top: this.barOverlap ? '56vp' : 0 }) - Text(`barBackgroundColor ${this.barBackgroundColor}`).fontSize(16) - }.width('100%').width('100%').height(400) - .backgroundColor(Color.Green) - } - .tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), "3")) - } - .vertical(true) - .barMode(BarMode.Fixed) - .height('60%') - .barOverlap(true) - .scrollable(true) - .direction(this.direction1) - .animationDuration(10) - .barBackgroundColor(this.barBackgroundColor) - } - .height(500) - .padding({ top: '24vp', left: '24vp', right: '24vp' }) - - - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0110.ets deleted file mode 100644 index 6730b9725b256994b65a0fd64f85be999cf27511..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0110.ets +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' -@Entry -@Component -struct UIComponentNavTabsMirror0110 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State tarBarMode: BarMode = BarMode.Scrollable - @State currentIndex: number = 0 - @State tarVertical: boolean = false - @State direction1: Direction = Direction.Rtl - @State selectedIndex: number = 0 - @State selectedMode: SelectedMode = SelectedMode.INDICATOR; - private controller: TabsController = new TabsController() - - @Builder - build() { - Column() { - Button('镜像改变').width('50%') - .onClick(()=>{ - if(this.direction1 == Direction.Ltr) - { - this.direction1 = Direction.Rtl - } - else if(this.direction1 == Direction.Rtl) - { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror0110_001') - - Tabs({ barPosition: BarPosition.End, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Pink }) - .selectedMode(this.selectedMode)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Yellow }) - .selectedMode(this.selectedMode)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Blue }) - .selectedMode(this.selectedMode)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green') - .labelStyle({ unselectedColor: Color.Black, selectedColor: Color.Green }) - .selectedMode(this.selectedMode)); - } - .divider({ - strokeWidth: 1, - color: Color.Red, - }) - .backgroundColor(0xF5F5F5) - .barOverlap(true) - .barMode(this.tarBarMode) - .barWidth(200) - .barHeight(200) - .vertical(true) - .margin('10vp') - .width('auto') - .height(396) - .fadingEdge(true) - .direction(this.direction1); - - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0120.ets deleted file mode 100644 index b6fb793b6e444c537de799824603da65f0874100..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0120.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0120 { - @State direction1: Direction = Direction.Rtl; - - build() { - Column({ space: 5 }) { - - Text("侧边页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')); - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()); - }) - .width('100%') - .backgroundColor(0xF1F3F5) - .direction(this.direction1); - Button('镜像改变').width('50%') - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl; - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr; - } - }).id('UIComponentNavTabsMirror0120_001'); - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0130.ets deleted file mode 100644 index 02c75d2fd97d01eb5efb3ef308708cb1b603be95..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0130.ets +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0130 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - @State selectedIndex: number = 0 - @State direction1: Direction = Direction.Rtl; - private controller: TabsController = new TabsController() - - @Builder - tabBuilder(index: number) { - Column() { - Text(`Tab${index}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(20) - .fontWeight(500) - .lineHeight(200) - }.width('100%') - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, controller: this.controller }) { - TabContent() { - Column() { - Text('TabContent0') - }.width('100%') - } - .tabBar(this.tabBuilder(0)) - - TabContent() { - Column() { - Text('TabContent1') - }.width('100%') - } - .tabBar(this.tabBuilder(1)) - - TabContent() { - Column() { - Text('TabContent2') - }.width('100%') - } - .tabBar(this.tabBuilder(2)) - - TabContent() { - Column() { - Text('TabContent3') - }.width('100%') - } - .tabBar(this.tabBuilder(3)) - } - .vertical(true) - .barWidth(200) - .barHeight(200) - .barMode(BarMode.Scrollable) - .scrollable(true) - .direction(this.direction1) - .width(400) - .height(200) - .backgroundColor('#F1F3F5') - .margin({ top: 52 }); - - Button('镜像改变').width('50%') - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl; - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr; - } - }).id('UIComponentNavTabsMirror0130_001'); - - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0140.ets deleted file mode 100644 index d7466e405898b713790c8a1d8f4697925084bb07..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0140.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0140 { - @State direction1: Direction = Direction.Rtl; - - build() { - Column({ space: 5 }) { - - Text("侧边页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')); - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()); - }) - .width('100%') - .backgroundColor(0xF1F3F5) - .direction(this.direction1); - Button('镜像改变').width('50%') - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl; - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr; - } - }).id('UIComponentNavTabsMirror0140_001'); - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0150.ets deleted file mode 100644 index 82ff2997f66f12f9783850fba6efc68dc375137e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0150.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0150 { - @State direction1: Direction = Direction.Rtl; - @State tabPadding: number = 0; - - build() { - Column({ space: 5 }) { - - Text("侧边页签样式") - Column({ space: 5 }) { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink').padding(this.tabPadding)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow').padding(this.tabPadding)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue').padding(this.tabPadding)); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green').padding(this.tabPadding)); - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .direction(this.direction1) - .backgroundColor(0xF1F3F5); - - Button('镜像改变').width('50%') - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl; - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr; - } - }).id('UIComponentNavTabsMirror0150_001'); - - Button('padding改变').width('50%') - .onClick(() => { - this.tabPadding = this.tabPadding+5; - }).id('UIComponentNavTabsMirror0150_002'); - }.width('100%').height(400); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0160.ets deleted file mode 100644 index 5e46741b68f6fde3d9ce5a8f27a95f80e0c0f60a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0160.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0160 { - @State direction1: Direction = Direction.Rtl; - - build() { - Column({ space: 5 }) { - - Text("侧边页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Yellow')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle($r('sys.media.ohos_app_icon'), 'Green')) - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - .direction(this.direction1); - - Button('镜像改变').width('50%') - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror0160_001'); - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0250.ets deleted file mode 100644 index 371a56d47e3357783d9e204f027907c7038069e1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0250.ets +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { webview } from '@kit.ArkWeb'; -@Entry -@Component -struct UIComponentNavTabsMirror0250 { - controller: webview.WebviewController = new webview.WebviewController(); - @State fontColor: string = '#182431'; - @State selectedFontColor: string = '#007DFF'; - @State currentIndex: number = 0; - @State selectedIndex: number = 0; - @State direction1: Direction = Direction.Rtl; - @State arr: String[] = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10']; - - @Builder tabBuilder(index: number) { - Column() { - Text(`Tab${index}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.id(`Tab${index}`).width('100%') - } - - build() { - Column({ space: 5 }) { - - Text("侧边页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column() { - Text('www.sohu.com'); - Web({ src: 'www.sohu.com', controller: this.controller }) - .fileAccess(true); - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0)); - - TabContent() { - Column() { - Text('www.sina.com'); - Web({ src: 'www.sina.com', controller: this.controller }) - .fileAccess(true); - }.width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1)); - - TabContent() { - Column() { - Text('www.baidu.com'); - Web({ src: 'www.baidu.com', controller: this.controller }) - .fileAccess(true); - }.width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2)); - - TabContent() { - Column() { - Text('www.jd.com'); - Web({ src: 'www.jd.com', controller: this.controller }) - .fileAccess(true); - }.width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3)); - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => { - if (index === targetIndex) { - return - } - // selectedIndex控制自定义TabBar内Image和Text颜色切换 - this.selectedIndex = targetIndex - }) - .width('100%') - .backgroundColor(0xF1F3F5) - .direction(this.direction1); - - Button('镜像改变').width('50%') - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror0250_001') - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0260.ets deleted file mode 100644 index 575ea27731195f477618d307737074224233c258..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0260.ets +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror0260 { - @State fontColor: string = '#182431'; - @State selectedFontColor: string = '#007DFF'; - @State currentIndex: number = 0; - @State selectedIndex: number = 0; - @State direction1: Direction = Direction.Rtl; - @State arr: String[] = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10']; - - @Builder tabBuilder(index: number) { - Column() { - Text(`Tab${index}`) - .fontColor(this.selectedIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.id(`Tab${index}`).width('100%') - } - - build() { - Column({ space: 5 }) { - - Text("侧边页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column() { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%') - .height(80) - .fontSize(16) - .margin(10) - .id('' + item) - .textAlign(TextAlign.Center) - .borderRadius(10) - .backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder(0)); - - TabContent() { - Column() { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%') - .height(80) - .fontSize(16) - .margin(10) - .id('' + item) - .textAlign(TextAlign.Center) - .borderRadius(10) - .backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - }.width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder(1)); - - TabContent() { - Column() { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%') - .height(80) - .fontSize(16) - .margin(10) - .id('' + item) - .textAlign(TextAlign.Center) - .borderRadius(10) - .backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - }.width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder(2)); - - TabContent() { - Column() { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%') - .height(80) - .fontSize(16) - .margin(10) - .id('' + item) - .textAlign(TextAlign.Center) - .borderRadius(10) - .backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - }.width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder(3)); - } - .vertical(true) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .onAnimationStart((index: number, targetIndex: number, event: TabsAnimationEvent) => { - if (index === targetIndex) { - return - } - // selectedIndex控制自定义TabBar内Image和Text颜色切换 - this.selectedIndex = targetIndex - }) - .width('100%') - .backgroundColor(0xF1F3F5) - .direction(this.direction1); - - Button('镜像改变').width('50%') - .onClick(() => { - if (this.direction1 == Direction.Ltr) { - this.direction1 = Direction.Rtl - } - else if (this.direction1 == Direction.Rtl) { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror0260_001') - - }.width('100%').height(400) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror080.ets deleted file mode 100644 index 4975aa80546b9184b23669b74447d9511537669f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror080.ets +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsMirror080 { - private controller1: TabsController = new TabsController() - @State dividerColor: string = 'blue' - @State strokeWidth: number = -10 - @State strokeWidthDefaultValue: number = 2 - @State startMargin: number = 0 - @State endMargin: number = 0 - @State nullFlag: boolean = false - @State direction1: Direction = Direction.Ltr - aboutToAppear(): void { - this.strokeWidth = (this.strokeWidth < 0? this.strokeWidthDefaultValue : this.strokeWidth) - } - build() { - Column() { - Tabs({ controller: this.controller1 }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar('pink') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar('yellow') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar('blue') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar('green') - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Red) - }.tabBar('red') - } - .vertical(true) - .direction(this.direction1) - .scrollable(true) - .barMode(BarMode.Fixed) - .barWidth(70) - .barHeight(200) - .animationDuration(400) - .onChange((index: number) => { - console.info(index.toString()) - }) - .height('200vp') - .margin({ bottom: '12vp' }) - .divider(this.nullFlag ? null : { - strokeWidth: this.strokeWidth, - color: this.dividerColor, - startMargin: this.startMargin, - endMargin: this.endMargin - }) - Button('上边距增加').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.startMargin += 2 - }).id('UIComponentNavTabsMirror080_001') - - Button('上边距减少').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - if (this.startMargin > 2) { - this.startMargin -= 2 - } - }).id('UIComponentNavTabsMirror080_002') - - Button('下边距增加').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - this.endMargin += 2 - }).id('UIComponentNavTabsMirror080_003') - Button('下边距减少').width('100%').margin({ bottom: '12vp' }) - .onClick(() => { - if (this.endMargin > 2) { - this.endMargin -= 2 - } - }).id('UIComponentNavTabsMirror080_004') - - Button('方向改变').width('50%').margin({ top: 20 }) - .onClick(()=>{ - if(this.direction1 == Direction.Ltr) - { - this.direction1 = Direction.Rtl - } - else if(this.direction1 == Direction.Rtl) - { - this.direction1 = Direction.Ltr - } - }).id('UIComponentNavTabsMirror080_005') - - - }.padding({ top: '24vp', left: '24vp', right: '24vp' }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsOnWillShow/UIComponentNavTabsOnWillShow0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsOnWillShow/UIComponentNavTabsOnWillShow0190.ets deleted file mode 100644 index 149dfdd8f96a321c7099312ff9def05cbc490a03..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsOnWillShow/UIComponentNavTabsOnWillShow0190.ets +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsOnWillShow0190 { - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - @Builder tabBuilder(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .id(title) - .justifyContent(FlexAlign.Center) - } - - @Builder tabBuilder1(title: string,targetIndex: number) { - Column(){ - Text(title) - }.width('100%') - .height(50) - .id(title) - .justifyContent(FlexAlign.Center) - } - - build() { - Column({ space: 5 }) { - - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder('tab1',0)) - .onWillShow(() => { - console.info("Pink will show"); - }); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder('tab2',1)) - .onWillShow(() => { - console.info("Yellow will show"); - }); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder('tab3',2)) - .onWillShow(() => { - console.info("Blue will show"); - }); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder('tab4',3)) - .onWillShow(() => { - console.info("Green will show"); - }); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200) - Text("侧边页签样式"); - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(this.tabBuilder1('tab_1',0)) - .onWillShow(() => { - console.info("Pink will show") - }); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(this.tabBuilder1('tab_2',1)) - .onWillShow(() => { - console.info("Yellow will show") - }); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(this.tabBuilder1('tab_3',2)) - .onWillShow(() => { - console.info("Blue will show") - }); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(this.tabBuilder1('tab_4',3)) - .onWillShow(() => { - console.info("Green will show") - }); - } - .vertical(true).scrollable(true).barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(400); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsSubTabbarStyle/UIComponentNavTabsSubTabbarStyle0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsSubTabbarStyle/UIComponentNavTabsSubTabbarStyle0010.ets deleted file mode 100644 index e6ee291f625658c4946071d72b12480934805835..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsSubTabbarStyle/UIComponentNavTabsSubTabbarStyle0010.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsSubTabbarStyle0010 { - build() { - Column({ space: 5 }) { - Text("子页签样式") - Column() { - Tabs({ barPosition: BarPosition.Start }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new SubTabBarStyle('Pink').id('Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Yellow) - }.tabBar(new SubTabBarStyle('Yellow').id('Yellow')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new SubTabBarStyle('Blue').id('Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new SubTabBarStyle('Green').id('Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .id('UIComponentNavTabsSubTabbarStyle0010_001') - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(200) - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsWidth/UIComponentNavTabsWidth001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsWidth/UIComponentNavTabsWidth001.ets deleted file mode 100644 index 5f78971fd60cb4e8f817097ffa1ab28cf5b7206e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentNavTabsWidth/UIComponentNavTabsWidth001.ets +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentNavTabsWidth001 { - @State fontColor: string = '#182431' - @State selectedFontColor: string = '#007DFF' - @State currentIndex: number = 0 - private controller: TabsController = new TabsController() - - @Builder tabBuilder(index: number) { - Column() { - Image(this.currentIndex === index ? '/common/public_icon_on.svg' : '/common/public_icon_off.svg') - .width(24) - .height(24) - .margin({ bottom: 4 }) - .objectFit(ImageFit.Contain) - Text('Tab') - .fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor) - .fontSize(10) - .fontWeight(500) - .lineHeight(14) - }.width('100%').height('100%').justifyContent(FlexAlign.Center) - } - - build() { - Column() { - Tabs({ barPosition: BarPosition.End, controller: this.controller }) { - TabContent() { - Column() { - Text('Tab_1') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(50) - }.tabBar(this.tabBuilder(0)) - TabContent() { - Column() { - Text('Tab_2') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(100) - }.tabBar(this.tabBuilder(1)) - TabContent(){ - Column() { - Text('Tab_3') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(150) - }.tabBar(this.tabBuilder(2)) - TabContent(){ - Column() { - Text('Tab_4') - .fontSize(36) - .fontColor('#182431') - .fontWeight(500) - .opacity(0.4) - .margin({ left: 10, right: 26.5 }) - Divider() - .strokeWidth(0.5) - .color('#182431') - .opacity(0.05) - }.width(200) - }.tabBar(this.tabBuilder(3)) - } - .vertical(true) - .barWidth(96) - .barHeight(414) - .onChange((index: number) => { - this.currentIndex = index - }) - .width('auto') - .height(414) - .backgroundColor('#F1F3F5') - .margin({ top: 52 }) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0040.ets deleted file mode 100644 index 71ebe99e134e707e2761cbf5eeed2a5a8d8d7d54..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0040.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshAbility0040 { - @State isRefreshing: boolean = false; - @State refreshOffset: number = 60; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Button('addRefreshOffset').width('50%').margin({ top: 20 }) - .onClick(() => { - this.refreshOffset =+ 100; - }).id('UIComponentOtherRefreshAbility0040_001'); - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(this.refreshOffset) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }) - - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0050.ets deleted file mode 100644 index 16fe4f557debeff0cb84c531f031b21a6fc9b64e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0050.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshAbility0050 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(70) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0070.ets deleted file mode 100644 index 85d5d1ce8d3db497b8440620fe897765c06d7a2c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0070.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshAbility0070 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(0) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0080.ets deleted file mode 100644 index 6bd7bd78409e80f6aaa9847a3f6a0b7bb2daade1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0080.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshAbility0080 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(-1) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0090.ets deleted file mode 100644 index ddb5eaeedbb72ba22fe50cb44b168a2325a063be..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0090.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshAbility0090 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(499).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(500) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0100.ets deleted file mode 100644 index 52dfb3efb9bdeede271ed401db45fb5366d4189b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0100.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshAbility0100 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(60.5) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0380.ets deleted file mode 100644 index fa737a0a1018ff9cbdd6703e18967352cf7e2821..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0380.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshInterAction0380 { - @State isRefreshing: boolean = false - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10'] - - @Builder refreshbBuilder(name: string) { - Column() { - Text(name) .fontSize(30).margin(10) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - }.width('100%').id('' + name) - } - - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - this.refreshbBuilder(item) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off) - } - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus) - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value) - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test') - }) - .backgroundColor(0x89CFF0) - .refreshOffset(64) - .pullToRefresh(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0390.ets deleted file mode 100644 index 04944c2555ddc04aa8b4bf6729a619404eb91ca8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0390.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshInterAction0390 { - @State isRefreshing: boolean = false - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10'] - @Builder - customRefreshComponent() - { - Stack() - { - Row() - { - LoadingProgress().height(32) - Text("Refreshing...").fontSize(16).margin({left:20}) - } - .alignItems(VerticalAlign.Center) - .backgroundColor(Color.Blue) - .height(100) - } - .align(Alignment.Center) - .clip(true) - .height(200) - .backgroundColor(Color.Red) - .constraintSize({minHeight:32}) // 设置最小高度约束保证自定义组件高度随刷新区域高度变化时自定义组件高度不会低于minHeight - .width("100%") - } - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing,builder:this.customRefreshComponent()}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off) - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(64) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus) - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test') - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0400.ets deleted file mode 100644 index 1fce4eb054fea38f4b8cb3da5b5a0c2ce3f14e1a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0400.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshInterAction0400 { - @State isRefreshing: boolean = false - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10'] - @Builder - customRefreshComponent() - { - Stack() - { - Row() - { - LoadingProgress().height(32) - Text("Refreshing...").fontSize(16).margin({left:20}) - } - .alignItems(VerticalAlign.Center) - .backgroundColor(Color.Blue) - .height(100) - } - .align(Alignment.Center) - .clip(true) - .height(200) - .backgroundColor(Color.Red) - .constraintSize({minHeight:32}) // 设置最小高度约束保证自定义组件高度随刷新区域高度变化时自定义组件高度不会低于minHeight - .width("100%") - } - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing,builder:this.customRefreshComponent()}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off) - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(64) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus) - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test') - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0410.ets deleted file mode 100644 index f6cd0aaa97f5a72c329304edcf90e9ceda4d756a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0410.ets +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshInterAction0410 { - @State isRefreshing: boolean = false - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10'] - @Builder - customRefreshComponent() - { - Stack() - { - Row() - { - LoadingProgress().height(32) - Text("Refreshing...").fontSize(16).margin({left:20}) - } - .alignItems(VerticalAlign.Center) - .backgroundColor(Color.Blue) - .height('50%') - .width('50%') - } - .align(Alignment.Center) - .clip(true) - .height('50%') - .width('50%') - .backgroundColor(Color.Red) - .constraintSize({minHeight:32}) // 设置最小高度约束保证自定义组件高度随刷新区域高度变化时自定义组件高度不会低于minHeight - .width("100%") - } - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing,builder:this.customRefreshComponent()}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off) - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(64) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus) - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test') - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0140.ets deleted file mode 100644 index b05f550841c136a04ca5073faeacb7fe834f1be3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0140.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0140 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(0) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0170.ets deleted file mode 100644 index 07269db1e9cc607229127091680bb03d6a3223cf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0170.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0170 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(-100) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0180.ets deleted file mode 100644 index 49240b52287bb14d925011ab51f2c888b8192bf2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0180.ets +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0180 { - @State isRefreshing: boolean = false; - @State promptText: string = "Refreshing..."; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Text("Refresh test") - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).id('' + item).margin({bottom:10}) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFF0000); - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(0) - .pullDownRatio(1) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false; - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0040.ets deleted file mode 100644 index 9de367744979f3369f8692121aadf9538c6d41ac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0040.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0040 { - @State isRefreshing: boolean = false; - @State promptText: string = ' '; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(96) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0050.ets deleted file mode 100644 index d764547497cf7ced227abab3ad79ec49f4f6c015..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0050.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0050 { - @State isRefreshing: boolean = false; - @State promptText: string = "+-*<>!@#$"; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(96) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0060.ets deleted file mode 100644 index 96fc953b157f5416525c1ca51655468cede0b03c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0060.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0060 { - @State isRefreshing: boolean = false; - @State promptText: string = "中英文abc"; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(96) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0100.ets deleted file mode 100644 index b782efe41ecb1556eb9d04bbd1bb139a6df50b64..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0100.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0100 { - @State isRefreshing: boolean = false; - @State promptText: Resource = $r("app.string.specifalRefreshText"); - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(96) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0110.ets deleted file mode 100644 index fe4c34ff54fd708ffee9afe3b27c9291e0f1ff5e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0110.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0110 { - @State isRefreshing: boolean = false; - @State promptText: Resource = $r("app.string.mixRefreshText"); - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(96) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0120.ets deleted file mode 100644 index 2d05b80d984fcbd7eb1128469f5a9d39a16b4550..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0120.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -@Entry -@Component -struct UIComponentOtherRefreshPromptText0120 { - @State isRefreshing: boolean = false; - @State promptText: string = 'openHarmon1234openHarmon1234openHarmon1234openHarmon1234openHarmon1234openHarmon1234openHarmon1234openHarmon1234openHarmon1234'; - @State arr: String[] = ['0', '1', '2', '3', '4','5','6','7','8','9','10']; - - build() { - Column() { - Refresh({ refreshing: $$this.isRefreshing, promptText: this.promptText}) { - List() { - ForEach(this.arr, (item: string) => { - ListItem() { - Text('' + item) - .width('70%').height(80).fontSize(16).margin(10).id('' + item) - .textAlign(TextAlign.Center).borderRadius(10).backgroundColor(0xFFFFFF) - } - }, (item: string) => item) - } - .onScrollIndex((first: number) => { - console.info(first.toString()) - }) - .width('100%') - .height('100%') - .alignListItem(ListItemAlign.Center) - .scrollBar(BarState.Off); - } - .backgroundColor(0x89CFF0) - .pullToRefresh(true) - .refreshOffset(96) - .onStateChange((refreshStatus: RefreshStatus) => { - console.info('Refresh onStatueChange state is ' + refreshStatus); - }) - .onOffsetChange((value: number) => { - console.info('Refresh onOffsetChange offset:' + value); - }) - .onRefreshing(() => { - setTimeout(() => { - this.isRefreshing = false - }, 2000) - console.log('onRefreshing test'); - }); - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute006.ets deleted file mode 100644 index bf037b382fcc492ea804e6e18c13667042477515..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute006.ets +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxAttribute006 { - @State textValue: string = ''; - @State inputValue: string = 'click me'; - @State dxNum: string = '0'; - @State dyNum: string = '-20'; - @State offsetNum: Offset = {dx: '0', dy: '-20'}; - - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample({ - cancel: () => { - this.onCancel() - }, - confirm: () => { - this.onAccept() - }, - change: () => { - this.change() - }, - textValue: $textValue, - inputValue: $inputValue, - dxNum: $dxNum, - dyNum: $dyNum, - }), - cancel: this.exitApp, - autoCancel: true, - alignment: DialogAlignment.Bottom, - offset: this.offsetNum, - gridCount: 4, - customStyle: false, - cornerRadius: 10, - }) - - - aboutToDisappear() { - this.dialogController = null; - } - - onCancel() { - console.info('Callback when the first button is clicked'); - } - - onAccept() { - console.info('Callback when the second button is clicked'); - } - - exitApp() { - console.info('Click the callback in the blank area'); - } - - change() { - this.dxNum = '100px'; - this.dyNum = '100px'; - this.offset({x: '100px', y: '100px'}) - } - - build() { - Column() { - Button(this.inputValue) - .id('UIComponentPopupBoxAttribute0060') - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open() - } - }).backgroundColor(0x317aff) - }.width('100%').margin({ top: 5 }) - } -} - -@CustomDialog -struct CustomDialogExample { - @Link textValue: string; - @Link inputValue: string; - @Link dxNum: string; - @Link dyNum: string; - controller?: CustomDialogController; - cancel: () => void = () => { - } - confirm: () => void = () => { - } - change: () => void = () => { - - } - - build() { - Column({ space: 20 }) { - Text('Change offset').fontSize(20).margin({ top: 10, bottom: 10 }) - Button('change') - .id('UIComponentPopupBoxAttribute0061') - .onClick(() => { - if (this.controller != undefined) { - this.change() - } - }).backgroundColor(0xffffff).fontColor(Color.Red) - Flex({ justifyContent: FlexAlign.SpaceAround }) { - Button('cancel') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - this.cancel() - } - }).backgroundColor(0xffffff).fontColor(Color.Black) - Button('confirm') - .onClick(() => { - if (this.controller != undefined) { - this.inputValue = this.textValue; - this.controller.close() - this.confirm() - } - }).backgroundColor(0xffffff).fontColor(Color.Red) - }.margin({ bottom: 10 }) - - }.borderRadius(10) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute011.ets deleted file mode 100644 index 69f59a4c5041a5c4c0393afee948cd5ac20e5aa6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute011.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxAttribute011 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxAttribute0111') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxAttribute0110') - .onClick(() => { - promptAction.openToast({ - message: 'this is a Toast', - offset: { dx: 0, dy: 1000 } - }) - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute050.ets deleted file mode 100644 index 656b810a95326a02b8bf06cccc7b39285c45c9bc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute050.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -let customDialogId: number = 0 - -@Builder -function customFirstDialogBuilder() { - Column() { - Text('Custom dialog Message').fontSize(10) - Row() { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(customDialogId) - }) - } - }.height(200).padding(5) -} - -@Entry -@Component -struct UIComponentPopupBoxAttribute050 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxAttribute0501') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxAttribute0500') - .onClick(() => { - promptAction.openCustomDialog({ - builder: customFirstDialogBuilder.bind(this), - showInSubWindow: true - }).then((dialogId: number) => { - customDialogId = dialogId; - this.message = '弹框已开启'; - setTimeout(() => { - try { - promptAction.closeCustomDialog(customDialogId); - this.message = '弹框开启后已定时关闭'; - } catch (e) { - this.message = '弹框开启后定时关闭异常'; - } - }, 2000); - }) - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute051.ets deleted file mode 100644 index d4519c969772ac44e4b89139a2cb7a6f62b51f3c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute051.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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' - -let customDialogId: number = 0 - -@Builder -function customDialogBuilder() { - Column() { - Text('Custom dialog Message').fontSize(10) - Row() { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(customDialogId) - }) - } - }.height(200).padding(5) -} - -@Entry -@Component -struct UIComponentPopupBoxAttribute051 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxAttribute0511') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxAttribute0510') - .onClick(() => { - promptAction.openCustomDialog({ - builder: customDialogBuilder.bind(this), - showInSubWindow: false - }).then((dialogId: number) => { - customDialogId = dialogId; - this.message = '弹框已开启'; - setTimeout(() => { - try { - promptAction.closeCustomDialog(customDialogId); - this.message = '弹框开启后已定时关闭'; - } catch (e) { - this.message = '弹框开启后定时关闭异常'; - } - }, 2000); - }) - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface001.ets deleted file mode 100644 index 2ebdec27d6964ce709edf5db8870d3dc00b0fcef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface001.ets +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// xxx.ets -@CustomDialog -struct CustomDialogExampleFullDialog { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('isModal_false') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - }.backgroundColor(Color.Gray) - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface001 { - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExampleFullDialog({ - cancel: () => { - this.onCancel() - }, - confirm: () => { - this.onAccept() - } - }), - cancel: this.existApp, - autoCancel: true, - 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() - } - }, - openAnimation: { iterations: -1, duration: 500 }, - alignment: DialogAlignment.Center, - isModal: false, - customStyle: false, - cornerRadius: 10, - }) - - // 在自定义组件即将析构销毁时将dialogController置空 - aboutToDisappear() { - this.dialogController = null // 将dialogController置空 - } - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('show dialog') - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open() - } - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface001_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010.ets deleted file mode 100644 index 4334f1612764ce42f337b457723422cec54c49b5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// xxx.ets -@CustomDialog -struct CustomDialogExampleFullDialog0010 { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('这是测试 set maskRect') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - } - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface0010 { - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExampleFullDialog0010({ - cancel: () => { - this.onCancel() - }, - confirm: () => { - this.onAccept() - } - }), - cancel: this.existApp, - autoCancel: true, - maskRect: { - x: 20, - y: '20px', - width: '300px', - height: '80%' - }, - alignment: DialogAlignment.Center, - isModal: true, - customStyle: false, - cornerRadius: 10, - }) - - // 在自定义组件即将析构销毁时将dialogController置空 - aboutToDisappear() { - this.dialogController = null // 将dialogController置空 - } - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('show dialog') - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open() - } - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface0010_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface002.ets deleted file mode 100644 index f00512da89151e40f8204cd7b353b6975181db30..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface002.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@CustomDialog -struct CustomDialogExample002 { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('这是自定义弹窗') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - } - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface002 { - @State autoCancel: boolean = false; - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('autoCacncel动态更新') - .onClick(() => { - this.autoCancel = !this.autoCancel; - let controller: CustomDialogController = new CustomDialogController({ - builder: CustomDialogExample002({ - cancel: () => { - this.onCancel() - }, - confirm: () => { - this.onAccept() - } - }), - cancel: this.existApp, - autoCancel: this.autoCancel, - alignment: DialogAlignment.Center, - offset: { dx: 0, dy: -20 }, - customStyle: false, - cornerRadius: 20, - width: 300, - height: 200, - borderStyle: BorderStyle.Dashed, - borderColor: Color.Blue, - backgroundColor: Color.White, - }); - controller.open(); - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface002_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface003.ets deleted file mode 100644 index c868ea32421f42a57f528c6046309b44b6f565bc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface003.ets +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// xxx.ets -@CustomDialog -struct CustomDialogExample003_1 { - controllerTwo?: CustomDialogController - build() { - Column() { - Text('我是第二个弹窗') - .fontSize(30) - .height(100) - Button('点我关闭第二个弹窗') - .onClick(() => { - if (this.controllerTwo != undefined) { - this.controllerTwo.close() - } - }) - .margin(20) - } - } -} -@CustomDialog -@Component -struct CustomDialogExample003 { - @Link textValue: string - @Link inputValue: string - dialogControllerTwo: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample003_1(), - alignment: DialogAlignment.Bottom, - 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() - } - }, - offset: { dx: 0, dy: -25 } }) - controller?: CustomDialogController - // 若尝试在CustomDialog中传入多个其他的Controller,以实现在CustomDialog中打开另一个或另一些CustomDialog,那么此处需要将指向自己的controller放在所有controller的后面 - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('Change text').fontSize(20).margin({ top: 10, bottom: 10 }) - TextInput({ placeholder: '', text: this.textValue }).height(60).width('90%') - .onChange((value: string) => { - this.textValue = value - }) - Text('Whether to change a text?').fontSize(16).margin({ bottom: 10 }) - Flex({ justifyContent: FlexAlign.SpaceAround }) { - Button('cancel') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - this.cancel() - } - }).backgroundColor(0xffffff).fontColor(Color.Black) - Button('confirm') - .onClick(() => { - if (this.controller != undefined) { - this.inputValue = this.textValue - this.controller.close() - this.confirm() - } - }).backgroundColor(0xffffff).fontColor(Color.Red) - }.margin({ bottom: 10 }) - - Button('点我打开第二个弹窗') - .onClick(() => { - if (this.dialogControllerTwo != null) { - this.dialogControllerTwo.open() - } - }).key('UIComponentPopupBoxFullDialogInterface003_button_02') - .margin(20) - }.borderRadius(10) - // 如果需要使用border属性或cornerRadius属性,请和borderRadius属性一起使用。 - } -} -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface003 { - @State textValue: string = '' - @State inputValue: string = 'click me' - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample003({ - cancel: ()=> { this.onCancel() }, - confirm: ()=> { this.onAccept() }, - textValue: $textValue, - inputValue: $inputValue - }), - cancel: this.exitApp, - autoCancel: true, - onWillDismiss:(dismissDialogAction: DismissDialogAction)=> { - console.info("reason=" + JSON.stringify(dismissDialogAction.reason)) - console.log("dialog onWillDismiss") - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss() - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss() - } - }, - alignment: DialogAlignment.Bottom, - offset: { dx: 0, dy: -20 }, - gridCount: 4, - customStyle: false, - cornerRadius: 10, - }) - - // 在自定义组件即将析构销毁时将dialogController置空 - aboutToDisappear() { - this.dialogController = null // 将dialogController置空 - } - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - exitApp() { - console.info('Click the callback in the blank area') - } - build() { - Column() { - Button(this.inputValue) - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open() - } - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface003_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface004.ets deleted file mode 100644 index 74c25af238bd03f26bbd1474ccbeea9b425df62d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface004.ets +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@CustomDialog -struct CustomDialogExample004 { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('这是自定义弹窗') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - } - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface004 { - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample004({ - cancel: () => { - this.onCancel() - }, - confirm: () => { - this.onAccept() - } - }), - cancel: this.existApp, - autoCancel: true, - alignment: DialogAlignment.Bottom, - offset: { dx: 0, dy: 40 }, - customStyle: false, - cornerRadius: 20, - width: 300, - height: 200, - borderStyle: BorderStyle.Dashed, - borderColor: Color.Blue, - backgroundColor: Color.White, - }) - - aboutToDisappear() { - this.dialogController = null; - } - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('click me') - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open(); - } - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface004_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface005.ets deleted file mode 100644 index 21abf45f2f830098e052548bebb0ba4e453fc826..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface005.ets +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// xxx.ets -@CustomDialog -struct CustomDialogExample005 { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('这是自定义弹窗') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - } - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface005 { - @State index: number = 0; - private colorArr: number[] = [Color.Pink, Color.White, Color.Red, Color.Blue]; - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('maskColor动态更新') - .onClick(() => { - let dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample005({}), - cancel: this.existApp, - autoCancel: true, - alignment: DialogAlignment.Center, - offset: { dx: 0, dy: -20 }, - customStyle: false, - cornerRadius: 20, - width: 300, - height: 200, - borderStyle: BorderStyle.Dashed, //使用borderStyle属性,需要和borderWidth属性一起使用 - borderColor: Color.Blue, //使用borderColor属性,需要和borderWidth属性一起使用 - backgroundColor: Color.White, - maskColor: this.colorArr[this.index] - }) - dialogController.open(); - if (this.index == 3) { - this.index = -1; - } - this.index++; - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface005_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface006.ets deleted file mode 100644 index 3b8c067727f9abe2a1603a2c0f16f54582e06b1a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface006.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// xxx.ets -@CustomDialog -struct CustomDialogExample006 { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('这是自定义弹窗') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - } - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface006 { - @State index: number = 0; - private alignmentArr: number[] = - [DialogAlignment.Center, DialogAlignment.Bottom, DialogAlignment.Top, DialogAlignment.CenterStart, - DialogAlignment.BottomStart]; - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('maskColor动态更新') - .onClick(() => { - let dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample006({}), - cancel: this.existApp, - autoCancel: true, - alignment: this.alignmentArr[this.index], - offset: { dx: 0, dy: -20 }, - customStyle: false, - cornerRadius: 20, - width: 300, - height: 200, - borderStyle: BorderStyle.Dashed, //使用borderStyle属性,需要和borderWidth属性一起使用 - borderColor: Color.Blue, //使用borderColor属性,需要和borderWidth属性一起使用 - backgroundColor: Color.White, - }) - dialogController.open(); - if (this.index == 4) { - this.index = -1; - } - this.index++; - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface006_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007.ets deleted file mode 100644 index 8270f0e910d1122b4e200b7b64c93f86b10b5684..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// xxx.ets -@CustomDialog -struct CustomDialogExample007 { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('这是自定义弹窗') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - } - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface007 { - @State index: number = 0; - private offSetArr: Offset[] = - [{ dx: '-20px', dy: 0 }, { dx: '20px', dy: 0 }, { dx: '-50vp', dy: 0 }, { dx: 0, dy: '-20px' }, - { dx: 0, dy: '20%' }, { dx: 0, dy: '-50vp' }]; - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('maskColor动态更新') - .onClick(() => { - let dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample007({}), - cancel: this.existApp, - autoCancel: true, - alignment: DialogAlignment.Center, - offset: this.offSetArr[this.index], - customStyle: false, - cornerRadius: 20, - width: 300, - height: 200, - borderStyle: BorderStyle.Dashed, //使用borderStyle属性,需要和borderWidth属性一起使用 - borderColor: Color.Blue, //使用borderColor属性,需要和borderWidth属性一起使用 - backgroundColor: Color.White, - }) - dialogController.open(); - if (this.index == 5) { - this.index = -1; - } - this.index++; - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface007_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008.ets deleted file mode 100644 index 30a8eac63917f753df432401eebabcddf31728e1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008.ets +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// xxx.ets -@CustomDialog -struct CustomDialogExampleFullDialog008 { - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('isModal_true') - .fontSize(30) - .height(100) - Button('点我关闭弹窗') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }) - .margin(20) - }.backgroundColor(Color.Gray) - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface008 { - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExampleFullDialog008({ - cancel: () => { - this.onCancel() - }, - confirm: () => { - this.onAccept() - } - }), - cancel: this.existApp, - autoCancel: true, - openAnimation: { iterations: -1, duration: 500 }, - alignment: DialogAlignment.Center, - isModal: true, - customStyle: false, - cornerRadius: 10, - }) - - // 在自定义组件即将析构销毁时将dialogController置空 - aboutToDisappear() { - this.dialogController = null // 将dialogController置空 - } - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - existApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button('show dialog') - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open() - } - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface008_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009.ets deleted file mode 100644 index fab8ec7a33269df608e968f15e556dee9331bf48..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009.ets +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// xxx.ets -@CustomDialog -struct CustomDialogExample009_1 { - controllerTwo?: CustomDialogController - - build() { - Column() { - Text('我是第二个弹窗showInSubWindow=false') - Button('点我关闭第二个弹窗') - .onClick(() => { - if (this.controllerTwo != undefined) { - this.controllerTwo.close() - } - }) - .margin(20) - } - } -} - -@CustomDialog -@Component -struct CustomDialogExample009 { - dialogControllerTwo: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample009_1(), - alignment: DialogAlignment.Bottom, - showInSubWindow:false, - offset: { dx: 0, dy: -20 } - }) - controller?: CustomDialogController - cancel: () => void = () => { - } - confirm: () => void = () => { - } - - build() { - Column() { - Text('Change text').fontSize(20).margin({ top: 10, bottom: 10 }) - Button('点我打开第二个弹窗') - .onClick(() => { - if (this.dialogControllerTwo != null) { - this.dialogControllerTwo.open() - } - }).key('UIComponentPopupBoxFullDialogInterface009_button_02') - .margin(20) - }.borderRadius(10) - - } -} - -@Entry -@Component -struct UIComponentPopupBoxFullDialogInterface009 { - @State inputValue: string = 'show Dialog'; - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExample009({ - cancel: () => { - this.onCancel() - }, - confirm: () => { - this.onAccept() - } - }), - cancel: this.exitApp, - alignment: DialogAlignment.Center, - offset: { dx: 0, dy: -20 }, - gridCount: 4, - showInSubWindow: true, - isModal: true, - customStyle: false, - cornerRadius: 10, - }) - - aboutToDisappear() { - this.dialogController = null // 将dialogController置空 - } - - onCancel() { - console.info('Callback when the first button is clicked') - } - - onAccept() { - console.info('Callback when the second button is clicked') - } - - exitApp() { - console.info('Click the callback in the blank area') - } - - build() { - Column() { - Button(this.inputValue) - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open() - } - }).backgroundColor(0x317aff).key('UIComponentPopupBoxFullDialogInterface009_button_001') - }.width('100%').margin({ top: 5 }) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface001.ets deleted file mode 100644 index b9b5d09d16c580e340fb600beb06fb1f5bcbfce0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface001.ets +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@CustomDialog -struct CustomDialogExamplePopup { - @Link textValue: string - @Link inputValue: string - controller?: CustomDialogController - @State fontColor: number = Color.Black; - - build() { - Column() { - Text('Change text') - .fontSize(20) - .margin({ top: 10 }) - .fontColor(this.fontColor) - .onClick(() => { - this.fontColor = Color.Blue; - }) - .key('UIComponentPopupBoxPopupInterface001_text_001') - TextInput({ placeholder: '', text: this.textValue }) - .height(60) - .width('90%') - .onChange((value: string) => { - this.textValue = value - }) - .margin(10) - .key('UIComponentPopupBoxPopupInterface001_textInput_001') - Flex({ justifyContent: FlexAlign.SpaceAround }) { - Button('cancel') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }).backgroundColor(0xffffff).fontColor(Color.Black) - Button('confirm') - .onClick(() => { - if (this.controller != undefined) { - this.controller.close() - } - }).backgroundColor(0xffffff).fontColor(Color.Red) - }.borderRadius(10) - } - } -} - -@Entry -@Component -struct UIComponentPopupBoxPopupInterface001 { - @State textValue: string = ''; - @State inputValue: string = 'show dialog'; - dialogController: CustomDialogController | null = new CustomDialogController({ - builder: CustomDialogExamplePopup({ - textValue: $textValue, - inputValue: $inputValue - }), - cancel: this.exitApp, - autoCancel: true, - alignment: DialogAlignment.Bottom, - offset: { dx: 0, dy: -200 }, - gridCount: 4, - customStyle: false, - cornerRadius: 10, - }) - - exitApp() { - this.dialogController?.close() - } - - build() { - Column() { - Button(this.inputValue) - .onClick(() => { - if (this.dialogController != null) { - this.dialogController.open() - } - }).backgroundColor(0x317aff).key('UIComponentPopupBoxPopupInterface001_button_001') - }.width('100%').margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface002.ets deleted file mode 100644 index ef6de4e465364ccf51ec52a73cba131579e86d5b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface002.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { prompt } from '@kit.ArkUI'; - -@Entry -@Component -struct UIComponentPopupBoxPopupInterface002 { - @State inputValue: string = 'show dialog'; - - build() { - Column() { - Button(this.inputValue) - .onClick(() => { - prompt.showDialog({ - title: 'Title Info', - message: 'Message Info', - buttons: [ - { - text: 'cancel', - color: '#000000' - }, - { - text: 'confirm', - color: '#000000' - } - ], - }) - .then(data => { - console.info('showDialog success, click button: ' + data.index); - }) - .catch((err: Error) => { - console.info('showDialog error: ' + err); - }) - }).backgroundColor(0x317aff).key('UIComponentPopupBoxPopupInterface002_button_001') - }.width('100%').margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface003.ets deleted file mode 100644 index 3019137f87ac24c6d58a734f627cc05e351efb47..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface003.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction' - -let customDialogId: number = 0 - -@Builder -function customDialogBuilder() { - Column() { - Text('Custom dialog Message').fontSize(20) - Row() { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(customDialogId) - }).key('UIComponentPopupBoxPopupInterface003_button_002') - Blank().width(50) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(customDialogId) - }) - }.margin({ top: 20 }) - }.height(100).padding(15) -} - -@Entry -@Component -struct UIComponentPopupBoxPopupInterface003 { - @State message: string = 'Hello World' - - build() { - Row() { - Column() { - Button('Show promptAction') - .fontWeight(FontWeight.Bold) - .onClick(() => { - promptAction.openCustomDialog({ - builder: customDialogBuilder.bind(this) - }).then((dialogId: number) => { - customDialogId = dialogId - }) - }).key('UIComponentPopupBoxPopupInterface003_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence002.ets deleted file mode 100644 index d5eacebfbfc860b35bb5d96102703895f7c2fcd3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence002.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence002 { - @State buttonText: string = 'Open'; - @State message: string = ''; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - } - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxPromptToastSequence0021') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0020') - .onClick(() => { - this.handlePopup = !this.handlePopup; - promptAction.showToast({ - message: '', - showMode: promptAction.ToastShowMode.TOP_MOST - }) - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence003.ets deleted file mode 100644 index 9bd071542b9d0effde0471c1f6aa38eac0155d9d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence003.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -let customDialogId: number = 0 - -@Builder -function customSecondDialogBuilder() { - Column({ space: 50 }) { - Text('Custom dialog Message').fontSize(10) - Row() { - Button("confirm").onClick(() => { - promptAction.closeCustomDialog(customDialogId) - }) - - Button("cancel").onClick(() => { - promptAction.closeCustomDialog(customDialogId) - }) - } - }.height(200).padding(5) -} - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence003 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxPromptToastSequence0031') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0030') - .onClick(() => { - promptAction.showToast({ - message: 'this is a Toast', - showMode: promptAction.ToastShowMode.TOP_MOST, - alignment: Alignment.Top, - duration: 3000 - }); - promptAction.openCustomDialog({ - builder: customSecondDialogBuilder.bind(this) - }).then((dialogId: number) => { - customDialogId = dialogId - }) - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence004.ets deleted file mode 100644 index 84e9e2eb64baedb69de1983c9ce141862af14df4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence004.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence004 { - @State buttonText: string = 'Open'; - @State message: string = ''; - @Builder - SubMenu() { - Menu() { - MenuItem({ content: "复制", labelInfo: "Ctrl+C" }) - MenuItem({ content: "粘贴", labelInfo: "Ctrl+V" }) - } - } - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxPromptToastSequence0041') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0040') - .onClick(() => { - promptAction.showToast({ - message: 'this is a Toast', - showMode: promptAction.ToastShowMode.TOP_MOST, - alignment: Alignment.Top, - duration: 3000 - }); - }) - .bindMenu(this.SubMenu) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence005.ets deleted file mode 100644 index f84761657b168af03edae4a8f3371a53a0c40df2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence005.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence005 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxPromptToastSequence0051') - - Image('cat.jpg') - .width(240) - .height(240) - .id('UIComponentPopupBoxPromptToastSequence0050') - .onClick(() => { - promptAction.showToast({ - message: 'this is a Toast', - alignment: Alignment.Center, - showMode: promptAction.ToastShowMode.TOP_MOST, - duration: 3000 - }); - }) - .overlay("This is a overlay!", { - align: Alignment.Bottom, - offset: { x: 0, y: -15 } - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence006.ets deleted file mode 100644 index 2850feb0c40503aaf70bb5097edb723207016eb2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence006.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence006 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxPromptToastSequence0061') - - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0060') - .onClick(() => { - promptAction.showToast({ - message: 'This is a first Toast', - showMode: promptAction.ToastShowMode.TOP_MOST, - alignment: Alignment.Center, - duration: 3000 - }); - promptAction.showToast({ - message: 'This is a second Toast', - showMode: promptAction.ToastShowMode.TOP_MOST, - alignment: Alignment.Center, - duration: 3000 - }); - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence007.ets deleted file mode 100644 index cdf7221ec9ebba93fa6be6af79b033f8b7026eb4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence007.ets +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence007 { - @State buttonText: string = 'Open'; - @State message: string = ''; - @State isShow: boolean = false - - @Builder - myBuilder() { - Column() { - Button("close modal 2") - .margin(10) - .fontSize(20) - .onClick(() => { - this.isShow = false; - }) - } - .width('100%') - .height('100%') - } - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxPromptToastSequence0071') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0070') - .bindContentCover(this.isShow, this.myBuilder(), { - modalTransition: ModalTransition.NONE, - backgroundColor: Color.Orange, - onWillAppear: () => { - console.log("BindContentCover onWillAppear."); - }, - onAppear: () => { - console.log("BindContentCover onAppear."); - }, - onWillDisappear: () => { - console.log("BindContentCover onWillDisappear."); - }, - onDisappear: () => { - console.log("BindContentCover onDisappear."); - } - }) - .onClick(() => { - promptAction.showToast({ - message: 'this is a Toast', - alignment: Alignment.Top, - showMode: promptAction.ToastShowMode.TOP_MOST, - duration: 3000 - }); - this.isShow = true; - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence008.ets deleted file mode 100644 index 9080e28bce4e96f048a7fe2028c4506d3a3e111b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence008.ets +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence008 { - @State buttonText: string = 'Open'; - @State message: string = ''; - @State isShow: boolean = false; - @State handlePopup: boolean = false; - @State isShowSheet: boolean = false; - @State sheetHeight: number = 300; - - @Builder - myBuilder() { - Column() { - Button("first Button") - .margin(10) - .fontSize(20) - - Button("second Button") - .margin(10) - .fontSize(20) - } - .width('100%') - .height('100%') - } - - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - } - - build() { - Row() { - Column() { - Text(this.message) - .id('UIComponentPopupBoxPromptToastSequence0081') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0080') - .onClick(() => { - promptAction.showToast({ - message: 'this is a Toast', - showMode: promptAction.ToastShowMode.TOP_MOST, - duration: 3000 - }); - this.isShowSheet = true; - this.isShow = true; - }) - .bindSheet($$this.isShowSheet, this.myBuilder(), { - height: this.sheetHeight, - backgroundColor: Color.Green, - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence009.ets deleted file mode 100644 index 88aaeae9b9e1a538834a42a5ad0da142a00c998d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence009.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence009 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - TextInput() - .id('UIComponentPopupBoxPromptToastSequence0091') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0090') - .onClick(() => { - promptAction.showToast({ - message: 'this is a Toast', - showMode: promptAction.ToastShowMode.TOP_MOST, - duration: 4000 - }); - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence014.ets deleted file mode 100644 index 45dc81375502858f839cfea12a1089c209f75cbd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence014.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence014 { - @State buttonText: string = 'Open'; - @State message: string = ''; - - build() { - Row() { - Column() { - TextInput() - .id('UIComponentPopupBoxPromptToastSequence0141') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0140') - .onClick(() => { - promptAction.showToast({ - message: 'this is a first toast', - showMode: promptAction.ToastShowMode.DEFAULT, - duration: 4000 - }); - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence015.ets deleted file mode 100644 index 8a80aa7730772f66c6fabd91ec5702c158e93ea2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence015.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction'; - -@Entry -@Component -struct UIComponentPopupBoxPromptToastSequence015 { - @State buttonText: string = 'Open'; - @State message: string = ''; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - } - - build() { - Row() { - Column() { - TextInput() - .id('UIComponentPopupBoxPromptToastSequence0151') - Button(this.buttonText) - .fontSize(50) - .fontWeight(FontWeight.Bold) - .id('UIComponentPopupBoxPromptToastSequence0150') - .onClick(() => { - promptAction.showToast({ - message: 'this is a first toast', - showMode: promptAction.ToastShowMode.TOP_MOST, - duration: 4000 - }); - promptAction.showToast({ - message: 'this is a second toast', - showMode: promptAction.ToastShowMode.DEFAULT, - duration: 3000 - }); - }) - } - .width('100%') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications058.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications058.ets deleted file mode 100644 index 4cf746febf904379735c37b0333d8fe7949d98c3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications058.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications058 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0580') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications059.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications059.ets deleted file mode 100644 index 5be634105f9d0855ad9ac0a11f0b786b2fccc62e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications059.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications059 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0590') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - .alignSelf(ItemAlign.Start) - } - .height('100%') - .width('100%') - .justifyContent(FlexAlign.Center) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications060.ets deleted file mode 100644 index db2135fcfb0b32c17ace64b6363e9d5d52c52657..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications060.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications060 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0600') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - }) - .alignSelf(ItemAlign.End) - } - .height('100%') - .width('100%') - .justifyContent(FlexAlign.Center) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications061.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications061.ets deleted file mode 100644 index ba1f21b6897763d1718342bec9c74da7729ad277..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications061.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications061 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0610') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - .alignSelf(ItemAlign.End) - } - .height('100%') - .width('100%') - .justifyContent(FlexAlign.Center) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications062.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications062.ets deleted file mode 100644 index 87c013f5d5500bef6b609c1e7b8a22127a383b5a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications062.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications062 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0620') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - }) - .alignSelf(ItemAlign.Center) - } - .height('100%') - .width('100%') - .justifyContent(FlexAlign.Start) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications063.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications063.ets deleted file mode 100644 index 1aba2a12b427a850274d67f0ea2ae1348622121d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications063.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications063 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0630') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications064.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications064.ets deleted file mode 100644 index d8e85acc17f233db0ffe966a9b569a7060f456fe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications064.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications064 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0640') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications065.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications065.ets deleted file mode 100644 index 879564312d4485f18a8eccaaf82f4347e5d73b0d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications065.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications065 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0650') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications066.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications066.ets deleted file mode 100644 index 594539de5583a47407d2d9fd014bd46012abfe92..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications066.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications066 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0660') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications067.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications067.ets deleted file mode 100644 index fdb3282b5fd35e3d4149d42c44601c5c217d2b2f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications067.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications067 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0670') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications068.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications068.ets deleted file mode 100644 index 50d8dcc4e03de50f91afe5d7f389065c2996c445..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications068.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications068 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0680') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.End) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications069.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications069.ets deleted file mode 100644 index 1028ad2b6c11245a03a351c71c74185b8f1a6434..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications069.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications069 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0690') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - .alignSelf(ItemAlign.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/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications070.ets deleted file mode 100644 index d580bc8a0dcb9d19dc8276ed11a8a7f5a1f79034..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications070.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications070 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0700') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications071.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications071.ets deleted file mode 100644 index 1a0dd8bdcfce51d4c7f67ad88a37cc4c9e8a29c3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications071.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications071 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0710') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications072.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications072.ets deleted file mode 100644 index ba02f97351aae72516119255c2cadaa8a5c64f2b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications072.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications072 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0720') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.End) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications073.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications073.ets deleted file mode 100644 index dfcd1e827ead4b001ba37f7176e73e246c5d7886..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications073.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications073 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0730') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.End) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications074.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications074.ets deleted file mode 100644 index a0b2dfb9de861095ebc903b0c3a66631dac064b3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications074.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications074 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0740') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications075.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications075.ets deleted file mode 100644 index cd669be4c503dc8eec789d9b78c049cb8ddef8fd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications075.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications075 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0750') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications076.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications076.ets deleted file mode 100644 index d45f8a8a391307a26c6a9c4245a4cae1451cbc8a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications076.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications076 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0760') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.End) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications077.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications077.ets deleted file mode 100644 index d2f1f193cd080f1aeaae0814367367b28c2010c0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications077.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications077 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0770') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.End) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications078.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications078.ets deleted file mode 100644 index 9b209c2017b3e303e90314c43dc253a4dbeb7706..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications078.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications078 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0780') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications079.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications079.ets deleted file mode 100644 index 2d5fdff6ddd6954ed3c29427f8c34e4bb24b2e00..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications079.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications079 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0790') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications080.ets deleted file mode 100644 index 5be8638f93ac2869e4caaaac98c82bf098b64641..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications080.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications080 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0800') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications081.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications081.ets deleted file mode 100644 index 3cbb262a493163c504284bd98b09dedd08a07d71..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications081.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications081 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0810') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - arrowOffset: -1 - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications082.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications082.ets deleted file mode 100644 index 8f4166d3c463b3408f7e8813783ea8d6550d0705..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications082.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications082 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('100%') - .id('UIComponentPopupBoxSpecifications0820') - .offset({ x: 100, y: 0 }) - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placement: Placement.Left, - showInSubWindow: false, - offset: { x: -10, y: 0 } - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Start) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications083.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications083.ets deleted file mode 100644 index e889d49f52dd426cd375d2ff73b531179c8608e0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications083.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications083 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0830') - .offset({ x: -100, y: 0 }) - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placement: Placement.Right, - showInSubWindow: false, - offset: { x: 10, y: 0 } - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.End) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications084.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications084.ets deleted file mode 100644 index ab8b6489e8c81e15840cb54bbcc9b98f9cd6943d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications084.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications084 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0840') - .offset({ x: 0, y: 100 }) - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - offset: { x: 0, y: -10 } - }) - - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications085.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications085.ets deleted file mode 100644 index 788b2051153b78fef899cfa29663431354e57d79..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications085.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxSpecifications085 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .width('50vp') - .id('UIComponentPopupBoxSpecifications0850') - .offset({ x: 0, y: -100 }) - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: false, - showInSubWindow: false, - offset: { x: 0, y: 10 } - }) - } - .width('60') - .height('80') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Bottom) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup001.ets deleted file mode 100644 index d91b0bd033b98fd4b3281c0028c1ed3be742190e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup001.ets +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsPopup001 { - - @Builder - customDialogComponent() { - Column() { - Text('原有配置的Menu') - Row({ space: 50 }) { - Menu() { - MenuItem({ content: "菜单选项1" }) - MenuItem({ content: "菜单选项2" }) - } - } - .border({ - width: 1 - }) - - Text('modifier配置的Menu') - .margin({top: 20}) - Row(){ - Menu() { - MenuItem({ content: "菜单选项1" }) - MenuItem({ content: "菜单选项2" }) - } - .font(MenuData[0].font) - .fontColor(MenuData[0].fontColor) - .fontSize(MenuData[0].fontSize) - .radius(MenuData[0].radius) - } - .border({ - width: 1 - }) - } - } - - build() { - Row() { - Column() { - Button('show_menu') - .id('UIComponentPopupBoxSpecificationsPopup0010') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} - -export interface MenuItemAttributes { - selected?: boolean - selectIcon?: boolean | ResourceStr - contentFont?: Font - contentFontColor?: ResourceColor - labelFont?: Font - labelFontColor?: ResourceColor -} - -export const MenuItemData: MenuItemAttributes[] = [ - { - selected: true, - selectIcon: true, - contentFont: { - size: 20, - weight: 8, - family: "HarmonyOS Sans", - style: FontStyle.Normal - }, - labelFontColor: Color.Red, - labelFont: { - size: $r('app.string.20string'), - weight: 8, - family: $r("app.string.button_font_sans"), - style: FontStyle.Italic - }, - contentFontColor: Color.Pink - }, - { - selected: false, - selectIcon: true, - contentFont: { - size: 20, - weight: 10, - family: "HarmonyOS Sans", - style: FontStyle.Italic - }, - labelFontColor: Color.Brown, - labelFont: { - size: $r('app.string.20string'), - weight: 8, - family: $r("app.string.button_font_sans"), - style: FontStyle.Italic - }, - contentFontColor: Color.Orange - }, - { - selected: false, - selectIcon: false, - contentFont: { - size: 20, - weight: 10, - family: "HarmonyOS Sans", - style: FontStyle.Normal - }, - labelFontColor: Color.Blue, - labelFont: { - size: $r('app.string.20string'), - weight: 8, - family: $r("app.string.button_font_sans"), - style: FontStyle.Normal - }, - contentFontColor: "0xff0000" - } - -] - -export interface MenuAttributes { - font?: Font - fontColor?: ResourceColor | null | undefined - radius?: Dimension | BorderRadiuses - fontSize?: Length -} - -export const MenuData: MenuAttributes[] = [ - { - font: { - size: 10, - weight: 5, - family: "HarmonyOS Sans", - style: FontStyle.Normal - }, - radius: { - topLeft: 10, - topRight: 15, - bottomLeft: 20, - bottomRight: 25 - }, - fontColor: Color.Brown, - fontSize: 10 - }, - { - font: { - size: 10, - weight: 5, - family: "HarmonyOS Sans", - style: FontStyle.Normal - }, - radius: { - topLeft: 10, - topRight: 0, - bottomLeft: 0, - bottomRight: 30 - }, - fontColor: Color.Red, - fontSize: 20 - }, - { - font: { - size: 10, - weight: 5, - family: "HarmonyOS Sans", - style: FontStyle.Italic - }, - radius: { - topLeft: 10, - topRight: 0, - bottomLeft: 0, - bottomRight: 30 - }, - fontColor: Color.Pink, - fontSize: "20" - } -] - -export interface PanelAttributes { - type?: PanelType - mode?: PanelMode - dragBar?: boolean - customHeight?: (Dimension | PanelHeight) - fullHeight?: (string | number) - halfHeight?: (string | number) - miniHeight?: (string | number) - show?: boolean - backgroundMask?: ResourceColor | null - showCloseIcon?: boolean -} - -export const PanelData: PanelAttributes[] = [ - { - type: PanelType.Minibar, - mode: PanelMode.Mini, - miniHeight: 160, - dragBar: true, - showCloseIcon: true, - customHeight: PanelHeight.WRAP_CONTENT, - backgroundMask: 'rgb(255, 100, 255)', - show: true, - fullHeight: 240, - halfHeight: 120 - }, - { - type: PanelType.Minibar, - mode: PanelMode.Mini, - miniHeight: 160, - dragBar: true, - showCloseIcon: true, - backgroundMask: null, - show: true, - fullHeight: 240, - halfHeight: 120 - }, - { - type: PanelType.Temporary, - mode: PanelMode.Mini, - miniHeight: 160, - dragBar: true, - showCloseIcon: true, - backgroundMask: 'rgb(255, 200, 155)', - show: true, - fullHeight: 240, - halfHeight: 120 - } -] - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup002.ets deleted file mode 100644 index 2bb51169e9a9fd8db24aaeb0d7f6f7ec24c9bd7a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup002.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI' -import { MenuData } from './UIComponentPopupBoxSpecificationsPopup001' - -@Entry -@Component -struct UIComponentPopupBoxSpecificationsPopup002 { - - @Builder - customDialogComponent() { - Column() { - Text('原有配置的Menu') - Row({ space: 50 }) { - Menu() { - MenuItem({ content: "菜单选项1" }) - MenuItem({ content: "菜单选项2" }) - } - } - .border({ - width: 1 - }) - - Text('modifier配置的Menu') - .margin({top: 20}) - Row(){ - Menu() { - MenuItem({ content: "菜单选项1" }) - MenuItem({ content: "菜单选项2" }) - } - .font(MenuData[1].font) - .fontColor(MenuData[1].fontColor) - .fontSize(MenuData[1].fontSize) - .radius(MenuData[1].radius) - } - .border({ - width: 1 - }) - } - } - - build() { - Row() { - Column() { - Button('show_menu') - .id('UIComponentPopupBoxSpecificationsPopup0020') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup003.ets deleted file mode 100644 index 41be5696231aecaa7f748e1edc711238d60a6c2d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup003.ets +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI' -import { MenuData } from './UIComponentPopupBoxSpecificationsPopup001' - -@Entry -@Component -struct UIComponentPopupBoxSpecificationsPopup003 { - - @Builder - customDialogComponent() { - Column() { - Text('原有配置的Menu') - Row({ space: 50 }) { - Menu() { - MenuItem({ content: "菜单选项1" }) - MenuItem({ content: "菜单选项2" }) - } - } - .border({ - width: 1 - }) - - Text('modifier配置的Menu') - .margin({top: 20}) - Row(){ - Menu() { - MenuItem({ content: "菜单选项1" }) - MenuItem({ content: "菜单选项2" }) - } - .font(MenuData[2].font) - .fontColor(MenuData[2].fontColor) - .fontSize(MenuData[2].fontSize) - .radius(MenuData[2].radius) - } - .border({ - width: 1 - }) - } - } - - build() { - Row() { - Column() { - Button('show_menu') - .id('UIComponentPopupBoxSpecificationsPopup0030') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup004.ets deleted file mode 100644 index 9f79c528819bd9bc126976266c18a25b6a5aeeff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup004.ets +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI' -import { MenuItemData } from './UIComponentPopupBoxSpecificationsPopup001' - -@Entry -@Component -struct UIComponentPopupBoxSpecificationsPopup004 { - - @Builder - customDialogComponent() { - Column() { - Text('原有配置的MenuItem') - Row({ space: 50 }) { - Menu() { - MenuItem({ content: "菜单选项" }) - } - } - .border({ - width: 1 - }) - Text('modifier配置的MenuItem') - .margin({top: 20}) - Row(){ - Menu() { - MenuItem({ content: "菜单选项" }) - .selected(MenuItemData[0].selected) - .selectIcon(MenuItemData[0].selectIcon) - .contentFont(MenuItemData[0].contentFont) - .labelFontColor(MenuItemData[0].labelFontColor) - .labelFont(MenuItemData[0].labelFont) - .contentFontColor(MenuItemData[0].contentFontColor) - } - } - .border({ - width: 1 - }) - } - } - - build() { - Row() { - Column() { - Button('show_menuItem') - .id('UIComponentPopupBoxSpecificationsPopup0040') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup005.ets deleted file mode 100644 index 960a62ff85f9075fdec9159e2a0f1bb37f084224..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup005.ets +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI' -import { MenuItemData } from './UIComponentPopupBoxSpecificationsPopup001' - -@Entry -@Component -struct UIComponentPopupBoxSpecificationsPopup005 { - - @Builder - customDialogComponent() { - Column() { - Text('原有配置的MenuItem') - Row({ space: 50 }) { - Menu() { - MenuItem({ content: "菜单选项" }) - } - } - .border({ - width: 1 - }) - Text('modifier配置的MenuItem') - .margin({top: 20}) - Row(){ - Menu() { - MenuItem({ content: "菜单选项" }) - .selected(MenuItemData[1].selected) - .selectIcon(MenuItemData[1].selectIcon) - .contentFont(MenuItemData[1].contentFont) - .labelFontColor(MenuItemData[1].labelFontColor) - .labelFont(MenuItemData[1].labelFont) - .contentFontColor(MenuItemData[1].contentFontColor) - } - } - .border({ - width: 1 - }) - } - } - - build() { - Row() { - Column() { - Button('show_menuItem') - .id('UIComponentPopupBoxSpecificationsPopup0050') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup006.ets deleted file mode 100644 index 8cb077cdb897481bff49d042fb2a57e0eb822733..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup006.ets +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { promptAction } from '@kit.ArkUI' -import { MenuItemData } from './UIComponentPopupBoxSpecificationsPopup001' - -@Entry -@Component -struct UIComponentPopupBoxSpecificationsPopup006 { - - @Builder - customDialogComponent() { - Column() { - Text('原有配置的MenuItem') - Row({ space: 50 }) { - Menu() { - MenuItem({ content: "菜单选项" }) - } - } - .border({ - width: 1 - }) - Text('modifier配置的MenuItem') - .margin({top: 20}) - Row(){ - Menu() { - MenuItem({ content: "菜单选项" }) - .selected(MenuItemData[2].selected) - .selectIcon(MenuItemData[2].selectIcon) - .contentFont(MenuItemData[2].contentFont) - .labelFontColor(MenuItemData[2].labelFontColor) - .labelFont(MenuItemData[2].labelFont) - .contentFontColor(MenuItemData[2].contentFontColor) - } - } - .border({ - width: 1 - }) - } - } - - build() { - Row() { - Column() { - Button('show_menuItem') - .id('UIComponentPopupBoxSpecificationsPopup0060') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - }) - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow012.ets deleted file mode 100644 index bf27335aa52ff1a7b706628c44cc143fa28c0be9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow012.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow012 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0120') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: ShadowStyle.OUTER_DEFAULT_LG - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow013.ets deleted file mode 100644 index 30bc7b143ec27afd9468e11100a6b069aed3d342..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow013.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow013 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0130') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: ShadowStyle.OUTER_DEFAULT_SM - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow014.ets deleted file mode 100644 index 02211b4b9eab91f2ade379906c1d0c42c188bff7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow014.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow014 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0140') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: ShadowStyle.OUTER_DEFAULT_XS - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow016.ets deleted file mode 100644 index 82c0013a12dd499645264aad2fb89c49d8543372..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow016.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow016 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0160') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: ShadowStyle.OUTER_FLOATING_SM - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow017.ets deleted file mode 100644 index 66d1abb4babbda54b904330c60b3316df29ad2ec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow017.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow017 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0170') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: { - radius: getContext().resourceManager.getNumber($r("app.integer.30")), - type: ShadowType.COLOR, - color: Color.Black, - offsetX: getContext().resourceManager.getNumber($r("app.integer.30")), - offsetY: getContext().resourceManager.getNumber($r("app.integer.30")), - fill: true - } - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow018.ets deleted file mode 100644 index 822d36936a7524d1ccc545a2419af105141acc35..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow018.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow018 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0180') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: { - radius: getContext().resourceManager.getNumber($r("app.integer.100")), - type: ShadowType.COLOR, - color: ColoringStrategy.AVERAGE, - offsetX: getContext().resourceManager.getNumber($r("app.integer.30")), - offsetY: getContext().resourceManager.getNumber($r("app.integer.30")), - fill: false - } - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow020.ets deleted file mode 100644 index fc4784313f353a5c8c61d7c5d3c37fa9155b948f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow020.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow020 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0200') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: { - radius: getContext().resourceManager.getNumber($r("app.integer.100")), - type: ShadowType.COLOR, - color: ColoringStrategy.PRIMARY, - offsetX: getContext().resourceManager.getNumber($r("app.integer.30")), - offsetY: getContext().resourceManager.getNumber($r("app.integer.30")), - fill: false - } - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow021.ets deleted file mode 100644 index 55e682452d51538018d311848ae63c4b6d23572c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow021.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow021 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0210') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: { - radius: getContext().resourceManager.getNumber($r("app.integer.30")), - type: ShadowType.BLUR, - color: '#FF00FF', - offsetX: getContext().resourceManager.getNumber($r("app.integer.30")), - offsetY: getContext().resourceManager.getNumber($r("app.integer.30")), - fill: false - } - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow022.ets deleted file mode 100644 index 5e4095cf2343581e0023fe149dcb9c1804279416..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow022.ets +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow022 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0220') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: { - radius: getContext().resourceManager.getNumber($r("app.integer.30")), - type: ShadowType.COLOR, - color: getContext().resourceManager.getColorSync($r("app.color.color3")), - offsetX: getContext().resourceManager.getNumber($r("app.integer.100")), - offsetY: getContext().resourceManager.getNumber($r("app.integer.100")), - fill: false - } - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow083.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow083.ets deleted file mode 100644 index 1f328d0d7fe6f63a65c1016aa6a97aa2d0a42588..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow083.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES 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 UIComponentPopupBoxSpecificationsShadow083 { - private customDialogComponentId: number = 0 - - @Builder - customDialogComponent() { - Column() { - Text('弹窗').fontSize(30) - Row({ space: 50 }) { - Button("确认").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - Button("取消").onClick(() => { - promptAction.closeCustomDialog(this.customDialogComponentId); - }) - } - }.height(200).padding(5).justifyContent(FlexAlign.SpaceBetween) - } - - build() { - Row() { - Column() { - Button('SelectDialog') - .fontSize(20) - .fontColor(Color.Blue) - .width('300px') - .id('UIComponentPopupBoxSpecificationsShadow0830') - .onClick(() => { - promptAction.openCustomDialog({ - builder: () => { - this.customDialogComponent(); - }, - onWillDismiss: (dismissDialogAction: DismissDialogAction) => { - if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { - dismissDialogAction.dismiss(); - } - if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { - dismissDialogAction.dismiss(); - } - }, - shadow: undefined - }).then((dialogId: number) => { - this.customDialogComponentId = dialogId; - }) - }) - } - .width('300px') - .height('200px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface001.ets deleted file mode 100644 index 887c03611240f31868659b74afcccb88a9e89742..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface001.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxToastStyleInterface001 { - - build() { - Row() { - Column() { - Button('010_Toast') - .fontWeight(FontWeight.Bold) - .onClick(() => { - this.getUIContext().getPromptAction().showToast({ - message: '这是单行文本,全用默认值' - }); - }).key('UIComponentPopupBoxToastStyleInterface001_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface002.ets deleted file mode 100644 index 4ba7826acf80cb71d28bf68b5f2311c5d8524da6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface002.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxToastStyleInterface002 { - - build() { - Row() { - Column() { - Button('020_Toast') - .fontWeight(FontWeight.Bold) - .onClick(() => { - this.getUIContext().getPromptAction().showToast({ - message: '这是多行文本,全用默认值\n这是多行文本,全用默认值这\n是多行文本,全用默认值' - }); - }).key('UIComponentPopupBoxToastStyleInterface002_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface003.ets deleted file mode 100644 index 7ef216baf87f3182f28cf94543adf10bb04b198c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface003.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxToastStyleInterface003 { - - build() { - Row() { - Column() { - Button('030_Toast') - .fontWeight(FontWeight.Bold) - .onClick(() => { - this.getUIContext().getPromptAction().showToast({ - message: '这是超长文本,全用默认值。这是超长文本,全用默认值。这是超长文本,全用默认值。这是超长文本,全用默认值。这是超长文本,全用默认值。这是超长文本,全用默认值。' - }); - }).key('UIComponentPopupBoxToastStyleInterface003_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface004.ets deleted file mode 100644 index b2bd2f4b62afea7b567925eb124cd4d92a29a275..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface004.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupBoxToastStyleInterface004 { - build() { - Row() { - Column() { - Button('040_Toast') - .fontWeight(FontWeight.Bold) - .onClick(() => { - this.getUIContext().getPromptAction().showToast({ - message: '这是超长文本,全用默认值', - showMode: 1 - }); - }).key('UIComponentPopupBoxToastStyleInterface004_button_001') - TextInput({ placeholder: '这是输入框' }) - .key('UIComponentPopupBoxToastStyleInterface004_textInput_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface001.ets deleted file mode 100644 index 327db15ae013edca63e1b2e347556cf5fea5eb6b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface001.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import promptAction from '@ohos.promptAction' -import { BusinessError } from '@kit.BasicServicesKit' - -@Entry -@Component -struct UIComponentPopupPromptInterface001 { - @State currentTime: string = '文本提示时间为默认值1.5s'; - @State duration: number = 1000; - @State fontColor: number = Color.Black; - @State fontColor5s: number = Color.Black; - - build() { - Row() { - Column() { - Text('Change duration = 5000s').fontColor(this.fontColor5s) - .onClick(() => { - this.fontColor5s = Color.Blue; - this.fontColor = Color.Black; - this.duration = 5000; - this.currentTime = '文本提示时间为5s'; - }).key('UIComponentPopupPromptInterface001_button_003') - Text('Change duration = 15000s').fontColor(this.fontColor) - .onClick(() => { - this.fontColor = Color.Blue; - this.fontColor5s = Color.Black; - this.duration = 15000; - this.currentTime = '文本提示时间为最大值10s'; - }).key('UIComponentPopupPromptInterface001_button_002') - Button('Show Toast') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - promptAction.showToast({ - message: this.currentTime, - duration: this.duration - }); - } catch (error) { - let message = (error as BusinessError).message - let code = (error as BusinessError).code - console.error(`showToast args error code is ${code}, message is ${message}`); - } - ; - }).key('UIComponentPopupPromptInterface001_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0010.ets deleted file mode 100644 index 245d1b39ea31b15d790c29b4d4153726fedc2266..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0010.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@ohos.base'; - -@Entry -@Component -struct UIComponentPopupPromptInterface0010 { - @State selectContent: string = '不设置button'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show Dialog') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext() - .getPromptAction() - .showDialog({ - title: 'showDialog Title 不设置button', - message: 'Message Info' - }, (err, data) => { - if (err) { - console.info('showDialog err: ' + err); - return; - } - this.selectContent = this.selectContent + data.index; - console.info('showDialog success callback, click button: ' + data.index); - }); - } catch (error) { - let message = (error as BusinessError).message; - let code = (error as BusinessError).code; - console.error(`showDialog args error code is ${code}, message is ${message}`); - } - ; - }).key('UIComponentPopupPromptInterface0010_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0011.ets deleted file mode 100644 index d00b2508d49bba009e2cd8046c269015038715ba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0011.ets +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@ohos.base'; - -@Entry -@Component -struct UIComponentPopupPromptInterface0011 { - @State selectContent: string = '4个button'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show Dialog') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext() - .getPromptAction() - .showDialog({ - title: 'showDialog Title 设置4个button', - message: 'Message Info', - buttons: [ - { - text: 'button1', - color: '#000000' - }, - { - text: 'button2', - color: '#000000' - }, - { - text: 'button3', - color: '#000000' - }, - { - text: 'button4', - color: '#000000' - } - ] - }, (err, data) => { - if (err) { - console.info('showDialog err: ' + err); - return; - } - this.selectContent = this.selectContent + data.index; - console.info('showDialog success callback, click button: ' + data.index); - }); - } catch (error) { - let message = (error as BusinessError).message; - let code = (error as BusinessError).code; - console.error(`showDialog args error code is ${code}, message is ${message}`); - } - ; - }).key('UIComponentPopupPromptInterface0011_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0012.ets deleted file mode 100644 index c7434e82766afce6d80267f45788f37c51625a57..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0012.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@ohos.base'; - -@Entry -@Component -struct UIComponentPopupPromptInterface0012 { - @State selectContent: string = '不设置message'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show Dialog') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext() - .getPromptAction() - .showDialog({ - title: 'showDialog Title 不设置message', - buttons: [ - { - text: 'button1', - color: '#000000' - }, - { - text: 'button2', - color: '#000000' - }, - ] - }, (err, data) => { - if (err) { - console.info('showDialog err: ' + err); - return; - } - this.selectContent = this.selectContent + data.index; - console.info('showDialog success callback, click button: ' + data.index); - }); - } catch (error) { - let message = (error as BusinessError).message; - let code = (error as BusinessError).code; - console.error(`showDialog args error code is ${code}, message is ${message}`); - } - ; - }).key('UIComponentPopupPromptInterface0012_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002.ets deleted file mode 100644 index 3a16a0bc40d90631a826ebc71cce9b75e993fb9d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@kit.BasicServicesKit' - -@Entry -@Component -struct UIComponentPopupPromptInterface002 { - @State bottom: string = '150px' - @State currentBottom: string = '设置bottom=150px' - - build() { - Row() { - Column() { - Column() { - Button('Change bottom = 150vp').onClick(() => { - this.currentBottom = '设置bottom=150vp'; - this.bottom = '150vp'; - }).key('UIComponentPopupPromptInterface002_change_01') - Button('Change bottom = 0').onClick(() => { - this.currentBottom = '设置bottom=string0'; - this.bottom = '0'; - }).key('UIComponentPopupPromptInterface002_change_02') - Button('Change bottom = -100').onClick(() => { - this.currentBottom = '设置bottom=string-100'; - this.bottom = '-100'; - }).key('UIComponentPopupPromptInterface002_change_03') - Button('Change bottom = 150aaa').onClick(() => { - this.currentBottom = '设置bottom=string150aa'; - this.bottom = '150aaa'; - }).key('UIComponentPopupPromptInterface002_change_04') - }.layoutWeight(1).width('100%').backgroundColor(Color.Gray) - - Column() { - Text('白色块高度150px') - Button('Show Toast') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext().getPromptAction().showToast({ - message: this.currentBottom, - duration: 1000, - bottom: this.bottom - }); - } catch (error) { - let message = (error as BusinessError).message - let code = (error as BusinessError).code - console.error(`showToast args error code is ${code}, message is ${message}`); - } - ; - }).key('UIComponentPopupPromptInterface002_button_001') - }.height('150px') - } - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface003.ets deleted file mode 100644 index ec4efa9f385fb499ced0d9acf4fbad80ba8707d3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface003.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@kit.BasicServicesKit' - -@Entry -@Component -struct UIComponentPopupPromptInterface003 { - @State bottom: number = -100; - - build() { - Row() { - Column() { - Column() { - Button('Change bottom = 0').onClick(() => { - this.bottom = 0; - }).key('UIComponentPopupPromptInterface003_change_01') - }.layoutWeight(1).width('100%').backgroundColor(Color.Gray) - - Column() { - Text('白色块高度150px') - Button('Show Toast') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext().getPromptAction().showToast({ - message: '时间为默认值1.5s', - duration: 1000, - bottom: this.bottom - }); - } catch (error) { - let message = (error as BusinessError).message - let code = (error as BusinessError).code - console.error(`showToast args error code is ${code}, message is ${message}`); - } - ; - }).key('UIComponentPopupPromptInterface003_button_001') - }.height('150px') - } - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface004.ets deleted file mode 100644 index f749596c9238c95667733bba8a9773e18ecad4c7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface004.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupPromptInterface004 { - @State selectContent: string = 'select内容为:'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show ActionMenu') - .fontWeight(FontWeight.Bold) - .onClick(() => { - this.getUIContext().getPromptAction().showActionMenu({ - title: 'showActionMenu Title Info', - buttons: [ - { - text: 'item1', - color: '#666666' - }, - { - text: 'item2', - color: '#000000' - }, - ] - }) - .then(data => { - this.selectContent = this.selectContent + data.index; - }) - .catch((err:Error) => { - console.info('showActionMenu error: ' + err); - }) - }).key('UIComponentPopupPromptInterface004_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface005.ets deleted file mode 100644 index 90b9ed30f3c0f4f43ead9feaed9791315aa2b781..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface005.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UIComponentPopupPromptInterface005 { - @State selectContent: string = 'select内容为:'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show ActionMenu') - .fontWeight(FontWeight.Bold) - .onClick(() => { - this.getUIContext().getPromptAction().showActionMenu({ - buttons: [ - { - text: 'item1', - color: '#ffc8be2e' - }, - { - text: 'item2', - color: '#ffdd1e1e' - }, - ] - }) - .then(data => { - this.selectContent = this.selectContent + data.index; - }) - .catch((err:Error) => { - console.info('showActionMenu error: ' + err); - }) - }).key('UIComponentPopupPromptInterface005_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface006.ets deleted file mode 100644 index 70b7c01a5039c8728d50dea0728edd89c4eecedb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface006.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UIComponentPopupPromptInterface006 { - @State selectContent: string = 'select内容为:'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show ActionMenu') - .fontWeight(FontWeight.Bold) - .onClick(() => { - this.getUIContext().getPromptAction().showActionMenu({ - title: 'Title Info 异步返回结果', - buttons: [ - { - text: 'item1', - color: '#666666' - }, - { - text: 'item2', - color: '#000000' - }, - { - text: 'item3', - color: '#666666' - }, - { - text: 'item4', - color: '#000000' - }, - ] - }, (err, data) => { - if (err) { - console.info('showActionMenu err: ' + err); - return; - } - this.selectContent = this.selectContent + data.index; - console.info('showActionMenu success callback, click button: ' + data.index); - }) - }).key('UIComponentPopupPromptInterface006_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface007.ets deleted file mode 100644 index 866836616968db9afb288f0b27611bf9604da23a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface007.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@ohos.base'; - -@Entry -@Component -struct UIComponentPopupPromptInterface007 { - @State selectContent: string = '异步响应内容为:'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show Dialog') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext() - .getPromptAction() - .showDialog({ - title: 'Title Info', - message: 'Message Info', - buttons: [ - { - text: 'button1', - color: '#000000' - }, - { - text: 'button2', - color: '#000000' - } - ], - }) - .then(data => { - this.selectContent = this.selectContent + data.index; - console.info('showDialog success, click button: ' + data.index); - }) - .catch((err: Error) => { - console.info('showDialog error: ' + err); - }) - } catch (error) { - let message = (error as BusinessError).message; - let code = (error as BusinessError).code; - console.error(`showDialog args error code is ${code}, message is ${message}`); - }; - }).key('UIComponentPopupPromptInterface007_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface008.ets deleted file mode 100644 index 8a48e53953a220a3efa51e3cab95dc3d3bcc607b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface008.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@ohos.base'; - -@Entry -@Component -struct UIComponentPopupPromptInterface008 { - @State selectContent: string = '同步响应内容为:'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show Dialog') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext() - .getPromptAction() - .showDialog({ - title: 'showDialog Title 为string类型', - message: 'Message Info', - buttons: [ - { - text: 'button1', - color: '#000000' - }, - { - text: 'button2', - color: '#000000' - }, - { - text: 'button3', - color: '#000000' - } - ] - }, (err, data) => { - if (err) { - console.info('showDialog err: ' + err); - return; - } - this.selectContent = this.selectContent + data.index; - console.info('showDialog success callback, click button: ' + data.index); - }); - } catch (error) { - let message = (error as BusinessError).message; - let code = (error as BusinessError).code; - console.error(`showDialog args error code is ${code}, message is ${message}`); - }; - }).key('UIComponentPopupPromptInterface008_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface009.ets deleted file mode 100644 index baf2b1937220dede556933a500c4754800e476ab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface009.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { BusinessError } from '@ohos.base'; - -@Entry -@Component -struct UIComponentPopupPromptInterface009 { - @State selectContent: string = 'Message Info 为string类型'; - - build() { - Row() { - Column() { - Text(this.selectContent) - Button('Show Dialog') - .fontWeight(FontWeight.Bold) - .onClick(() => { - try { - this.getUIContext() - .getPromptAction() - .showDialog({ - message: 'Message Info 为string类型', - buttons: [ - { - text: 'button1', - color: '#000000' - }, - { - text: 'button2', - color: '#000000' - } - ] - }, (err, data) => { - if (err) { - console.info('showDialog err: ' + err); - return; - } - this.selectContent = this.selectContent + data.index; - console.info('showDialog success callback, click button: ' + data.index); - }); - } catch (error) { - let message = (error as BusinessError).message; - let code = (error as BusinessError).code; - console.error(`showDialog args error code is ${code}, message is ${message}`); - }; - }).key('UIComponentPopupPromptInterface009_button_001') - } - .width('100%') - } - .height('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070.ets deleted file mode 100644 index c8e1ada30d5dbf0ee59968e6a113acda03e74b3c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupboxCalendarpickerInterface0070 { - private selectedDate: Date = new Date('2024-11-07') - @State changeRes: string = 'CalendarPicker onChange callBack:' - - build() { - Column() { - Text('月历日期选择器').fontSize(30) - Column() { - CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) - .id('calendarpickerInterface0070') - .edgeAlign(CalendarAlign.END) - .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) - .margin(10) - .onChange((value) => { - console.info("CalendarPicker onChange:" + JSON.stringify(value)); - this.changeRes += JSON.stringify(value); - }) - }.alignItems(HorizontalAlign.Center).width("100%").height('60%') - - Text(this.changeRes).fontColor(Color.Orange).fontSize(16).margin(20).visibility(Visibility.Hidden) - }.width('100%').margin({ top: 20 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0250.ets deleted file mode 100644 index 1b355295fad19358355eed988e4f448799709e3b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0250.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupboxCalendarpickerInterface0250 { - private selectedDate: Date = new Date('2024-11-07') - @State changeRes: string = 'CalendarPicker onChange callBack:\n' - - build() { - Column() { - Text('月历日期选择器').fontSize(30) - Column() { - CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) - .id('calendarpickerInterface0250') - .edgeAlign(CalendarAlign.END) - .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) - .margin(10) - .onChange((value) => { - console.info("CalendarPicker onChange:" + JSON.stringify(value)); - this.changeRes += (value.valueOf()) + '\n'; - }) - }.alignItems(HorizontalAlign.Center).width("100%").height('60%') - - Text(this.changeRes).fontColor(Color.Orange).fontSize(16).margin(20) - }.width('100%').margin({ top: 20 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0310.ets deleted file mode 100644 index b8c460a5cdaf28555854422246060fda5a9c7edd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0310.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentPopupboxCalendarpickerInterface0310 { - @State changeRes: string = 'CalendarPicker onChange callBack:\n' - - build() { - Column() { - Text('月历日期选择器').fontSize(30) - Column() { - CalendarPicker({ hintRadius: 10 }) - .id('calendarpickerInterface0310') - .edgeAlign(CalendarAlign.END) - .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) - .margin(10) - .onChange((value) => { - console.info("CalendarPicker onChange:" + JSON.stringify(value)); - this.changeRes += (value.valueOf()) + '\n'; - }) - }.alignItems(HorizontalAlign.Center).width("100%").height('60%') - - Text(this.changeRes).fontColor(Color.Orange).fontSize(16).margin(20) - }.width('100%').margin({ top: 20 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0330.ets deleted file mode 100644 index 40e2ef399a5fd6279c7715893ee7b0d547513fe9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0330.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Settings from '../../../test/model/Settings'; - -@Entry -@Component -struct UIComponentPopupboxCalendarpickerInterface0330 { - private selectedDate: Date | null = null - @State changeRes: string = 'CalendarPicker onChange callBack:\n' - controller: CalendarController = new CalendarController(); - - build() { - Column() { - Text('月历日期选择器').fontSize(30) - Column() { - CalendarPicker({ hintRadius: 10, selected: this.selectedDate }) - .id('calendarpickerInterface0330') - .edgeAlign(CalendarAlign.END) - .textStyle({ color: "#ff182431", font: { size: 20, weight: FontWeight.Normal } }) - .margin(10) - .onChange((value) => { - console.info("CalendarPicker onChange:" + JSON.stringify(value)); - this.changeRes += (value.valueOf()) + '\n'; - }) - }.alignItems(HorizontalAlign.Center).width("100%").height('60%') - - Button('System Date') - .id('calendarpickerInterface0330_btn') - .fontColor(Color.Orange) - .fontSize(16) - .margin(20) - .onClick(() => { - let sysDate: Date = Settings.getSysDateTime(); - console.info("CalendarPicker sysDate:" + JSON.stringify(sysDate)); - this.selectedDate = sysDate; - }) - }.width('100%').margin({ top: 20 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050.ets deleted file mode 100644 index 5018e30df4205f8b2460a0c96c7769d74878346c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Settings from '../../../test/model/Settings'; - -@Entry -@Component -struct UIComponentPopupboxDatepickerDialogLanguageHabit0050 { - @State changeRes: string = 'select current date is: \n' - @State isLunar: boolean = true - private selectedDate: Date = new Date('2024-08-08') - - build() { - Column() { - DatePicker({ - start: new Date('1970-1-1'), - end: new Date('2100-1-1'), - selected: this.selectedDate - }) - .margin({ top: 30, bottom: 30 }) - .id('datepickerDialogLanguageHabit0050') - .disappearTextStyle({ color: Color.Gray, font: { size: '16fp', weight: FontWeight.Bold } }) - .textStyle({ color: '#ff182431', font: { size: '18fp', weight: FontWeight.Normal } }) - .selectedTextStyle({ color: '#ff0000FF', font: { size: '26fp', weight: FontWeight.Regular } }) - .lunar(this.isLunar) - .onDateChange((value: Date) => { - this.selectedDate = value; - console.info('select current date is: ' + value.toString()); - this.changeRes += value.toString()+'\n'; - }) - - - Button('切换公历农历').id('datepickerDialogLanguageHabit0050_btn') - .margin({ top: 30, bottom: 30 }) - .onClick(() => { - this.isLunar = !this.isLunar; - }) - - Text(this.changeRes) - .fontColor(Color.Orange) - .fontSize(16) - .margin(20) - .borderWidth(1) - .width('100%') - .textAlign(TextAlign.Start) - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210.ets deleted file mode 100644 index 5f941e2633d72123ec4afe4e3edeb4dad587f6c2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210.ets +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import Settings from '../../../test/model/Settings'; - -@Entry -@Component -struct UIComponentPopupboxDatepickerDialogLanguageHabit0210 { - selectedDate: Date = new Date("2024-1-1") - @State changeRes: string = 'select current DateTime is: \n' - @State useMilitaryTime: boolean = true - @State showTime: boolean = true - lunar:boolean = false - - build() { - Column() { - Button("DatePickerDialog").id('datepickerDialogLanguageHabit0210_btn') - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("2000-1-1"), - end: new Date("2100-12-31"), - selected: this.selectedDate, - showTime: this.showTime, - useMilitaryTime: this.useMilitaryTime, - lunar: this.lunar, - lunarSwitch: true, - disappearTextStyle: { color: Color.Pink, font: { size: '22fp', weight: FontWeight.Bold } }, - textStyle: { color: '#ff00ff00', font: { size: '18fp', weight: FontWeight.Normal } }, - selectedTextStyle: { color: '#ff182431', font: { size: '14fp', weight: FontWeight.Regular } }, - onDateAccept: (value: Date) => { - // 通过Date的setFullYear方法设置按下确定按钮时的日期,这样当弹窗再次弹出时显示选中的是上一次确定的日期 - this.selectedDate = value - console.info("DatePickerDialog:onDateAccept()" + value.toString()); - this.changeRes += 'onDateAccept: ' + value + '\n'; - }, - onCancel: () => { - console.info("DatePickerDialog:onCancel()") - }, - onDateChange: (value: Date) => { - console.info("DatePickerDialog:onDateChange()" + value.toString()) - this.changeRes += 'onDateChange: ' + value + '\n'; - }, - onDidAppear: () => { - console.info("DatePickerDialog:onDidAppear()") - }, - onDidDisappear: () => { - console.info("DatePickerDialog:onDidDisappear()") - }, - onWillAppear: () => { - console.info("DatePickerDialog:onWillAppear()") - }, - onWillDisappear: () => { - console.info("DatePickerDialog:onWillDisappear()") - } - }) - }) - Flex({ justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { - Checkbox({ name: 'cb1', group: 'checkboxGroup' }) - .id('datepickerDialogLanguageHabit0210_cb1') - .selectedColor(0x39a2db) - .shape(CheckBoxShape.CIRCLE) - .onChange((value: boolean) => { - console.info('Checkbox change is' + value) - this.useMilitaryTime = value; - }) - .mark({ - strokeColor: Color.Black, - size: 30, - strokeWidth: 3 - }) - .select(this.useMilitaryTime) - .unselectedColor(Color.Red) - .margin(20) - .height(30) - Text('24小时制').fontSize(20) - Checkbox({ name: 'cb2', group: 'checkboxGroup' }) - .id('datepickerDialogLanguageHabit0210_cb2') - .selectedColor(0x39a2db) - .shape(CheckBoxShape.CIRCLE) - .onChange((value: boolean) => { - console.info('Checkbox change is' + value) - this.showTime = value; - }) - .mark({ - strokeColor: Color.Black, - size: 30, - strokeWidth: 3 - }) - .select(this.showTime) - .unselectedColor(Color.Red) - .margin(20) - .height(30) - Text('显示时间').fontSize(20) - }.width('100%') - - Text(this.changeRes) - .fontColor(Color.Orange) - .fontSize(16) - .margin(20) - .borderWidth(1) - .width('100%') - .textAlign(TextAlign.Start) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets deleted file mode 100644 index e31d9512aecc683ecb95a3a43cc48e76ede0eaa7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * 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 UIComponentScrollSwiperAcross0010 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [0, 1, 2, 3, 4, 5, 6, 7] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - Row({space: 8}){ - Button("ChangeIndex").onClick(() => { - this.swiperController.changeIndex(5, true) - }) - .id('UIComponentScrollSwiperAcross0010_ChangeIndex') - Button("ShowNext").onClick(() => { - this.swiperController.showNext() - }) - .id('UIComponentScrollSwiperAcross0010_ShowNext') - } - .margin({ top: 30 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets deleted file mode 100644 index 9aff3705b96b36d47284b3ee99abb9584abf0e6d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * 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 UIComponentScrollSwiperAcross0030 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3, 4, 5, 6, 7, 8] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).fontSize(80) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - - Button('change4').onClick(() => { - this.swiperController.changeIndex(4) - }) - .id('UIComponentScrollSwiperAcross0030_ChangeIndex') - .margin({ top: 20 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets deleted file mode 100644 index 573732910f548f487a1d3cf0010d13baa7f4f201..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * 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 UIComponentScrollSwiperAcross0060 { - private swiperController: SwiperController = new SwiperController() - @State data: number[] = [0, 1, 2, 3, 4, 5, 6, 7] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).fontSize(80) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .displayCount(2, true) - .loop(true) - - Row({ space: 8 }) { - Button('Remove').onClick(() => { - this.data = [0, 1, 2, 3, 4] - }) - .id('UIComponentScrollSwiperAcross0060_Remove') - - Button('Change4').onClick(() => { - this.swiperController.changeIndex(4, true) - }) - .id('UIComponentScrollSwiperAcross0060_ChangeIndex') - } - .margin({ top: 20 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0010.ets deleted file mode 100644 index 7cad720109cd2976e1d7566202a5f2a12c0e5d99..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0010.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0010 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: false }, false) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0020.ets deleted file mode 100644 index 510e89eeefc48174f77f744b87d77214b82a065d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0020.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0020 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: true }, false) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0030.ets deleted file mode 100644 index c5d18b031b424ace4b525cb6c9db921cfe1ac372..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0030.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0030 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: false }, true) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0040.ets deleted file mode 100644 index 4eb85784183ce0fa057fdf77654de72c340e8b78..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0040.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0040 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: true }, true) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0610.ets deleted file mode 100644 index 2005f7daa85aa4b58754994c1b4eb64b4a6b6c0f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0610.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0610 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: false }, false) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0620.ets deleted file mode 100644 index 926ea3480cfb3a534ef53088720f22b39a732b49..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0620.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0620 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: true }, false) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0630.ets deleted file mode 100644 index eda1c7f26b3dfb44aebe4941c3d9f5e4fe758f3d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0630.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0630 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: false }, true) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0640.ets deleted file mode 100644 index 9f5bceddda47e89461348fb826d941d8da347d0f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0640.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0640 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: true }, true) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0650.ets deleted file mode 100644 index 9ba9fdb8e4606374dd88f20df069d9915b3ce928..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0650.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0650 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State topV: number = 30; - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: false }, false) - .indicator(DotIndicator.dot().top(this.topV)) - - Button('移动按钮') - .id('UIComponentScrollSwiperArrowHead0650_001') - .onClick(() => { - this.topV = 0; - }) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0660.ets deleted file mode 100644 index b5d486e1d71fabd3843b52e4beac8be26df6204a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0660.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0660 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State topV: number = 30; - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: true }, false) - .indicator(DotIndicator.dot().top(this.topV)) - - Button('移动按钮') - .id('UIComponentScrollSwiperArrowHead0660_001') - .onClick(() => { - this.topV = 0; - }) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0670.ets deleted file mode 100644 index aced9afe11e21fd22510e4c25e85965ae25f8ce0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0670.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0670 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State topV: number = 30; - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: false }, true) - .indicator(DotIndicator.dot().top(this.topV)) - - Button('移动按钮') - .id('UIComponentScrollSwiperArrowHead0670_001') - .onClick(() => { - setTimeout(()=>{ - this.topV = 0; - },1000) - }) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0680.ets deleted file mode 100644 index fba2a76e96b8040ae12e959f421471a781e62c73..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0680.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0680 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State topV: number = 30; - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .displayArrow({ isSidebarMiddle: true }, true) - .indicator(DotIndicator.dot().top(this.topV)) - - Button('移动按钮') - .id('UIComponentScrollSwiperArrowHead0680_001') - .onClick(() => { - this.topV = 0; - }) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0690.ets deleted file mode 100644 index 542c8c90f7fe90a0a19e2bd03b19f4e570fdb633..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0690.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0690 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - }.indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(50) - .itemHeight(50)) - .size({ width: 50, height: 50 }) - .displayArrow({ isSidebarMiddle: false }, false) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0700.ets deleted file mode 100644 index d6c88f86765306635700036b14e57b0a97bef62e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0700.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0700 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - }.indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(50) - .itemHeight(50)) - .size({ width: 50, height: 50 }) - .displayArrow({ isSidebarMiddle: true }, false) - - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0710.ets deleted file mode 100644 index a8024e044c350470c0f9f3d5f7c1afb3170ceb72..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0710.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0710 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - }.indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(50) - .itemHeight(50)) - .size({ width: 50, height: 50 }) - .displayArrow({ isSidebarMiddle: false }, true) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0720.ets deleted file mode 100644 index 91ecf4f5326db550e05c838240b3b0706589a11f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0720.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0720 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(50) - .itemHeight(50)) - .size({ width: 50, height: 50 }) - .displayArrow({ isSidebarMiddle: true }, true) - - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0730.ets deleted file mode 100644 index 7a2c393d37ac6dc7b6bb178ff72f77e2d239b097..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0730.ets +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0730 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State dotSize: number = 10 - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - Text("3") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("4") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - Text("5") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("6") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(this.dotSize) - .itemHeight(this.dotSize)) - .displayArrow({ isSidebarMiddle: false }, false) - - Button('导航点扩大按钮') - .id('UIComponentScrollSwiperArrowHead0730_001') - .onClick(() => { - this.dotSize = 80; - }) - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0740.ets deleted file mode 100644 index 6d23adcb51a91bdb76eddae14141d7fb71b3c326..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0740.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0740 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State dotSize: number = 10 - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(this.dotSize) - .itemHeight(this.dotSize)) - .displayArrow({ isSidebarMiddle: true }, false) - - Button('导航点扩大按钮') - .id('UIComponentScrollSwiperArrowHead0740_001') - .onClick(() => { - this.dotSize = 80; - }) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0750.ets deleted file mode 100644 index c6a27a4b3751e2d76ca22fabd83b57d8fcc2abdb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0750.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0750 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State dotSize: number = 10 - - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - Text("3") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("4") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - Text("5") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("6") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(this.dotSize) - .itemHeight(this.dotSize)) - .displayArrow({ isSidebarMiddle: false }, true) - - Button('导航点扩大按钮') - .id('UIComponentScrollSwiperArrowHead0750_001') - .onClick(() => { - this.dotSize = 80; - }) - - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0760.ets deleted file mode 100644 index d59153d01b2e599ec0f12702f563ad3bacf164f1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0760.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0760 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State dotSize: number = 10 - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .itemWidth(this.dotSize) - .itemHeight(this.dotSize)) - .displayArrow({ isSidebarMiddle: true }, true) - - Button('导航点扩大按钮') - .id('UIComponentScrollSwiperArrowHead0760_001') - .onClick(() => { - this.dotSize = 80; - }) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0770.ets deleted file mode 100644 index 1908d578ef5863a015e645829191cecca677d7c4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0770.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0770 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State leftV: number = 100 - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - Text("3") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("4") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .top(15) - .bottom(15) - .left(this.leftV) - .right(15)) - .displayArrow({ isSidebarMiddle: false }, false) - - Button('导航指示器左移按钮') - .id('UIComponentScrollSwiperArrowHead0770_001') - .onClick(() => { - this.leftV = 0; - }) - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0780.ets deleted file mode 100644 index c34d5acaf970f74725e6f86acabac448eec9588e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0780.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0780 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State leftV: number = 100 - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .top(15) - .bottom(15) - .left(this.leftV) - .right(15)) - .displayArrow({ isSidebarMiddle: true }, false) - - Button('导航指示器左移按钮') - .id('UIComponentScrollSwiperArrowHead0780_001') - .onClick(() => { - this.leftV = 0; - }) - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0790.ets deleted file mode 100644 index 2c0cfa7f9cc6766be44df4bbdd77785a669b533b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0790.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0790 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State leftV: number = 100 - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .top(15) - .bottom(15) - .left(this.leftV) - .right(15)) - .displayArrow({ isSidebarMiddle: false }, true) - - Button('导航指示器左移按钮') - .id('UIComponentScrollSwiperArrowHead0790_001') - .onClick(() => { - this.leftV = 0; - }) - - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0800.ets deleted file mode 100644 index 0c8ec669640b53ec30453908570fe271295caa04..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0800.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { SwiperModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentScrollSwiperArrowHead0800 { - private swiperController: SwiperController = new SwiperController() - @State modifier: SwiperModifier = new SwiperModifier() - @State leftV: number = 100 - - build() { - Column({ space: 5 }) { - Swiper(this.swiperController) { - Text("1") - .width('90%') - .height(160) - .backgroundColor(0xAFEEEE) - .textAlign(TextAlign.Center) - Text("2") - .width('90%') - .height(160) - .backgroundColor(Color.Pink) - .textAlign(TextAlign.Center) - } - .indicator( // 设置圆点导航点样式 - new DotIndicator() - .top(15) - .bottom(15) - .left(this.leftV) - .right(15)) - .displayArrow({ isSidebarMiddle: true }, true) - Button('导航指示器左移按钮') - .id('UIComponentScrollSwiperArrowHead0800_001') - .onClick(() => { - this.leftV = 0; - }) - }.width('100%') - .margin({ top: 5 }) - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets deleted file mode 100644 index a2f7f529303afcf24428b490fdec8ccbc8d6415f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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 UIComponentScrollSwiperDisplaycount0140 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - Row({space: 8}){ - Button("ShowPrevious").onClick(() => { - this.swiperController.showPrevious() - }) - .id('UIComponentScrollSwiperDisplaycount0140_ShowPrevious') - - Button("ShowNext").onClick(() => { - this.swiperController.showNext() - }) - .id('UIComponentScrollSwiperDisplaycount0130_ShowNext') - } - .margin({ top: 30 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0040.ets deleted file mode 100644 index 1c355b0f5dd119218d5c29e2056f66b7829b2be9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0040.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface0040 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - .width('90%') - .height(300) - }, (item: string) => item) - } - .displayArrow({ arrowColor: 'abcd' }) - }.margin(5) - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets deleted file mode 100644 index b6453c037b2651f8b159286d8827c851f2c1d676..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * 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. - */ -class MyDataSource0820 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 UIComponentScrollSwiperInterface0820 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0820 = new MyDataSource0820([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource0820(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .indicatorStyle({ - color: '' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets deleted file mode 100644 index ed023a05d2f3029b7c0ba66244aea4de717a4d5e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource0830 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 UIComponentScrollSwiperInterface0830 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0830 = new MyDataSource0830([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource0830(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - // .width(250) - // .height(250) - .indicatorStyle({ - selectedColor: '' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets deleted file mode 100644 index 0b906418cdcdb68188544560af0d492b161e6d4d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource0890 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 UIComponentScrollSwiperInterface0890 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0890 = new MyDataSource0890([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource0890(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .bottom(5) - .bottom(10) - .bottom(50) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets deleted file mode 100644 index 41785120074dad1b9a6e694d7cc1f69048d63566..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource0960 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 UIComponentScrollSwiperInterface0960 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0960 = new MyDataSource0960([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource0960(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .left(5) - .left(10) - .left(50) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets deleted file mode 100644 index d5ff8217dea0ada69db1bd6ec4e9fe045bd7db99..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource0980 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 UIComponentScrollSwiperInterface0980 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0980 = new MyDataSource0980([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource0980(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .right(5) - .right(10) - .right(50) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets deleted file mode 100644 index 70fa20d68964335a0c485aa218c703742ca3549a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource0990 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 UIComponentScrollSwiperInterface0990 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0990 = new MyDataSource0990([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource0990(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .top(5) - .top(10) - .top(50) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1010.ets deleted file mode 100644 index 5f2ae4ac65f4c56d8516a0a97128e0991d1340d7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1010.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1010 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1030.ets deleted file mode 100644 index 5d0ffef5d408f7dae58168b103bf53534e0adb84..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1030.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1030 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1040.ets deleted file mode 100644 index dc2d20916edabfd8bd096b817abef61f71fdd24e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1040.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1040 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1050.ets deleted file mode 100644 index e295139b48155e54457812f4eca2279cc10bade2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1050.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1050 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1180.ets deleted file mode 100644 index e4c3428e9676421a379c2cdcb6964ae1a6442aa4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1180.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1180 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: number = -100; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - DotIndicator.dot() - .bottom(this.size_10vp) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1190.ets deleted file mode 100644 index a4f71d4ef9e10b838f59d3d75e83d95e7eb96ac0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1190.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1190 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: number = 0; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - DotIndicator.dot() - .bottom(this.size_10vp) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1210.ets deleted file mode 100644 index 4808b7f4ab5e417c9e9111d01c9e95c7312d61b9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1210.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1210 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp'); - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - DotIndicator.dot() - .bottom(this.size_10vp) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1220.ets deleted file mode 100644 index 0bd493ce867921e4176adbf9b243aa0c8bf93ae7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1220.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1220 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: string = '-100'; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - DotIndicator.dot() - .bottom(this.size_10vp) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1230.ets deleted file mode 100644 index b69553fac6c5ef45d1a8aa02d306c407cfeb215d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1230.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1230 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: string = '0'; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - DotIndicator.dot() - .bottom(this.size_10vp) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1260.ets deleted file mode 100644 index 369a8b3e3b3532e69c67e7350ddfa3bbd48bb47c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1260.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1260 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: string = '50%'; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - DotIndicator.dot() - .bottom(this.size_10vp) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1270.ets deleted file mode 100644 index d9b16aa22d3f9dc89bd4f479030a65c061fe737e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1270.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1270 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: string = 'abc'; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - DotIndicator.dot() - .bottom(this.size_10vp) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1660.ets deleted file mode 100644 index 82611cd970fe7e4f80134c6f2fde9d44d1f0cbdf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1660.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1660 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator(new DigitIndicator()) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1670.ets deleted file mode 100644 index 191f392bc71ec1e950cc2c01607c997de4b4fad5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1670.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1670 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator(new DigitIndicator) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1680.ets deleted file mode 100644 index 06ede365f95d69df4b99e6472dd9537e990c43d7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1680.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface1680 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator(new DigitIndicator()) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1710.ets deleted file mode 100644 index 4fa93472512642a632cf091fff70d66af54b21ae..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1710.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface1710 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .digitFont({ size: 14, weight: FontWeight.Normal }) - .digitFont({ size: 20, weight: FontWeight.Bold }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1780.ets deleted file mode 100644 index 8912cbaf87a2c32036274569cfc3c3f92ae93727..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1780.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface1780 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State font_abc: string = 'abc' - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .digitFont({ size: 14, family: this.font_abc }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1860.ets deleted file mode 100644 index bbcf51f28adb739aa9dc53851b3822c1bf0bd8d6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1860.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface1860 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State font_abc: string = 'abc' - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .digitFont({ size: 14, weight: this.font_abc }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1870.ets deleted file mode 100644 index e77896f143b02babbec658c746d6e49bbeb83fa7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1870.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface1870 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .digitFont({ size: 14, weight: FontWeight.Normal }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1890.ets deleted file mode 100644 index edc2e20d5a401cc2936843c643599acaafbf176e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1890.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface1890 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .digitFont({ size: 14, weight: FontWeight.Normal }) - .selectedDigitFont({ weight: FontWeight.Bold }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1900.ets deleted file mode 100644 index d8b8bdc46b8669ea1fc33342f442b209b87471f4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1900.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface1900 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .digitFont({ size: 14, weight: FontWeight.Normal }) - .selectedDigitFont({ weight: FontWeight.Bold }) - .selectedDigitFont({ size: 20, weight: FontWeight.Normal }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1970.ets deleted file mode 100644 index 2338589960e1883969be1003cbd118db64fa48fe..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1970.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface1970 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State font_abc: string = 'abc' - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .selectedDigitFont({ family: this.font_abc }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2050.ets deleted file mode 100644 index ba178dbedd8f4e5774b99e52f8c8ae53f688798a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2050.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface2050 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State font_abc: string = 'abc' - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .selectedDigitFont({ weight: this.font_abc }) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2060.ets deleted file mode 100644 index 7d036bb821472fe12e35fdc39a45dc71252191f1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2060.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface2060 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .fontColor(Color.Blue) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2110.ets deleted file mode 100644 index 1ba7acdbc5fd9f8fc4af49ccf873fe5b39a2eceb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2110.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface2110 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .fontColor(Color.Blue) - .fontColor(Color.Yellow) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2160.ets deleted file mode 100644 index 8de19a38e69914229aaf2d81e570b7384d03e374..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2160.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface2160 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DigitIndicator() - .selectedFontColor(Color.Blue) - .selectedFontColor(Color.Yellow) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets deleted file mode 100644 index 9a58bb458ea0bf8187e75fb0bb0f42e5b9baa921..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource2180 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 UIComponentScrollSwiperInterface2180 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2180 = new MyDataSource2180([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2180(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator(DotIndicator.dot().color('')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets deleted file mode 100644 index 975b94e9e65ef3b41b336c80e5a08ae7778447cc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource2190 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 UIComponentScrollSwiperInterface2190 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2190 = new MyDataSource2190([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2190(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator(DotIndicator.dot().mask(false)) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets deleted file mode 100644 index f94360a8d4f0f5c4a6c3ad6c165a69f62de2a1da..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource2200 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 UIComponentScrollSwiperInterface2200 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2200 = new MyDataSource2200([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2200(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator(DotIndicator.dot().selectedColor('')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets deleted file mode 100644 index e9712267ee27dab37a9eb1573a849c6db9735d7d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource2210 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 UIComponentScrollSwiperInterface2210 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2210 = new MyDataSource2210([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2210(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator(DotIndicator.dot().itemHeight('')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets deleted file mode 100644 index 2c7058c5c164d4326b81935dfbb64d02f3629700..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource2230 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 UIComponentScrollSwiperInterface2230 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2230 = new MyDataSource2230([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2230(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .itemHeight(6) - .itemHeight(20) - .itemHeight(10) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets deleted file mode 100644 index 88195bc511d7f94ccdc4fe007ea7985aa3f4cf62..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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. - */ -class MyDataSource2330 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 UIComponentScrollSwiperInterface2330 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2330 = new MyDataSource2330([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2330(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .itemWidth('') - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets deleted file mode 100644 index d3b880ae1a8f7e6cdffca6958371375f6fa5b596..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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. - */ -class MyDataSource2350 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 UIComponentScrollSwiperInterface2350 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2350 = new MyDataSource2350([]) - @State size_10vp: Resource = $r('app.string.size_10vp'); - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2350(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .itemWidth(this.size_10vp) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets deleted file mode 100644 index 741ccd0beaefb614e02b1c0001378bd478cb9c08..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource2340 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 UIComponentScrollSwiperInterface2340 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2340 = new MyDataSource2340([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2340(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .itemWidth(6) - .itemWidth(10) - .itemWidth(15) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370.ets deleted file mode 100644 index cb196f8040538bfad2af11d74979f26e73254367..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { Font } from '@ohos.arkui.UIContext' - -@Entry -@Component -struct UIComponentScrollSwiperInterface2370 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicator( - new DotIndicator() - .itemWidth(0) - ) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets deleted file mode 100644 index 36fbedd9e6f23168e041f8e485e5444cfd2b37ac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource2460 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 UIComponentScrollSwiperInterface2460 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2460 = new MyDataSource2460([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2460(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .selectedItemHeight(6) - .selectedItemHeight(10) - .selectedItemHeight(15) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets deleted file mode 100644 index 9ec4b05b005dc4253f2ced1eee43c37aabc2761f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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. - */ -class MyDataSource2560 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 UIComponentScrollSwiperInterface2560 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2560 = new MyDataSource2560([]) - @State size_10vp: Resource = $r('app.string.size_10vp'); - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2560(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .selectedItemHeight(this.size_10vp) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets deleted file mode 100644 index 69c6e1b96abe877f2f0b2710e5c89e38263a380a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource2570 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 UIComponentScrollSwiperInterface2570 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2570 = new MyDataSource2570([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2570(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .selectedItemWidth(6) - .selectedItemWidth(10) - .selectedItemWidth(15) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets deleted file mode 100644 index 677562985bdde87e3b4f0ccd3386a7cf7c4ffb89..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource2720 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 UIComponentScrollSwiperInterface2720 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2720 = new MyDataSource2720([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2720(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - // .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .color(Color.Transparent) - .color(Color.Pink) - .color(Color.Red) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets deleted file mode 100644 index 96bc460e2cf32e7ada48f78c6b01e21b676ccf1a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ -class MyDataSource2790 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 UIComponentScrollSwiperInterface2790 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2790 = new MyDataSource2790([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource2790(list) - } - - build() { - Column() { - - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - // .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .indicator( - DotIndicator.dot() - .selectedColor(Color.Transparent) - .selectedColor(Color.Pink) - .selectedColor(Color.Red) - ) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2910.ets deleted file mode 100644 index c8d10db94bd61103281b55888f5d12e150bbc5de..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2910.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface2910 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: string = 'abc'; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ - selectedColor: '#fc0303' - }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3030.ets deleted file mode 100644 index 6fc345e02e8af29d54e052bce9bc1c5b4c8df441..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3030.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3030 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ bottom: this.size_10vp }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3040.ets deleted file mode 100644 index 933a824848a9229d575c89de6a906f78f77a8c91..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3040.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3040 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ left: this.size_10vp }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3050.ets deleted file mode 100644 index 6b29616b9c694639fb9af7cfb8f6664035aec59f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3050.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3050 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ right: this.size_10vp }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3060.ets deleted file mode 100644 index fcb7df445e76b0233cbc8329806e87e59ee9fa93..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3060.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3060 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ size: this.size_10vp }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3070.ets deleted file mode 100644 index d1e74d1b881a0c98607ceb22025042b78f228843..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3070.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3070 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ top: this.size_10vp }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3120.ets deleted file mode 100644 index 4a201c96c48b96488828c593dd83180c970750da..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3120.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3120 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State size_10vp: Resource = $r('app.string.size_10vp') - @State rightV: string = '10px'; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ bottom: this.size_10vp, right: this.rightV }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3130.ets deleted file mode 100644 index b23929825bc06e6967968d6b53cb2c872ec2d983..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3130.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3130 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State sizeV: number = 10; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ size: this.sizeV }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3140.ets deleted file mode 100644 index 4d1ff0395297c17ffeefe2974d005ccb0762283b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3140.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperInterface3140 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - @State sizeV: string = '10%'; - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Text(item.toString()) - .width('80%') - .height(100) - .backgroundColor(Color.Yellow) - .margin('10%') - .textAlign(TextAlign.Center) - } - }, (item: string) => item) - } - .indicatorStyle({ size: this.sizeV }) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets deleted file mode 100644 index 76f68d4257b3297f92bdd418b34db5cc351b9039..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource3160 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 UIComponentScrollSwiperInterface3160 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3160 = new MyDataSource3160([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3160(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).height(80).width(80) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .indicatorStyle({ - size: 'abcd' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets deleted file mode 100644 index b1b2fb9ae7aaf7672b3e47bad77e3dab7967372f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource3300 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 UIComponentScrollSwiperInterface3300 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3300 = new MyDataSource3300([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3300(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).height(80).width(80) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .indicatorStyle({ - left: -100 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets deleted file mode 100644 index bcdaa70c79157f0aa5bed67382f2bc67943d640e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource3310 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 UIComponentScrollSwiperInterface3310 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3310 = new MyDataSource3310([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3310(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).height(80).width(80) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .indicatorStyle({ - left: 0 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets deleted file mode 100644 index 3be10976214507808894bd3fff42e6ecf09dac31..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource3330 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 UIComponentScrollSwiperInterface3330 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3330 = new MyDataSource3330([]) - @State resource: ResourceStr = '50' - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3330(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).height(80).width(80) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .indicatorStyle({ - left: this.resource - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets deleted file mode 100644 index 8cd9cf67b7561f3fbc6251da383c087d3c30d332..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource3340 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 UIComponentScrollSwiperInterface3340 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3340 = new MyDataSource3340([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3340(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).height(80).width(80) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .indicatorStyle({ - left: '-100' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets deleted file mode 100644 index 538c00b980f9458f124b2be00db704b011e3246e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350.ets +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -class MyDataSource3350 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 UIComponentScrollSwiperInterface3350 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3350 = new MyDataSource3350([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3350(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).height(80).width(80).backgroundColor(Color.Red) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .indicatorStyle({ - left: '0' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets deleted file mode 100644 index 223417106e7c6922a61936cdd544b8cf9271db93..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3380 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 UIComponentScrollSwiperInterface3380 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3380 = new MyDataSource3380([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3380(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(100) - .height(100) - .backgroundColor(Color.Red) - .indicatorStyle({ - left: '50%' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets deleted file mode 100644 index e4fe1d8902d90efcedb3dba923ea4b78c2b58d50..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3390 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 UIComponentScrollSwiperInterface3390 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3390 = new MyDataSource3390([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3390(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .width(100) - .height(100) - }, (item: string) => item) - } - .backgroundColor(Color.Red) - .indicatorStyle({ - left: 'abc' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets deleted file mode 100644 index dd170251cbdc100e2585bf8c233207deab88a4ac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3430 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 UIComponentScrollSwiperInterface3430 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3430 = new MyDataSource3430([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3430(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(150) - .backgroundColor(Color.Red) - .indicatorStyle({ - right: 0 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets deleted file mode 100644 index 474cb2b10fec38f4d80785d6870087156a41baed..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ -class MyDataSource3450 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 UIComponentScrollSwiperInterface3450 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3450 = new MyDataSource3450([]) - @State resource: ResourceStr = '50' - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3450(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(150) - .backgroundColor(Color.Red) - .indicatorStyle({ - right: this.resource - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets deleted file mode 100644 index f2e938a2240de893ec66a8d1aca20d56b187aa84..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3460 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 UIComponentScrollSwiperInterface3460 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3460 = new MyDataSource3460([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3460(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(150) - .backgroundColor(Color.Red) - .indicatorStyle({ - right: '-100' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets deleted file mode 100644 index 29ab6ff2bcba59ee3895e8e12b2713c05608b43b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3500 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 UIComponentScrollSwiperInterface3500 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3500 = new MyDataSource3500([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3500(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(100) - .height(150) - .backgroundColor(Color.Red) - .indicatorStyle({ - right: '50%' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets deleted file mode 100644 index bceebb024b4707507acb02b2e32a1f682605243e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3510 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 UIComponentScrollSwiperInterface3510 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3510 = new MyDataSource3510([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3510(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .width(100) - .height(100) - }, (item: string) => item) - } - .backgroundColor(Color.Red) - .indicatorStyle({ - right: 'abc' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets deleted file mode 100644 index 3f30130dd22b0d8b6d744f589a91d2f0cb43d1fd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3520 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 UIComponentScrollSwiperInterface3520 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3520 = new MyDataSource3520([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3520(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Red) - .indicatorStyle({ - top: -100 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets deleted file mode 100644 index 1549e62d47a72a7d0d827a5e06c18ec3fc0c66b5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3530 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 UIComponentScrollSwiperInterface3530 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3530 = new MyDataSource3530([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3530(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - .indicatorStyle({ - top: 0 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets deleted file mode 100644 index 90afe05eb1eea73548c61ea509f8c5706f43c091..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ -class MyDataSource3550 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 UIComponentScrollSwiperInterface3550 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3550 = new MyDataSource3550([]) - @State resource:ResourceStr = '50' - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3550(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - .indicatorStyle({ - top: this.resource - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets deleted file mode 100644 index b3c8c887777029038d37cd4dcacaeffd42d9400f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3560 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 UIComponentScrollSwiperInterface3560 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3560 = new MyDataSource3560([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3560(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - .indicatorStyle({ - top: '-100' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets deleted file mode 100644 index bbfa9d91f464d2d3a0f25e913261b21c9aa4af2d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3570 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 UIComponentScrollSwiperInterface3570 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3570 = new MyDataSource3570([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3570(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - .indicatorStyle({ - top: '0' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets deleted file mode 100644 index be48ec33df29746c9fc8e7aefdbf510edfbd9d13..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3600 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 UIComponentScrollSwiperInterface3600 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3600 = new MyDataSource3600([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3600(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - .indicatorStyle({ - top: '50%' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets deleted file mode 100644 index 5810f69044afe316b9306879dd2f6de5be51fe5f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource3610 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 UIComponentScrollSwiperInterface3610 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3610 = new MyDataSource3610([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3610(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - .indicatorStyle({ - top: 'abc' - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets deleted file mode 100644 index 56142636dbade5c335d05e20c1bd6e1cadd081a4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ -class MyDataSource3700 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 UIComponentScrollSwiperInterface3700 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource3700 = new MyDataSource3700([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource3700(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - .indicator(DotIndicator.dot().top(50)) - .indicatorStyle({ - top: 0 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets deleted file mode 100644 index 11ab8441d5d967a55eb9df1f00eeb07aa0d27fc1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * 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 UIComponentScrollSwiperInterface3780 { - private data: number[] = [1, 2, 3] - - - build() { - Column() { - Swiper() { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets deleted file mode 100644 index a4eb325b4270db5eb207d1d89e88ce0180d8cf4d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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 UIComponentScrollSwiperInterface3790 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(150) - .height(150) - .backgroundColor(Color.Blue) - - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(150) - .height(150) - .backgroundColor(Color.Red) - .margin({ top: 10 }) - - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(150) - .height(150) - .backgroundColor(Color.Yellow) - .margin({ top: 10 }) - - Button("ShowNext").onClick(() => { - this.swiperController.showNext() - }) - .id('UIComponentScrollSwiperInterface3790_ShowNext') - .margin({ top: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets deleted file mode 100644 index ef3ee1974039b756db81041b9b592a84933bfaea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 UIComponentScrollSwiperInterface3810 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).fontSize(80) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - - Button("ShowNext").onClick(() => { - this.swiperController.showNext() - }) - .id('UIComponentScrollSwiperInterface3810_ShowNext') - .margin({ top: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets deleted file mode 100644 index c9241c56879ccb61c5b95d5c565eb7ad528e584c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 UIComponentScrollSwiperInterface3820 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()).fontSize(80) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .backgroundColor(Color.Yellow) - - Button("ShowPrevious").onClick(() => { - this.swiperController.showPrevious() - }) - .id('UIComponentScrollSwiperInterface3820_Previous') - .margin({ top: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..eaf43b5cebf21a2a6cd64c01b8c0d685788c21d7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0430.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 UIComponentScrollSwiperInterfacemix0430 { + @State oneTextInputColor: Color = Color.Gray; + + build() { + Row() { + Column() { + TextInput({ placeholder: 'enter your password...' }) + .type(InputType.Password) + .id('TextInput0430') + .width(350) + .height(80) + .passwordIcon({ onIconSrc: "offIcon.png", offIconSrc: "onIcon.png" }) + .backgroundColor(this.oneTextInputColor) + .defaultFocus(true) + .onFocus(() => { + this.oneTextInputColor = Color.Green; + }) + .onBlur(() => { + this.oneTextInputColor = Color.Gray; + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..779b6e4427eef5b4d578db6a0a65147b871b1fbd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0440.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 UIComponentScrollSwiperInterfacemix0440 { + @State TextInputColor: Color = Color.Gray; + + build() { + Row() { + Column() { + TextInput({ placeholder: 'enter your password...' }) + .type(InputType.NUMBER_PASSWORD) + .id('TextInput0440') + .width(350) + .height(80) + .passwordIcon({ onIconSrc: "offIcon.png", offIconSrc: "onIcon.png" }) + .backgroundColor(this.TextInputColor) + .defaultFocus(true) + .onFocus(() => { + this.TextInputColor = Color.Green; + }) + .onBlur(() => { + this.TextInputColor = Color.Gray; + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..354326c26b5c73cc08d48bad0b8431391465212e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0450.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 { uiAppearance } from '@kit.ArkUI' + + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix0450 { + @State TextInputColor: Color = Color.Gray; + + build() { + Row() { + Column() { + TextInput({ placeholder: 'enter your password...' }) + .type(InputType.SCREEN_LOCK_PASSWORD) + .id('TextInput0450') + .width(350) + .height(80) + .passwordIcon({ onIconSrc: "offIcon.png", offIconSrc: "onIcon.png" }) + .backgroundColor(this.TextInputColor) + .defaultFocus(true) + .onFocus(() => { + this.TextInputColor = Color.Green; + }) + .onBlur(() => { + this.TextInputColor = Color.Gray; + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..e8a43c33bf0892c73349c41ede14929beb0ace69 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0460.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 UIComponentScrollSwiperInterfacemix0460 { + @State TextInputColor: Color = Color.Gray; + + build() { + Row() { + Column() { + TextInput({ placeholder: 'enter your password...' }) + .type(InputType.NEW_PASSWORD) + .id('TextInput0460') + .width(350) + .height(80) + .passwordIcon({ onIconSrc: "offIcon.png", offIconSrc: "onIcon.png" }) + .backgroundColor(this.TextInputColor) + .defaultFocus(true) + .onFocus(() => { + this.TextInputColor = Color.Green; + }) + .onBlur(() => { + this.TextInputColor = Color.Gray; + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..7bf6863c49fc9ddea24f39905c8ef826645a1780 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0470.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 UIComponentScrollSwiperInterfacemix0470 { + @State TextInputColor: Color = Color.Gray; + + build() { + Row() { + Column() { + TextInput({ placeholder: 'enter your password...' }) + .id('TextInput0470') + .cancelButton({ + style: CancelButtonStyle.CONSTANT, + icon: { + size: 45, + src: "offIcon.png", + color: Color.Blue + } + }) + .width(350) + .height(80) + .passwordIcon({ onIconSrc: "offIcon.png", offIconSrc: "onIcon.png" }) + .backgroundColor(this.TextInputColor) + .defaultFocus(true) + .onFocus(() => { + this.TextInputColor = Color.Green; + }) + .onBlur(() => { + this.TextInputColor = Color.Gray; + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0890.ets new file mode 100644 index 0000000000000000000000000000000000000000..e8d17b995c2e144821e30014bb0485392ac997db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0890.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 UIComponentScrollSwiperInterfacemix0890 { + + build() { + Row() { + Column() { + TextInput() + .id('TextInput0890') + .width(500) + .cancelButton({ + style: CancelButtonStyle.CONSTANT + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1120.ets new file mode 100644 index 0000000000000000000000000000000000000000..4bcb11b737ac689c298df0edb9d04c16c36234e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1120.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 UIComponentScrollSwiperInterfacemix1120 { + @State message: string = + '12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890' + + build() { + Row() { + Column() { + TextInput({ text: this.message }) + .width(380) + .height(300) + .id('textinput1120') + .maxLength(110) + .showCounter(true, { thresholdPercentage: 100, highlightBorder: true }) + .defaultFocus(true) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1140.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb6e3461a7bbcfd3389278e12957081803c31e4a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1140.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 UIComponentScrollSwiperInterfacemix1140 { + + build() { + Row() { + Column() { + TextInput({ placeholder: 'enter your password...' }) + .id('TextInput1140') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1150.ets new file mode 100644 index 0000000000000000000000000000000000000000..7f63de0c0a712e70d71e253afbe21266685b6e7a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1150.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 UIComponentScrollSwiperInterfacemix1150 { + @State TextInputColor: Color = Color.Gray; + + build() { + Row() { + Column() { + TextInput() + .width(380) + .height(60) + .id('TextInput1150') + .defaultFocus(true) + .backgroundColor(this.TextInputColor) + .onFocus(() => { + this.TextInputColor = Color.Green; + }) + .onBlur(() => { + this.TextInputColor = Color.Gray; + }) + .cancelButton({ + style: CancelButtonStyle.CONSTANT, + icon: { + size: 45, + src: "icon.png", + color: Color.Blue + } + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1160.ets new file mode 100644 index 0000000000000000000000000000000000000000..b3c5ba2e769e3794996ce23b8e1807630cd13bcc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1160.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 UIComponentScrollSwiperInterfacemix1160 { + @State TextInputColor: Color = Color.Gray; + + build() { + Row() { + Column() { + TextInput() + .width(380) + .height(60) + .id('TextInput1160') + .defaultFocus(false) + .backgroundColor(this.TextInputColor) + .focusable(false) + .onFocus(() => { + this.TextInputColor = Color.Green; + }) + .onBlur(() => { + this.TextInputColor = Color.Gray; + }) + .cancelButton({ + style: CancelButtonStyle.CONSTANT, + icon: { + size: 45, + src: "icon.png", + color: Color.Blue + } + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1170.ets new file mode 100644 index 0000000000000000000000000000000000000000..c8556515125c8bc5f0f717fc339e31f5ba4fa56d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1170.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 UIComponentScrollSwiperInterfacemix1170 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + TextInput({ text: 'hello word drow olleh' }) + .type(InputType.Normal) + .width(380) + .height(60) + .inputFilter('hello word') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1180.ets new file mode 100644 index 0000000000000000000000000000000000000000..1776d70a585545ab5fe1b1d618ba6bfe80bc4d8d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1180.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { uiAppearance } from '@kit.ArkUI' + + +@Entry +@Component +struct UIComponentScrollSwiperInterfacemix1180 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + TextInput({ text: 'hello word drow olleh' }) + .type(InputType.Normal) + .width(380) + .height(60) + .inputFilter('hello') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1190.ets new file mode 100644 index 0000000000000000000000000000000000000000..7a9b38df4fc51452a8b7d08d6a8507d251b93a7a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1190.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 UIComponentScrollSwiperInterfacemix1190 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + TextInput({ text: 'hello word 大家好 大家 drow olleh' }) + .type(InputType.Normal) + .width(380) + .height(60) + .inputFilter('大家好') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1200.ets new file mode 100644 index 0000000000000000000000000000000000000000..ecfa5ae092603cb3f1b4e93e98ed0b4820f6bd79 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1200.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 UIComponentScrollSwiperInterfacemix1200 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + TextInput({ text: '大家好 大家好 你好' }) + .type(InputType.Normal) + .width(380) + .height(60) + .inputFilter('大家好') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1220.ets new file mode 100644 index 0000000000000000000000000000000000000000..7a5fa08a150fe4551dec9fa692cc00d4721801c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1220.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 UIComponentScrollSwiperInterfacemix1220 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + TextInput({ text: '大家好_hello, 大家 drow olleh' }) + .type(InputType.Normal) + .width(380) + .height(60) + .inputFilter('大家好_hello') + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/IDataSource.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/IDataSource.ets deleted file mode 100644 index 792d816932aedc1eae06eefc2f08cc595c2629be..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/IDataSource.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -export 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() { - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0010.ets deleted file mode 100644 index 97b6e35205b53d9696108c9fb04acf16ff2a1025..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0010.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0010 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0020.ets deleted file mode 100644 index 778a9be51e442820f673318bde8c6846f782a2b0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0020.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0020 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0030.ets deleted file mode 100644 index 4020402938cb0bc55e4b986f170ce088bfcbeb28..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0030.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0030 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0040.ets deleted file mode 100644 index d0576ac4090bb3c54e0e0007aa0ad058ed44160e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0040.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0040 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0050.ets deleted file mode 100644 index f6a87dc7b03e6ef5ed82caed579e198b8a9820d6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0050.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0050 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0060.ets deleted file mode 100644 index 4b76dd88c3acc2eb447d55f07fc02867f769d614..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0060.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0060 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0070.ets deleted file mode 100644 index 9ef540e0e1ce840c1dfdd6f32eb66200a419e2c7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0070.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0070 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0080.ets deleted file mode 100644 index d196ab9b841605965092bea712b7a70704d503ac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0080.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0080 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0090.ets deleted file mode 100644 index dc6c0ec5d7d03e799c5c7f2b39a84de453d17a15..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0090.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0090 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 4; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0100.ets deleted file mode 100644 index 767436190c0acf661b910701fb77c9f30c2dac03..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0100.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0100 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0110.ets deleted file mode 100644 index 9d9ff63565e83664d9b508666f91fdc36ec9630c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0110.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0110 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .vertical(true) - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0120.ets deleted file mode 100644 index f453f2e3bb828f915281a6a1514948b2fbc85923..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0120.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0120 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0130.ets deleted file mode 100644 index 6bae85b7a5e50f5cd1d95cbccd8d46f1ddb6ca15..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0130.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0130 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0140.ets deleted file mode 100644 index 38bfa5b4a77bf02bf2a81c826420ae26ad779bfd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0140.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0140 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0150.ets deleted file mode 100644 index b85421ab5207de05b4642002c85281d7ead7ef9d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0150.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0150 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0160.ets deleted file mode 100644 index bf0055a63fef3fa16f7cdda4cdb25f1657fe2022..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0160.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0160 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0170.ets deleted file mode 100644 index 125487bb67dcf915256d12b35184f4045d558954..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0170.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0170 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0180.ets deleted file mode 100644 index 86a31be2b3fd66b08915a6df9cf03300a990afd5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0180.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0180 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0190.ets deleted file mode 100644 index 70541f081556ef8ff928ff0b272da8c0ca46fb8f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0190.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0190 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0200.ets deleted file mode 100644 index 7654bfd364227348197eb3a8dcc98ba50a580cb9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0200.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0200 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0210.ets deleted file mode 100644 index 959fcbb0fba273428011fbbd46d887c5ef8e9ba7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0210.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0210 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0220.ets deleted file mode 100644 index 968780f4772305cd262414878dd6803fa30f4794..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0220.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0220 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 4; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0230.ets deleted file mode 100644 index 08908522aafa97ef3d9ce7acfbd9ed6089c2ed61..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0230.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0230 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .border({ width: 10 }) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0240.ets deleted file mode 100644 index 6c0ae8cffcc659912cfaa23c32a0eceed41776f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0240.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0240 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0250.ets deleted file mode 100644 index 711ad160ed232667639ed9be768f2e19ceebd0af..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0250.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0250 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .vertical(true) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0260.ets deleted file mode 100644 index db45b48e3fae6e8841b756454e253784ba0a6e40..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0260.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0260 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0270.ets deleted file mode 100644 index cb7635a07e2b47db472368b79fc096b1b1879844..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0270.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0270 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0280.ets deleted file mode 100644 index 9055559bebb55e2c599635acb2d50b92af70ce1b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0280.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0280 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0290.ets deleted file mode 100644 index df847e8f67e7fa6c23e3dd851c970dfdbac36ac4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0290.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0290 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0300.ets deleted file mode 100644 index 1c374469be750af8516642bf337d3e4fcb063b35..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0300.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0300 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0310.ets deleted file mode 100644 index bf141053d7bc63e72d5dbb038713acb4bbe85a56..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0310.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0310 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0320.ets deleted file mode 100644 index f619a9bd5e585d7ea2d378bffc2a240ede994457..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0320.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0320 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0330.ets deleted file mode 100644 index 1a9e09caa9427065a9e82a8221596d74ae4abcf2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0330.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0330 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0340.ets deleted file mode 100644 index 2be008d0eb3428d25c90c3ca9c30a24250a3c56c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0340.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0340 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0350.ets deleted file mode 100644 index 6afbb4586cd1a23b90956a3bd1558e3beccd9f4c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0350.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0350 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .vertical(true) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0360.ets deleted file mode 100644 index c20ae08ba468abcf93febee59fbfb826b4400983..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0360.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0360 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0370.ets deleted file mode 100644 index d8689b4ea729055fdb114a1d87931ca6bf6bae31..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0370.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0370 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0380.ets deleted file mode 100644 index a59be042a729b915557838759e51808e5f6d2f2e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0380.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0380 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0390.ets deleted file mode 100644 index 0623a1f38392f9c835a4da243ec88908d455f26c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0390.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0390 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0400.ets deleted file mode 100644 index 6feb0090fe85fcb80eef27cf1e17e19dceb93545..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0400.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0400 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0410.ets deleted file mode 100644 index 00a9523f7652e1f8e3ac4133b6ce73d42a0f96b3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0410.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0410 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0420.ets deleted file mode 100644 index ccd5646781bd7b80c36df1fa00d99d6101ac6217..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0420.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0420 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0430.ets deleted file mode 100644 index ae56a48f415ec8d959a0041469b4542e5a94b8a5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0430.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0430 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .vertical(true) - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0440.ets deleted file mode 100644 index f4cd61c1ce16615e7dac3495de1ef53f09fe01a9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0440.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0440 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0450.ets deleted file mode 100644 index a172cba66b65c30d00ee067ab2af7e6888a106ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0450.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0450 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0460.ets deleted file mode 100644 index 597af9a440362d7c5a58826ca2ba5fe4358901f0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0460.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0460 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0470.ets deleted file mode 100644 index 420d54840459d814da61596ff979cf91c5218818..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0470.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0470 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0480.ets deleted file mode 100644 index aac13ff232a4ccf16740c69fdfb04e73f17c1525..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0480.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0480 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0490.ets deleted file mode 100644 index 69411a739d964db1d4b3783311f31e992edde58b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0490.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0490 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0500.ets deleted file mode 100644 index 345ccb65372193c722f99a3046f34a668c6f13f2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0500.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0500 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0510.ets deleted file mode 100644 index 7d41a60e8078d974d873651d3fe3b9554b8eb946..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0510.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0510 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Text(item.toString()) - - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0520.ets deleted file mode 100644 index a956ec5a47835294069ef28a835af1d54e0d4060..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0520.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0520 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0530.ets deleted file mode 100644 index 07069e362420970e4b507d8d5688404f66b679e4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0530.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0530 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0540.ets deleted file mode 100644 index 7d79ca5d88128d8fb28189e2b093dba058025296..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0540.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0540 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0550.ets deleted file mode 100644 index 4e943bb506635742e6dc18031a16250b5edb64eb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0550.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0550 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0560.ets deleted file mode 100644 index d0add52e69d7bb2a8f1bccca72f8f25848958074..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0560.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0560 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0570.ets deleted file mode 100644 index 17f19ba6c934e6f4c35404cfa4dbb4d9e0025dbf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0570.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0570 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0580.ets deleted file mode 100644 index 07c2d58294b94cfbf257010a3f727b83ed3d3251..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0580.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0580 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0590.ets deleted file mode 100644 index 82ee1a45fcf4b1ffc56fcc0b73a9ba7cf1ee9237..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0590.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0590 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0600.ets deleted file mode 100644 index b0436736928c18b19c1508960b71622d5681293e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0600.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0600 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0610.ets deleted file mode 100644 index b3eb45af356e8786fac7283ac4e2fa4bf650e512..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0610.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0610 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0620.ets deleted file mode 100644 index 6316759c03ab89e7a03753fcb647925ec50e8d2e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0620.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0620 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0630.ets deleted file mode 100644 index b6a2e6d8e27c0d53b63dc872e39f4d3284fc636f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0630.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0630 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0640.ets deleted file mode 100644 index e476463f003e26b72694a21034ea7f5b7f91ce70..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0640.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0640 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0650.ets deleted file mode 100644 index d1a2de52f2158da80dabd0b6208cb57acc82694d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0650.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0650 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0660.ets deleted file mode 100644 index f13afeca29fc7ec2c87ae020e6d9eb8e3c022f2c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0660.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0660 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0670.ets deleted file mode 100644 index 60d654ed61586dc5e12a0b20b60d4e9bf3b239dd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0670.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0670 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0680.ets deleted file mode 100644 index ac12a258550b37518c31f3bf3581a551aef9ae0e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0680.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0680 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0690.ets deleted file mode 100644 index 24438d8f23f097d8f3dd1a2adf4e7641d8cb6786..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0690.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0690 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0700.ets deleted file mode 100644 index f24eff0d68118c93231846b5037a0f324e807b55..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0700.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0700 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0710.ets deleted file mode 100644 index 8286c03f99f37269b880ee50c62c8ebf5217b994..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0710.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0710 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0720.ets deleted file mode 100644 index 3b04efcdb9ee21855f039e7e9c6800154fc551f2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0720.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0720 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .vertical(true) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0730.ets deleted file mode 100644 index 7b45297aa15a97c0420c636b91ebdefce58ab7a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0730.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0730 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0740.ets deleted file mode 100644 index c2ac51fac81b8f0cdaba41ee2e9cfddaaba7c6c6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0740.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0740 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .padding(10) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0750.ets deleted file mode 100644 index 0a892a7d82e2722afce1fef495ece169a8778d70..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0750.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0750 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0760.ets deleted file mode 100644 index 0eb3f86b0df023508ee382246b4d237233991c7c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0760.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0760 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets deleted file mode 100644 index 1ecb61807d1592b2a86b8123f5eb867b4fe2b89c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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. - */ - -class MyDataSource770 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 UIComponentScrollSwiperLayout0770 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource770 = new MyDataSource770([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 6; i++) { - list.push(i); - } - this.data = new MyDataSource770(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .margin(10) - .displayCount(3) - .size({width:200,height:300}) - .loop(false) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets deleted file mode 100644 index 5495cdd9e8011dd5733f577a7c0d097e4de0c619..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790.ets +++ /dev/null @@ -1,74 +0,0 @@ -/* - * 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. - */ - -class MyDataSource790 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 UIComponentScrollSwiperLayout0790 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource790 = new MyDataSource790([]) - private icon: Resource = $r('app.media.icon') - @State showBorder: boolean = true - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 6; i++) { - list.push(i); - } - this.data = new MyDataSource790(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .margin(10) - .displayCount(3) - .size({width:200,height:300}) - .loop(false) - .border({ - width: this.showBorder ? 10 : 0 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets deleted file mode 100644 index 63896e8138ce8c293d4c44f62b828ebd2d915e7f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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. - */ - -class MyDataSource2 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 UIComponentScrollSwiperLayout0810 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource2 = new MyDataSource2([]) - private icon: Resource = $r('app.media.icon') - @State showBorder: boolean = true - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 6; i++) { - list.push(i); - } - this.data = new MyDataSource2(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .padding(10) - .displayCount(3) - .size({width:200,height:300}) - .loop(false) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0820.ets deleted file mode 100644 index b11419938a2ef7fccebe371614c33b8b44ca1e78..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0820.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0820 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0830.ets deleted file mode 100644 index f0b2f16d592a512b5b09a3a2b694d88e7ea3e46b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0830.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0830 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0840.ets deleted file mode 100644 index 671447c07b20c32581989704395bf166cb19261b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0840.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0840 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0850.ets deleted file mode 100644 index 686bbca0652e862e5125a240b7c0b400d7d8cd27..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0850.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0850 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0860.ets deleted file mode 100644 index 0d0bb39d7136362acf9fa42c2f1ee4dcad7db547..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0860.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0860 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0870.ets deleted file mode 100644 index 9bfb34193578387292a9a414f5be8285c50a5469..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0870.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0870 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0880.ets deleted file mode 100644 index 8426b9540e665b84b178910fbc6721df973d8d73..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0880.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0880 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0890.ets deleted file mode 100644 index ba5ab5bdf4e85acd44fc1319b3a6400cd9533762..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0890.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0890 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0900.ets deleted file mode 100644 index e05b2ea0daf8b1bdf60737d1699b7f61ac002e13..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0900.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0900 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0910.ets deleted file mode 100644 index 987ed24858fa3ee65db1de877b7b872e13d5a4d5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0910.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0910 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0920.ets deleted file mode 100644 index 8503dc3e28e49f5fcf0c65674e2e96d1f1bbde9e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0920.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0920 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0930.ets deleted file mode 100644 index a75536ca98cd71392d93e85741fd4d72346a0162..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0930.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0930 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0940.ets deleted file mode 100644 index bd9da3c4cdddb566a4de9d3bc9539fe1fbc3d149..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0940.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0940 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0950.ets deleted file mode 100644 index 1f24984ecb85b03d05230f88de350402149fbddd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0950.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0950 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0960.ets deleted file mode 100644 index 086537d5c732591b9613d8d5c9267aa185e5b776..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0960.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0960 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0970.ets deleted file mode 100644 index 9adb877e787de20fd6795cdb65d66697a36ce788..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0970.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0970 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0980.ets deleted file mode 100644 index 51d2470079bd59ff572ebdc9dd1fec59c9376550..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0980.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0980 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0990.ets deleted file mode 100644 index e6e5aae03b76c1c7bbf6ea3d7bc21c53898ada40..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0990.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout0990 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1000.ets deleted file mode 100644 index c272ce282201f49f0e33493f0bb46cb295d6e3f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1000.ets +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout1000 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1010.ets deleted file mode 100644 index 5d39267e661549b6175211ea80dd191f690ea220..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1010.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout1010 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets deleted file mode 100644 index dc87d30d9e152cf3b13ee0564c5c61d293319de5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * 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. - */ - -class MyDataSource1020 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 UIComponentScrollSwiperLayout1020 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource1020 = new MyDataSource1020([]) - private icon: Resource = $r('app.media.icon') - @State showBorder: boolean = true - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 6; i++) { - list.push(i); - } - this.data = new MyDataSource1020(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .margin(10) - .displayCount(3) - .loop(false) - .border({ - width: this.showBorder ? 10 : 0 - }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets deleted file mode 100644 index 68445d29396781bb38dedc9ca9676852a66dc529..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ - -class MyDataSource1040 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 UIComponentScrollSwiperLayout1040 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource1040 = new MyDataSource1040([]) - private icon: Resource = $r('app.media.icon') - @State showBorder: boolean = true - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 6; i++) { - list.push(i); - } - this.data = new MyDataSource1040(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .padding(10) - .displayCount(3) - .loop(false) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets deleted file mode 100644 index ebb3e85be74971a8922e5961ed7b4ac26f285709..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * 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. - */ - -class MyDataSource1050 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 UIComponentScrollSwiperLayout1050 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource1050 = new MyDataSource1050([]) - private icon: Resource = $r('app.media.icon') - @State showBorder: boolean = true - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 6; i++) { - list.push(i); - } - this.data = new MyDataSource1050(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .itemSpace(3) - .displayCount(3) - .margin(0) - .prevMargin(3) - .nextMargin(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets deleted file mode 100644 index 4e1426182edbf0f39533cc84f26ba7d3f5805855..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ - -class MyDataSource1060 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 UIComponentScrollSwiperLayout1060 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource1060 = new MyDataSource1060([]) - private icon: Resource = $r('app.media.icon') - @State showBorder: boolean = true - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 6; i++) { - list.push(i); - } - this.data = new MyDataSource1060(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1080.ets deleted file mode 100644 index 868f62a1a2316582ef1ab71e8823584d26fa8366..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1080.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1080 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41).height(41) - Image(this.icon).width(41).height(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1090.ets deleted file mode 100644 index ad84d0bfd80e317da3365ec30da87c587d823e91..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1090.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1090 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1100.ets deleted file mode 100644 index 37820fe9d0d616770952f0edbaf6c9cbc7fe7c83..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1100.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1100 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1110.ets deleted file mode 100644 index b94e8d69399396e5b18991648a22c56318f2db71..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1110.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1110 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1120.ets deleted file mode 100644 index 09c7df55a7851ada759b0abe363b32c00ee641ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1120.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1120 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1130.ets deleted file mode 100644 index 7f805de5dbe84cacb330e6339bc1fa650aea4493..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1130.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1130 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1140.ets deleted file mode 100644 index 0b4aaaf91ea883e9a3494c6bf1b3ecae8c12e1eb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1140.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1140 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1150.ets deleted file mode 100644 index 0972bb170e0f1ee3786d9cc2d1161e31372bcae1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1150.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1150 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .vertical(true) - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1160.ets deleted file mode 100644 index 0552220875c22ae3d0e79fe2d2e46dcd17c77713..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1160.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1160 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1170.ets deleted file mode 100644 index aba404646ef8bd96b473ae79048690211bbebe60..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1170.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1170 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1180.ets deleted file mode 100644 index 5ca27a56c286f236628ac17a8a1eb6194559b600..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1180.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1180 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1190.ets deleted file mode 100644 index 3e4394f29015693a2cd8719d7e452fdaf76ba0b7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1190.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1190 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .vertical(true) - .displayMode(SwiperDisplayMode.Stretch) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1200.ets deleted file mode 100644 index 7dce83594ec5b18525e640f5d202bc53fff927f3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1200.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1200 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1210.ets deleted file mode 100644 index 6feabc5a790237e98b4178c3f3573ad60b743137..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1210.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1210 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .vertical(true) - .displayMode(SwiperDisplayMode.Stretch) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1220.ets deleted file mode 100644 index a3ed3631923bbc7e5e89f8803f724e326b2598dc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1220.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1220 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1230.ets deleted file mode 100644 index a844c84a3ba7f27464142e066699d0dd5e66a2e1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1230.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1230 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .vertical(true) - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1240.ets deleted file mode 100644 index f95113f7cd1711b4f67083eea1316ce50e3068f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1240.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1240 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1250.ets deleted file mode 100644 index 5b49444322de8c9b6e757f419dc23498cf877e4c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1250.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1250 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1260.ets deleted file mode 100644 index f9b78c0e0ff67f791062d842c000fa069badc813..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1260.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1260 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1270.ets deleted file mode 100644 index f2ca50f0ff7d396b83d6404f6eff19442d6f70de..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1270.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1270 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1280.ets deleted file mode 100644 index 946ac928228859185476b0170faff661bae82503..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1280.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1280 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1290.ets deleted file mode 100644 index ce6f9a582a314fef902928f056578e1ed7f673c2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1290.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1290 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1300.ets deleted file mode 100644 index 7ad07d03b74ddb77d6bee4ed1a41d54a29a121a6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1300.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1300 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .itemSpace(10) - .nextMargin(10) - .prevMargin(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1310.ets deleted file mode 100644 index 1ff841ac38a446d29f77e96433d79e2f52dedb00..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1310.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1310 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1320.ets deleted file mode 100644 index 37b418f21b9d3cccd90e9a203929cd7f5e7777a2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1320.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1320 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1330.ets deleted file mode 100644 index fde46f4d3399cb2a5e002af8d84052cf5c0deffa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1330.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1330 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1340.ets deleted file mode 100644 index 7427f1affa6fdf7ec99649049a386a5ec6d91e54..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1340.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1340 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1350.ets deleted file mode 100644 index d60dd1517f1b50b2cd6470fdd433f1c9c1198ed8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1350.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1350 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1360.ets deleted file mode 100644 index febf612787e2f4a7c384418f62d6f8e04e29cd8c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1360.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1360 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .vertical(true) - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1370.ets deleted file mode 100644 index fea094ab7da863e5db62634baf16eddd1a874e20..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1370.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1370 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1380.ets deleted file mode 100644 index 4b933b9f9c2549408910eee7253a94ec6c582e9f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1380.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1380 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1390.ets deleted file mode 100644 index 66c42849747a2ac39afc8910701979f9e66d881f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1390.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1390 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1400.ets deleted file mode 100644 index 5fc950114dcfa8d9c84d3adb68b965a65b0df724..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1400.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1400 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1410.ets deleted file mode 100644 index 605838af8d2c0b328ec08b94c05c02b00bca948e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1410.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1410 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1420.ets deleted file mode 100644 index 944adba922ba9ec5cba0d196180945dd5f634c3d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1420.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1420 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1430.ets deleted file mode 100644 index 022817fc3d2be1871f5df2994d22d14c7cd49f99..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1430.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1430 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1440.ets deleted file mode 100644 index 0de18638019d78f00e1190da1dd9b757f0513fcd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1440.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1440 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .vertical(true) - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1450.ets deleted file mode 100644 index ce060de110d0c00369ae46dd63d58597cf1e1104..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1450.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1450 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1460.ets deleted file mode 100644 index 54750b61cd3e2eb4666f9b54c852a09c629f44fb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1460.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1460 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1470.ets deleted file mode 100644 index 44a75c502e001d19a2665f8b69eeab37bf521764..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1470.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1470 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1480.ets deleted file mode 100644 index fcb736c4e621ba634305dda69d9c6836f897cb36..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1480.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1480 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1490.ets deleted file mode 100644 index dfd6a98822a173376dada302f8c69ccb525f6b67..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1490.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1490 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1500.ets deleted file mode 100644 index 24ce64294ef1c5da3c83ebf773cb39a0d8c15b73..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1500.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1500 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510.ets deleted file mode 100644 index a38e75b8180bb181f24f564ba7e4deebcebf911b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1510 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1520.ets deleted file mode 100644 index e05c1bf65cd7f3186674df278aeff476914ca5e4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1520.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1520 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1530.ets deleted file mode 100644 index 897d545e6431d5632c925e2affa464a163aaad06..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1530.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1530 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1540.ets deleted file mode 100644 index 23e2fefde9bcf273854cf91ce228e6d6e8eaefab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1540.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1540 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1550.ets deleted file mode 100644 index a108c2eaa2cf15b7832ab08a5cbbb33accbf70de..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1550.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1550 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1560.ets deleted file mode 100644 index f669de44e647e344031df87c511e2a5a27ee7984..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1560.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1560 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1570.ets deleted file mode 100644 index a05f919ec5018d75d80576b92cbd7f7d3cf8161d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1570.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1570 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1580.ets deleted file mode 100644 index 167ee1fdcbc67c39b3c80a94278886ce2836e087..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1580.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1580 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .vertical(true) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1590.ets deleted file mode 100644 index 914021cc5cf42428050ac420f4ee7304087c345f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1590.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1590 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1600.ets deleted file mode 100644 index 22efc213a7b26a35d9d53fd5b5a96c2a435dab2d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1600.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1600 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1610.ets deleted file mode 100644 index c9eb6dcc345cb48857adf424fc0557a7b2e7ee30..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1610.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1610 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1620.ets deleted file mode 100644 index 88a3bef8eb1ac3aff33ae78bae8cb132c68fef10..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1620.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1620 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1630.ets deleted file mode 100644 index f0b96a525adffdfc30dea7fbc5501c3bae08a601..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1630.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1630 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1640.ets deleted file mode 100644 index 4f8499348a82a4397dbd90395c7caefdc3c9f0d9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1640.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1640 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1650.ets deleted file mode 100644 index aa0bf4ea5f01f87b207ad74e4ea4d585edb026ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1650.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1650 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1660.ets deleted file mode 100644 index ee15fe55536fb9308c4334b68a05ee8eb389a7ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1660.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1660 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1670.ets deleted file mode 100644 index 41db450d31b45ce4f9c1a050493eeb2dd4600132..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1670.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1670 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1680.ets deleted file mode 100644 index 4a54252033ce7c198c7c3933394d155d9cfb0dad..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1680.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1680 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1690.ets deleted file mode 100644 index e311daceee5459fd41c1a38690a817ddf98b8f2a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1690.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1690 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1700.ets deleted file mode 100644 index ac6980b3e3d3283295f569ba203cf898a25d66fb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1700.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1700 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1710.ets deleted file mode 100644 index 8649d34d13c0a83b935e9e935576dbfab4c879cc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1710.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1710 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1720.ets deleted file mode 100644 index 60b42875f30d73c49d7bb2632be93f91b4fbe471..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1720.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1720 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1730.ets deleted file mode 100644 index a8a76d1b1ffed34448efdb66bde6f78768caef1d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1730.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1730 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.STRETCH) - .border({ width: 10 }) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1740.ets deleted file mode 100644 index c18aacfdef21932708aa375207033c49f7637ce2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1740.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1740 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1750.ets deleted file mode 100644 index 3d53c2abb599243b3c952cdcbec06f75003e44ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1750.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1750 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .padding(10) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1760.ets deleted file mode 100644 index 2b749d2e37ffa3e5b8432d6b1812a26b80cbee5f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1760.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1760 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1770.ets deleted file mode 100644 index de5e95712ae1ff388ad45e9e74fad4abe961f135..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1770.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1770 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1780.ets deleted file mode 100644 index 0d5a5757bd54ec9365c8fb31c35afc6e9b871715..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1780.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1780 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1790.ets deleted file mode 100644 index c120bc9d1a4b293d795464ae0a771ae1516ad703..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1790.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1790 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets deleted file mode 100644 index 46607cc3c14d6ec89f708d075e2aa853487729d1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * 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. - */ -class MyDataSource1800 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 UIComponentScrollSwiperLayout1800 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource1800 = new MyDataSource1800([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource1800(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - Image(this.icon).width(40) - Text(item.toString()) - } - }, (item: string) => item) - } - .border({ width: 10 }) - .width('100%') - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets deleted file mode 100644 index 5e4a1055bfb17a5171a4956604b61911f37572c9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ -class MyDataSource1810 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 UIComponentScrollSwiperLayout1810 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource1810 = new MyDataSource1810([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource1810(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - Image(this.icon).width(40) - } - }, (item: string) => item) - } - .vertical(true) - .border({ width: 10 }) - .height(250) - .width('100%') - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets deleted file mode 100644 index c1b313812ea9a562db67df20cbe083af9b1af194..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout1820 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - Image(this.icon).width(40) - Text(item.toString()) - } - }, (item: string) => item) - } - .padding(10) - .width('100%') - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets deleted file mode 100644 index 2b21f4d210fb4b1df2e83a87ead3bf6e121a539f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout1830 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - Image(this.icon).width(40) - } - }, (item: string) => item) - } - .vertical(true) - .padding(10) - .width('100%') - .height(250) - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets deleted file mode 100644 index 3b38082718a5861c051327b35cf7c70bba513796..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout1840 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - Image(this.icon).width(40) - } - }, (item: string) => item) - } - .prevMargin(10) - .nextMargin(10) - .itemSpace(10) - .width(250) - .height(250) - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets deleted file mode 100644 index c5e076deb23e319e63ed49b02c10feb5e986e914..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout1850 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - private icon: Resource = $r('app.media.icon') - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - - Image(this.icon).width(40) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .width(250) - .height(250) - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1860.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1860.ets deleted file mode 100644 index acf3b5c75010c64cd88430ef0af962b5398228ee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1860.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1860 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1870.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1870.ets deleted file mode 100644 index f94f25ba36c8c2d407b7d2802b09d70c77ee46c9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1870.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1870 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1880.ets deleted file mode 100644 index d1639488ba3baac549430928112203f722239d6c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1880.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1880 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1890.ets deleted file mode 100644 index d3541f4573517e1e92ed203dbbdcf4a20c22c6d5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1890.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1890 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1900.ets deleted file mode 100644 index ce867675e2d6f20cd96a93495d07239c303fb2ca..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1900.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1900 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1910.ets deleted file mode 100644 index cd2b2069f16a9b76b394e0593c3f20767046051d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1910.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1910 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1920.ets deleted file mode 100644 index 37ee427073b0ae8f50c7cab94b2a41e305482e5f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1920.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1920 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1930.ets deleted file mode 100644 index 332d1cd805a97e43c469affef72d4b5dc7c77ed6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1930.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1930 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1940.ets deleted file mode 100644 index 4dccb4014bdd8fc4d27ae1b5cead951981e66166..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1940.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1940 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .vertical(true) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1950.ets deleted file mode 100644 index b1d7133e9c56cf684d26b45b54275edc7f448fdf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1950.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1950 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1960.ets deleted file mode 100644 index 84fede2ec3ae88b8b651b284e0726ec747549aac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1960.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1960 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1970.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1970.ets deleted file mode 100644 index cb08b037d5a892ee5e484a93e58fa77eca3b4e7e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1970.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1970 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1980.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1980.ets deleted file mode 100644 index 3eb407230e4721e4a604d7ef89e3380ee2b1742c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1980.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1980 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .border({ width: 10 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1990.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1990.ets deleted file mode 100644 index 878526083567817732a54089eb5e5c6022aebe4a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1990.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout1990 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2000.ets deleted file mode 100644 index 59d3303556bfdbae06ebf7ebe96ee44f1c5aff40..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2000.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout2000 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .padding(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2010.ets deleted file mode 100644 index 123f5e9b1263083375c390b7b8c9d63044250daf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2010.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout2010 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Row() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - .size({ width: 300, height: 300 }) - .nextMargin(10) - .prevMargin(10) - .itemSpace(10) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2020.ets deleted file mode 100644 index b5274eb6071fd99666a735494a0fd6c9c7bfd677..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2020.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout2020 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(1) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2030.ets deleted file mode 100644 index 92c9eae968b206289b841edccf37d166da82becc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2030.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout2030 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(1) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2040.ets deleted file mode 100644 index 8b36efba3bfc7a0fdacb4ccefd41f6ff17eac552..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2040.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout2040 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2050.ets deleted file mode 100644 index 5d4ee1351ba3b7a368842baa99611e0b5129cc02..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2050.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentScrollSwiperLayout2050 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - private icon: Resource = $r('app.media.icon') - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: number) => { - Column() { - Image(this.icon).width(41) - Text(item.toString()) - Image(this.icon).width(41) - } - }, (item: string) => item) - } - .displayCount(3) - .size({ width: 300, height: 300 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets deleted file mode 100644 index 712d4595e9bde425fead4efc776272a34c63611a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout2060 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets deleted file mode 100644 index bfbc49fb64eed14d1f79cb9461a889d817528b7c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout2070 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets deleted file mode 100644 index 950112e342c70d91bb505cadf35cc1605ed29157..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout2080 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets deleted file mode 100644 index 5148d67fb6971a3bd918a557f6c52a7663374be9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout2090 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .width(250) - .height(250) - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets deleted file mode 100644 index 015f4c7bcde6aefa9ccc8795adc7b093eeb4c03f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout2100 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .indicator(Indicator.digit()) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets deleted file mode 100644 index 89c4c993bcdf0da1b5ac69da825b2945a53552a8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (c) 2024 Shenzhen Kaihong Digital Industry Development Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { MyDataSource } from './IDataSource' - -@Entry -@Component -struct UIComponentScrollSwiperLayout2110 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource = new MyDataSource([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 3; i++) { - list.push(i); - } - this.data = new MyDataSource(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - }, (item: string) => item) - } - .indicator(Indicator.dot()) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets deleted file mode 100644 index 7570aa339a51475ff36d0a81287df29ddec00d73..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 UIComponentScrollSwiperTeace0070 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - Row({space: 8}){ - Button("ShowNext").onClick(() => { - this.swiperController.showNext() - }) - .id('UIComponentScrollSwiperTeace0070_ShowNext') - } - .margin({ top: 30 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets deleted file mode 100644 index 2b401f6ebaad39f4a6c6562849662d8e0f629433..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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 UIComponentScrollSwiperTeace0080 { - private swiperController: SwiperController = new SwiperController() - private data: number[] = [1, 2, 3] - - build() { - Column() { - Swiper(this.swiperController) { - ForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - Row(){ - Button("ShowPrevious").onClick(() => { - this.swiperController.showPrevious() - }) - .id('UIComponentScrollSwiperTeace0080_ShowPrevious') - } - .margin({ top: 30 }) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets deleted file mode 100644 index 4b8aaee490f21e69c725eced8229ef827464c7f5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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. - */ -class MyDataSource0010 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 UIComponentScrollSwiperUx0010 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0010 = new MyDataSource0010([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 10; i++) { - list.push(i); - } - this.data = new MyDataSource0010(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - // Text('pic').width(80).height(80).backgroundColor(Color.Red) - } - .border({ - width: 1 - }) - .width(300) - .height(300) - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .displayMode(SwiperDisplayMode.AutoLinear) - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets deleted file mode 100644 index 7881799e8b434c7bb7f7709a5dc12136c66c0b36..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * 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. - */ -class MyDataSource0020 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 UIComponentScrollSwiperUx0020 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0020 = new MyDataSource0020([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 10; i++) { - list.push(i); - } - this.data = new MyDataSource0020(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - Text(item.toString()) - } - .border({ - width: 1 - }) - .backgroundColor(Color.Yellow) - }, (item: string) => item) - } - .width(300) - .height(300) - .displayMode(SwiperDisplayMode.Stretch) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets deleted file mode 100644 index 99aa52e22d53d933fdf5a8e2b1f4594b4f34c22a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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. - */ -class MyDataSource0520 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 UIComponentScrollSwiperUx0520 { - private swiperController: SwiperController = new SwiperController() - private data: MyDataSource0520 = new MyDataSource0520([]) - - aboutToAppear(): void { - let list: number[] = [] - for (let i = 1; i <= 10; i++) { - list.push(i); - } - this.data = new MyDataSource0520(list) - } - - build() { - Column() { - Swiper(this.swiperController) { - LazyForEach(this.data, (item: string) => { - Column() { - // Text(item.toString()) - // Text('pic').width(80).height(80).backgroundColor(Color.Red) - } - .visibility(Visibility.Hidden) - }, (item: string) => item) - } - .width(600) - .height(600) - .autoPlay(false) - .loop(true) - .indicator(Indicator.dot()) - .backgroundColor(Color.Red) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent010.ets deleted file mode 100644 index 9b56d120829aae43842bb605e76eaafe44dd8bc1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent010.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent010 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - arrowOffset: getContext().resourceManager.getStringSync($r("app.string.popup_arrow_offset")) - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0100') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent013.ets deleted file mode 100644 index 985e09d36ffcaaff721600f503b83b080c891e19..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent013.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent013 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - mask: true - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0130') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent014.ets deleted file mode 100644 index 6b926c55948abfca318f327b17eb1b696ae5355f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent014.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent014 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - mask: { - color: '#ee4508de' - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0140') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent015.ets deleted file mode 100644 index 95897a610032717f9d463d9831e85d2c0bf1fd0f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent015.ets +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent015 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0150') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - mask: { - color: getContext().resourceManager.getColorSync($r("app.color.gray_color")) - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent017.ets deleted file mode 100644 index c2c8468c955a7c1cf434277d895a5824c16167bc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent017.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent017 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - textColor: 0x008000 - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0170') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent018.ets deleted file mode 100644 index 9b0c5852b0b1b63096b9e2613d51607bde18310a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent018.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent018 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - textColor: getContext().resourceManager.getColorSync($r("app.color.gray_color")) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0180') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent019.ets deleted file mode 100644 index 6024f18489a0116a5201d65382d09888b677a149..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent019.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent019 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - textColor: '#ee4508de' - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .margin(0) - .padding(0) - .id('UIComponentSpecialComponentsFormComponentTransparent0190') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent022.ets deleted file mode 100644 index fab04bf96222ab65e1d0a4977c5214205b0d12ed..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent022.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent022 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: FontWeight.Lighter - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0220') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent023.ets deleted file mode 100644 index 6e8dde7d13af8ea9e24734e4b01162329206e082..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent023.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent023 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: FontWeight.Normal - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0230') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent024.ets deleted file mode 100644 index 62812e82f7fa7dce6f7cb18f7b0739b4371a0863..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent024.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent024 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: FontWeight.Regular - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0240') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent025.ets deleted file mode 100644 index 44f85b1827fbc04bbede6ea39a7238a273aca3c3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent025.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent025 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: FontWeight.Medium - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0250') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent026.ets deleted file mode 100644 index 1f05cc5ce1e4623fae459a1978dbdb4c64cdbc45..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent026.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent026 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: FontWeight.Bold - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0260') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent027.ets deleted file mode 100644 index b44cb707c955a2e90beaf94330db4222dba66b1c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent027.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent027 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: FontWeight.Bolder - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0270') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent029.ets deleted file mode 100644 index 0b749230f343721764c0fd11a00e2aae077c1f7a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent029.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent029 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: 400 - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0290') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent030.ets deleted file mode 100644 index 644c69fe161f8cf37388f690be214b6f11accaf5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent030.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent030 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - weight: '30px' - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0300') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent032.ets deleted file mode 100644 index e92fa2a93782f2ea8976f371e99706a170ec9d4f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent032.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent032 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - family: 'HarmonyOS Sans' - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0320') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent034.ets deleted file mode 100644 index 72eddd7a7122296fc07b2fcd68cf8bb3c9907271..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent034.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent034 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - family: getContext().resourceManager.getStringSync($r("app.string.popup_font_family")) - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0340') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent035.ets deleted file mode 100644 index 16a78a307caafcd9f5fa570428a280960e639242..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent035.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent035 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - style: FontStyle.Normal - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0350') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent036.ets deleted file mode 100644 index d37d9f3b6dfc8e9a6b7e9e7289e8f8c6c2a1b8e9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent036.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent036 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - messageOptions: { - font: { - style: FontStyle.Italic - } - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0360') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent038.ets deleted file mode 100644 index 20303e415b6fd8da8085b90879521c4bfb90ab93..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent038.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent038 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - targetSpace: '15%' - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .margin(0) - .padding(0) - .id('UIComponentSpecialComponentsFormComponentTransparent0380') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent039.ets deleted file mode 100644 index f5cb031e7147a7d77a2c9e7f63712ffd6f102c4a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent039.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent039 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - targetSpace: getContext().resourceManager.getStringSync($r("app.string.popup_target_space")) - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0390') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent040.ets deleted file mode 100644 index 323d7844a619e9be7a17c7b769663fc4811892de..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent040.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent040 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - targetSpace: '15%' - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0400') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent053.ets deleted file mode 100644 index 310ebfaa7904ede238cdf28ee6a1fcf448852cb6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent053.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent053 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - radius: '100vp', - shadow: { - radius: getContext().resourceManager.getNumber($r("app.integer.100")) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0530') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent054.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent054.ets deleted file mode 100644 index 4e6ae25a7c5b58fd9545e63023478fa4e3bf7b45..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent054.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent054 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - radius: (getContext().resourceManager.getNumber($r("app.integer.negative30")) + 'px') as PX - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0540') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent056.ets deleted file mode 100644 index 49b849d967f3c3adfad534bd9939676f1207e1aa..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent056.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent056 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - type: ShadowType.COLOR, - color: Color.Gray - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0560') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent057.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent057.ets deleted file mode 100644 index 4c23713ded3ac27950ff336d97d585e806b9f1f3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent057.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent057 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - type: ShadowType.BLUR, - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0570') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent059.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent059.ets deleted file mode 100644 index 766c5efe30ef131d906e43011ddd444c177db604..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent059.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent059 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: '#ee4508de' - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0590') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent060.ets deleted file mode 100644 index 8780ee44ca2c23f3cff10e397c705d464bd479f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent060.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent060 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: getContext().resourceManager.getColorSync($r("app.color.gray_color")) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0600') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent061.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent061.ets deleted file mode 100644 index a7ff9520eb199b07cfbb762707ddd39c13f22766..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent061.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent061 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: ColoringStrategy.INVERT - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0610') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent062.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent062.ets deleted file mode 100644 index 339049bf1d58c989d097066183ba7373c45ae2b6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent062.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent062 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: ColoringStrategy.AVERAGE - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0620') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent063.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent063.ets deleted file mode 100644 index 3e5eb716309e5fbf9d5b842fd72c60522cbd6e47..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent063.ets +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent063 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: ColoringStrategy.PRIMARY - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0630') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent065.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent065.ets deleted file mode 100644 index abc29ca3cd49846b03645878f6a71238364e91a1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent065.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent065 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - offsetX: getContext().resourceManager.getNumber($r("app.integer.30")) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .margin(0) - .padding(0) - .id('UIComponentSpecialComponentsFormComponentTransparent0650') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent067.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent067.ets deleted file mode 100644 index 4a1cd711b66b2173a662c0e4f37a8d8042602d0f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent067.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent067 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - shadow: { - radius: 2, - offsetY: getContext().resourceManager.getNumber($r("app.integer.30")) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .margin(0) - .padding(0) - .id('UIComponentSpecialComponentsFormComponentTransparent0670') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent071.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent071.ets deleted file mode 100644 index d27743d4b2e5bbc36b5c8ed4d6af5b66e91a1482..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent071.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent071 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.Thin - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0710') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent072.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent072.ets deleted file mode 100644 index 2f98edff572e9b13f9aff904a4a7771033eda36a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent072.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent072 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.Regular - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0720') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent073.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent073.ets deleted file mode 100644 index 6756a896da425880c50db4f31d7fb9d21621a5d8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent073.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent073 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.Thick - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0730') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent074.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent074.ets deleted file mode 100644 index b21d438302d85aaea011a74a7c4ac7d1be1a8ef2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent074.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent074 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.BACKGROUND_THIN - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .margin(0) - .padding(0) - .id('UIComponentSpecialComponentsFormComponentTransparent0740') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent076.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent076.ets deleted file mode 100644 index 04c6da2cd3a38628e9a45bfa23b932563557e106..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent076.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent076 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.BACKGROUND_THICK - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .margin(0) - .padding(0) - .id('UIComponentSpecialComponentsFormComponentTransparent0760') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent077.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent077.ets deleted file mode 100644 index f6f0c32150111211f1a469e027c6959280fdf609..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent077.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent077 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.BACKGROUND_ULTRA_THICK - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0770') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent078.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent078.ets deleted file mode 100644 index 5def558dc27def18fdb7266d3c5ca2998bcf040f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent078.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent078 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.NONE - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0780') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent079.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent079.ets deleted file mode 100644 index a0d3ee26ac39b7195ad14c72a9131b8f4ec0518a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent079.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent079 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THIN - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0790') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent080.ets deleted file mode 100644 index 99d28080b0a150f2af19a8a3185dfc98e5a82b03..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent080.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent080 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_THIN - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0800') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent081.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent081.ets deleted file mode 100644 index 193d57e22f5748fb9ef199b073846151c13d8660..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent081.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent081 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_REGULAR - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0810') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent082.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent082.ets deleted file mode 100644 index e28e7840b48a86fa3ab4902ca7bbb83f2098219e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent082.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent082 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_THICK - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0820') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent083.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent083.ets deleted file mode 100644 index f87cf84ab0799da8083bb2013eed72479fa2e61c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent083.ets +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent083 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0830') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent092.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent092.ets deleted file mode 100644 index 916b0de08014f620dfa01dc6ed984ce16b03c6ef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent092.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent092 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup') - .fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0920') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - autoCancel: false - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent094.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent094.ets deleted file mode 100644 index d46e0e98bbcb7293f8e3d5229af48d93adba8f20..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent094.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import prompt from '@system.prompt' - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent094 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0940') - .onClick(() => { - - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - onStateChange: (event) => { - if (event.isVisible) { - prompt.showToast({ - message: '成功改变弹窗的显示状态', - duration: 1000 - }) - } - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent096.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent096.ets deleted file mode 100644 index 922093fd328df530aae3fb4a0cbe36830321c8d8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent096.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent096 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0960') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: true, - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent098.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent098.ets deleted file mode 100644 index e9271fddbb01105507b1974b8059068b58da25ec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent098.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent098 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0980') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - mask: true - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent099.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent099.ets deleted file mode 100644 index c5e566efeea061b52e1923a3055154c008ecc5a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent099.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent099 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent0990') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - mask: { - color: '#ee4508de' - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent100.ets deleted file mode 100644 index a73986edbed2131ad087189bdcc7f5b9ddf2535a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent100.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent100 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1000') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - mask: { - color: getContext().resourceManager.getColorSync($r("app.color.gray_color")) - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent102.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent102.ets deleted file mode 100644 index 923157ab497b0238206cdde4a67c574af1823d39..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent102.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent102 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1020') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - targetSpace: '30px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent103.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent103.ets deleted file mode 100644 index 495b2325118964e7b99a5faff0092de88d9cfb16..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent103.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent103 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1030') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - targetSpace: '15%' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent104.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent104.ets deleted file mode 100644 index 82fcf905207c8ee15b06aa34aa4bf1343a6db516..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent104.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent104 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1040') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - targetSpace: getContext().resourceManager.getStringSync($r("app.string.popup_target_space")) - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent105.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent105.ets deleted file mode 100644 index dbc1cb35e89f50ecd51382843594b67b645748ad..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent105.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent105 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1050') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - targetSpace: getContext().resourceManager.getStringSync($r("app.string.popup_arrow_offset")) - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent108.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent108.ets deleted file mode 100644 index 64eaf9ffc1d036f8acf4e1d5695ab8754af5c066..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent108.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent108 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1080') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '30px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent109.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent109.ets deleted file mode 100644 index 7c168c3f5de190eb7694b3c5ff0b264e2bd1095d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent109.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent109 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1090') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '30vp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent110.ets deleted file mode 100644 index 2c2940029db5dce7017b561798adface2a7c54d6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent110.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent110 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1100') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '30fp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent111.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent111.ets deleted file mode 100644 index c8f1bdab634b5bd576e741721da07b0e07ce8d05..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent111.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent111 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1110') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '30lpx' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent112.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent112.ets deleted file mode 100644 index 1e72927ca572e2c03a5fc514e8bb5bb40a6fa627..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent112.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent112 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1120') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '10%' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent113.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent113.ets deleted file mode 100644 index ecd9b4a05e87389a06124770aaecbb33e0f1bb61..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent113.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent113 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1130') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: (getContext().resourceManager.getNumber($r("app.integer.30")) + 'px') as PX - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent115.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent115.ets deleted file mode 100644 index 271479e8e1f562ece56e7c54b637973b8a19abc8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent115.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent115 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1150') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - placement: Placement.Bottom, - arrowPointPosition: ArrowPointPosition.START - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent116.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent116.ets deleted file mode 100644 index 3e9dbdc775717b25d04864e65e1d8cd54db591a5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent116.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent116 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - .height('100px') - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1160') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - placement: Placement.Right, - arrowPointPosition: ArrowPointPosition.START - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent117.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent117.ets deleted file mode 100644 index 6deff2a6673ecd62e134f54c66031d57691756f9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent117.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent117 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1170') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowPointPosition: ArrowPointPosition.CENTER - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent118.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent118.ets deleted file mode 100644 index 1835737e4e3c4d7c5f5f1c1ac515e29ce4e96757..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent118.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent118 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1180') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - placement: Placement.Top, - arrowPointPosition: ArrowPointPosition.END - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent119.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent119.ets deleted file mode 100644 index 4f89ccf0ef995085178be5bb64f7dfef592fa127..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent119.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent119 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - .height('100px') - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1190') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - placement: Placement.Left, - arrowPointPosition: ArrowPointPosition.END, - }) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent121.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent121.ets deleted file mode 100644 index 5dd8398baaf56580be2492d43de577424f0ffab7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent121.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent121 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1210') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowWidth: '30px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent122.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent122.ets deleted file mode 100644 index 74808b8bc35d59ab5413fda59c6d6500c223a694..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent122.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent122 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1220') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowWidth: '30vp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent123.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent123.ets deleted file mode 100644 index 9cb865d6ebfdd003476cc8ca7b53a5c21c7c093f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent123.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent123 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1230') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowWidth: '30fp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent124.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent124.ets deleted file mode 100644 index 6d27dbb5960a19896776a4a33b48a992c3373aa2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent124.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent124 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1240') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowWidth: '30lpx' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent125.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent125.ets deleted file mode 100644 index f5ca30b4e5f717a73e3d1070b00a2336b9ce5e96..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent125.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent125 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1250') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '100px', - arrowWidth: '10%' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent126.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent126.ets deleted file mode 100644 index f2bd11af2881b84fc8f1e054b753a2746a74a839..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent126.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent126 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1260') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowPointPosition: ArrowPointPosition.CENTER, - arrowWidth: (getContext().resourceManager.getNumber($r("app.integer.30")) + 'px') as PX - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent128.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent128.ets deleted file mode 100644 index 929792bfc342f092ad122f2f4fcb602149b16a11..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent128.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent128 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1280') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowHeight: '30px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent129.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent129.ets deleted file mode 100644 index 67808e5975d8f2cdf45e0421cfee1db8aa41b1f0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent129.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent129 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1290') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowHeight: '30vp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent130.ets deleted file mode 100644 index 21bbb970c8459d7d64f84acc3aa274a4eeb9e07d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent130.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent130 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1300') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowHeight: '30fp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent131.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent131.ets deleted file mode 100644 index 2a1a2f904235426e1f6d030132252bb72c1c1376..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent131.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent131 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1310') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowHeight: '30lpx' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent132.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent132.ets deleted file mode 100644 index dcd65d3289b8c9ce37dd5bdfdaba7562df9ce2f5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent132.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent132 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1320') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowHeight: '90%' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent133.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent133.ets deleted file mode 100644 index c8603dbcc8a774138fa484b2ed066d9f3b350d7d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent133.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent133 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1330') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - arrowHeight: (getContext().resourceManager.getNumber($r("app.integer.30")) + 'px') as PX - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent135.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent135.ets deleted file mode 100644 index 4f7899765ec26a77b4d96830ab22c62037a2478c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent135.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent135 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1350') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - radius: '30px', - width: '100px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent136.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent136.ets deleted file mode 100644 index cd226d88c61469124bd96cc90a917a09c3490eac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent136.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent136 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1360') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - radius: '30vp', - width: '100px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent137.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent137.ets deleted file mode 100644 index c829af37954ee7d129e8ba49e35d4c20e1f4bb64..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent137.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent137 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1370') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - width: '100px', - radius: '30fp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent138.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent138.ets deleted file mode 100644 index fbb4a5d581ba22f99c896a68df936f821c8590af..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent138.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent138 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1380') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - radius: '30lpx', - width: '100px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent139.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent139.ets deleted file mode 100644 index c6326886594099fcb50d83513ee548aa8382fdc6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent139.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent139 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - popupOptions: PopupOptions = { - message: 'This is a popup', - placementOnTop: true, - showInSubWindow: false, - width: '100px', - radius: '10%' - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1390') - .onClick(() => { - this.handlePopup = !this.handlePopup; - }) - .bindPopup(this.handlePopup, this.popupOptions) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent140.ets deleted file mode 100644 index 8c2309202d1a08b0c8bd87fbcdc449323c798769..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent140.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent140 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - resourceRadius: Resource = $r("app.string.popup_width"); - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1400') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - radius: (getContext().resourceManager.getNumber($r("app.integer.30")) + 'px') as PX - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent142.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent142.ets deleted file mode 100644 index 7b20eedc456a3352d9e75dbaa7955c9565242f5c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent142.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent142 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1420') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: getContext().resourceManager.getNumber($r("app.integer.30")), - }, - width: '100px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent143.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent143.ets deleted file mode 100644 index ef84fe8bd97c13f0c07eb7f6ac23496a96c5f390..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent143.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent143 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - resourceRadius: Resource = $r("app.string.popup_radius"); - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1430') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - radius: (getContext().resourceManager.getNumber($r("app.integer.100")) + 'vp') as VP, - width: '100px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent144.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent144.ets deleted file mode 100644 index 2394bc91a4b2dc96fab72531dc7835e88a5fa310..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent144.ets +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent144 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1440') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - radius: (getContext().resourceManager.getNumber($r("app.integer.30")) + 'px') as PX, - width: '100px' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent146.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent146.ets deleted file mode 100644 index 68a058a13f1f0cf1a484211678e0b601f2635be3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent146.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent146 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1460') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - type: ShadowType.COLOR, - color: Color.Gray - }, - width: '100vp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent147.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent147.ets deleted file mode 100644 index ac69b897dbc2af7505d6d95fd3198be6e141f370..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent147.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent147 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1470') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - type: ShadowType.BLUR, - }, - width: '100vp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent149.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent149.ets deleted file mode 100644 index c8483c8dd75c119ef61649c059e2bfad5193170d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent149.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent149 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1490') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - type: ShadowType.COLOR, - color: Color.Pink - }, - width: '100vp' - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent150.ets deleted file mode 100644 index e9b52040c33919719c8990ea08c79b3cecf92603..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent150.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent150 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1500') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: '#ee4508de' - }, - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent151.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent151.ets deleted file mode 100644 index 03e6511f449de6ce089ef84d4dcbcf57eb999dba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent151.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent151 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1510') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: getContext().resourceManager.getColorSync($r("app.color.gray_color")) - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent152.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent152.ets deleted file mode 100644 index 6b8f78a6b5283beb44bad5b5e3e2037d081f4d4b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent152.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent152 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1520') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - type: ShadowType.COLOR, - color: ColoringStrategy.INVERT - }, - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent153.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent153.ets deleted file mode 100644 index fa0db13cfc56e69be73332ef84075791c195e5a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent153.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent153 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1530') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - color: ColoringStrategy.AVERAGE - }, - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent154.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent154.ets deleted file mode 100644 index 0213f1cf367eaf3001f7c1fbf24f0eea88f4ec4e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent154.ets +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent154 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1540') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - type: ShadowType.COLOR, - color: ColoringStrategy.PRIMARY - }, - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent156.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent156.ets deleted file mode 100644 index 88d8a0d6fb6f359f891086001d77a4581588b72b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent156.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent156 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1560') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - offsetX: 30 - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent157.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent157.ets deleted file mode 100644 index 62fe9eab7a0bdbbf4494dd36a7164ba447a86f05..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent157.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent157 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1570') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - offsetX: getContext().resourceManager.getNumber($r("app.integer.30")) - }, - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent159.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent159.ets deleted file mode 100644 index 6679c60e457de80cbf27b87407884f1c0eba4eb0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent159.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent159 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1590') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - offsetY: 30 - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent160.ets deleted file mode 100644 index d8c263ec3b170906e415258a6e68c573c73fd504..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent160.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent160 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1600') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - offsetY: getContext().resourceManager.getNumber($r("app.integer.30")) - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent162.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent162.ets deleted file mode 100644 index 8278ad7ff9e3629d869ee791807d53fe1692a84b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent162.ets +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent162 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1620') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: { - radius: 2, - fill: true - } - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent164.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent164.ets deleted file mode 100644 index 31aa333d5bd79de113e04eba80028859e9d96e73..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent164.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent164 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1640') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: ShadowStyle.OUTER_DEFAULT_XS - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent165.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent165.ets deleted file mode 100644 index 0b5dec173d845f2a597ebf5ab7c81fb9ada98b63..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent165.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent165 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1650') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: ShadowStyle.OUTER_DEFAULT_SM - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent166.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent166.ets deleted file mode 100644 index d299a1e88b2352051745180e0e0151b1026d9a3a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent166.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent166 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1660') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: ShadowStyle.OUTER_DEFAULT_MD - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent167.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent167.ets deleted file mode 100644 index d902137329552c621ca82386ee9698cfdb0bc927..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent167.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent167 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1670') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: ShadowStyle.OUTER_DEFAULT_LG - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent168.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent168.ets deleted file mode 100644 index f04852a111c777f7d98b8d2ec5a86ccb6e1c4cfd..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent168.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent168 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1680') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: ShadowStyle.OUTER_FLOATING_SM - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent169.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent169.ets deleted file mode 100644 index 56c00452bcb50737c9d533b0afacc5b423127021..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent169.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent169 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1690') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - shadow: ShadowStyle.OUTER_FLOATING_MD - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent171.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent171.ets deleted file mode 100644 index 0db8d74fdc2f3642c9a0819e095e4bda1c5031ec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent171.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent171 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1710') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.Thin - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent172.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent172.ets deleted file mode 100644 index fb04b95b55988f73e2cbd32fbb802ec0949635a1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent172.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent172 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1720') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.Regular - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent173.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent173.ets deleted file mode 100644 index 17e99bb2107dfafa821a1f58462393e715b68f2d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent173.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent173 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1730') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.Thick - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent174.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent174.ets deleted file mode 100644 index c01218af48d16a519563449667cb6453f0696d8e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent174.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent174 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1740') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.BACKGROUND_THIN - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent175.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent175.ets deleted file mode 100644 index 78dab80cc2cc99e5436c58c087447a939dfeb7a9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent175.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent175 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1750') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.BACKGROUND_REGULAR - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent176.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent176.ets deleted file mode 100644 index 18e68e9081917a5c39269c2cfda35cf96eec72cb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent176.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent176 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1760') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.BACKGROUND_THICK - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent177.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent177.ets deleted file mode 100644 index 81559d1d7c150a6157e747e35a6f85fe74b9f51b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent177.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent177 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1770') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.BACKGROUND_ULTRA_THICK - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent178.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent178.ets deleted file mode 100644 index 15ec647115fc5574d0b97deebedd7440d6580217..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent178.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent178 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1780') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.NONE - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent179.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent179.ets deleted file mode 100644 index c0199abf03c0f1f27e40aed503c21a284dee63ab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent179.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent179 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1790') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THIN - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent180.ets deleted file mode 100644 index cc95a42f4d45c8869bdb017773ba8f6369af0fa4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent180.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent180 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1800') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_THIN - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent181.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent181.ets deleted file mode 100644 index 48cc8f3537bec3cf10301b52c824b2f9f263874c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent181.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent181 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1810') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_REGULAR - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent182.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent182.ets deleted file mode 100644 index b880339a5689d4c682468ff045373080b2baa00e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent182.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent182 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1820') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_THICK - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent183.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent183.ets deleted file mode 100644 index 26b21711562a7d708dcd065e682ae4b077d2bc65..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent183.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent183 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1830') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - backgroundBlurStyle: BlurStyle.COMPONENT_ULTRA_THICK - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent184.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent184.ets deleted file mode 100644 index 009f8fbdd8038f454b282925ab96b97b1c732a0e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent184.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsFormComponentTransparent184 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - @State textTip: string = ''; - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - .focusable(true) - .onFocus(() => { - this.textTip = '获取焦点'; - }) - .onBlur(() => { - this.textTip = '失去焦点'; - }) - } - - build() { - Row() { - Column() { - Text('popup组件状态: ' + this.textTip) - Button(this.message) - .fontSize(20) - .fontColor(Color.Blue) - .id('UIComponentSpecialComponentsFormComponentTransparent1840') - .onClick(() => { - this.customPopup = !this.customPopup; - }) - .bindPopup(this.customPopup, { - builder: this.popupBuilder, - enableArrow: true, - showInSubWindow: false, - focusable: true - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange001.ets deleted file mode 100644 index 436c2f50a42fbf2324352cd22ee616a0859ad738..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange001.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsUIExtensionComponentPopupChange001 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - @State text: string = 'This is a text tip, please input text!'; - @State index: number = 0; - controller: TextInputController = new TextInputController(); - - build() { - Row() { - Column() { - TextInput({ text: $$this.text, controller: this.controller }) - .placeholderFont({ size: 16, weight: 400 }) - .showUnderline(true) - .showCounter(true, { thresholdPercentage: 50, highlightBorder: true }) - .id('UIComponentSpecialComponentsUIExtensionComponentPopupChange0010') - .onClick(() => { - if (!this.handlePopup) { - this.handlePopup = true; - } - }) - .bindPopup(this.handlePopup, { - message: this.text, - placementOnTop: true, - showInSubWindow: false, - autoCancel: false - }) - .width(300) - .height(60) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Start) - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange002.ets deleted file mode 100644 index 08183ae37121869491c2863008090f6478aaa0d1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange002.ets +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import window from "@ohos.window"; - -@Entry -@Component -struct UIComponentSpecialComponentsUIExtensionComponentPopupChange002 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - @State text: string = 'This is a text tip'; - @State index: number = 0; - controller: TextInputController = new TextInputController(); - - private changeOrientation() { - try { - window.getLastWindow(getContext(this), (err, data) => { - if (err.code) { - return; - } - let windowClass = data; - let orientation = window.Orientation.LANDSCAPE; - try { - windowClass.setPreferredOrientation(orientation, (err) => { - if (err.code) { - return; - } - }); - } catch (exception) { - } - ; - }); - } catch (exception) { - } - } - - build() { - Row() { - Column() { - TextInput({ text: $$this.text, controller: this.controller }) - .placeholderFont({ size: 16, weight: 400 }) - .showUnderline(true) - .showCounter(true, { thresholdPercentage: 50, highlightBorder: true }) - .id('UIComponentSpecialComponentsUIExtensionComponentPopupChange0020') - .onClick(() => { - if (!this.handlePopup) { - this.handlePopup = true; - } - }) - .onChange(() => { - this.index++; - if (this.index === 3) { - this.changeOrientation(); - } - }) - .bindPopup(this.handlePopup, { - message: this.text, - placementOnTop: true, - showInSubWindow: false, - autoCancel: false - }) - .width(300) - .height(60) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Start) - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange003.ets deleted file mode 100644 index 18bc52a3c24537449d61469cd8a93d83cabc7852..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange003.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsUIExtensionComponentPopupChange003 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - @State text: string = - 'This is a UIComponentSpecialComponentsUIExtensionComponentPopupChange003 tip, please input text!'; - @State index: number = 0; - controller: TextInputController = new TextInputController(); - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - TextInput({ text: $$this.text, controller: this.controller }) - .placeholderFont({ size: 16, weight: 400 }) - .showUnderline(true) - .showCounter(true, { thresholdPercentage: 50, highlightBorder: true }) - .id('UIComponentSpecialComponentsUIExtensionComponentPopupChange0030') - .onClick(() => { - if (!this.customPopup) { - this.customPopup = true; - } - }) - .bindPopup(this.customPopup, { - message: this.text, - builder: this.popupBuilder, - placement: Placement.RightTop, - enableArrow: true, - showInSubWindow: false, - autoCancel: false, - }) - .width('100%') - .height(60) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.End) - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange004.ets deleted file mode 100644 index e127534aaed89f961845df70c904bd01dfa1ecc1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange004.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsUIExtensionComponentPopupChange004 { - @State message: string = 'Hello'; - @State customPopup: boolean = false; - @State text: string = - 'This is a UIComponentSpecialComponentsUIExtensionComponentPopupChange004 tip, please input text!'; - @State index: number = 0; - controller: TextInputController = new TextInputController(); - - @Builder - popupBuilder() { - Row({ space: 2 }) { - Text('This is a custom popup').fontSize(10) - } - } - - build() { - Row() { - Column() { - TextInput({ text: $$this.text, controller: this.controller }) - .placeholderFont({ size: 16, weight: 400 }) - .showUnderline(true) - .showCounter(true, { thresholdPercentage: 50, highlightBorder: true }) - .id('UIComponentSpecialComponentsUIExtensionComponentPopupChange0040') - .onClick(() => { - if (!this.customPopup) { - this.customPopup = true; - } - }) - .bindPopup(this.customPopup, { - message: this.text, - builder: this.popupBuilder, - placement: Placement.RightTop, - enableArrow: true, - showInSubWindow: false, - autoCancel: false, - }) - .width('100%') - .height(60) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.End) - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange005.ets deleted file mode 100644 index 44bd8552f0c9f0b9130f46efdcaca33dabe96d5e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange005.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsUIExtensionComponentPopupChange005 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - @State text: string = 'This is a text tip'; - controller: TextInputController = new TextInputController(); - - build() { - Row() { - Column() { - TextInput({ text: $$this.text, controller: this.controller }) - .placeholderFont({ size: 16, weight: 400 }) - .showUnderline(true) - .showCounter(true, { thresholdPercentage: 50, highlightBorder: true }) - .id('UIComponentSpecialComponentsUIExtensionComponentPopupChange0051') - .onClick(() => { - if (!this.handlePopup) { - this.handlePopup = true; - } - }) - .bindPopup(this.handlePopup, { - message: this.text, - placementOnTop: true, - showInSubWindow: false, - autoCancel: false - }) - .width(300) - .height(60) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Start) - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange006.ets deleted file mode 100644 index 17f1c8b6c438fcebe928b4b8169bfbd15a354c64..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange006.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentSpecialComponentsUIExtensionComponentPopupChange006 { - @State message: string = 'Hello'; - @State handlePopup: boolean = false; - @State text: string = 'This is a text tip'; - @State index: number = 0; - controller: TextInputController = new TextInputController(); - - build() { - Row() { - Column() { - TextInput({ text: this.text, controller: this.controller }) - .placeholderFont({ size: 16, weight: 400 }) - .showUnderline(true) - .showCounter(true, { thresholdPercentage: 50, highlightBorder: true }) - .id('UIComponentSpecialComponentsUIExtensionComponentPopupChange0060') - .onClick(() => { - if (!this.handlePopup) { - this.handlePopup = true; - } - }) - .bindPopup(this.handlePopup, { - message: this.text, - placementOnTop: true, - showInSubWindow: false, - autoCancel: false - }) - .width(300) - .height(60) - } - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Top) - .justifyContent(FlexAlign.Start) - } -} - diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0010.ets deleted file mode 100644 index 89c89a752e3a34463117729acd757dd82d2c76db..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0010.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0010 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0020.ets deleted file mode 100644 index 704f5cce1be4ba7c83f5a10823296b1b5388c718..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0020.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0020 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.media.ohos_app_icon')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0030.ets deleted file mode 100644 index e780d6fe4c9132b5349b501d65efd69341823ba4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0030.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0030 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('app.media.magnifier')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0040.ets deleted file mode 100644 index 9c53f6d1326d477665c4d1ee42ba8a93b9e4fa16..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0040.ets +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0040 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')); - @State symbolModifier3: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.dot_video')); - @State symbolModifier4: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.exposure')); - @State normalIcocn: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.media.ohos_app_icon')); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.normalIcocn, - selected: this.symbolModifier1 - }, 'Pink').id('Pink')) - .onWillShow(() => { - console.info("Pink will show") - }) - .onWillHide(() => { - console.info("Pink will hide") - }) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.normalIcocn, - selected: this.symbolModifier2 - }, 'Orange').id('Orange')) - .onWillShow(() => { - console.info("Orange will show") - }) - .onWillHide(() => { - console.info("Orange will hide") - }) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.normalIcocn, - selected: this.symbolModifier3 - }, 'Blue').id('Blue')) - .onWillShow(() => { - console.info("Blue will show") - }) - .onWillHide(() => { - console.info("Blue will hide") - }) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.normalIcocn, - selected: this.symbolModifier4 - }, 'Green').id('Green')) - .onWillShow(() => { - console.info("Green will show") - }) - .onWillHide(() => { - console.info("Green will hide") - }) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0060.ets deleted file mode 100644 index 3c50776dd365be60e70195e4b2d0c2a66f4a886e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0060.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0060 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')).fontColor([Color.Pink]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier3: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.dot_video')).fontColor([Color.Yellow]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier4: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.exposure')).fontColor([Color.Green]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier2, - }, 'Orange')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier3, - }, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier4, - }, 'Green')) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0070.ets deleted file mode 100644 index ebba57020c7685af3170b4d1c1eb1a559db72b5a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0070.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0070 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_COLOR); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')).fontColor([Color.Pink]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_COLOR); - @State symbolModifier3: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.dot_video')).fontColor([Color.Yellow]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_COLOR); - @State symbolModifier4: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.exposure')).fontColor([Color.Green]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_COLOR); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier2, - }, 'Orange')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier3, - }, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier4, - }, 'Green')) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0080.ets deleted file mode 100644 index acb4ca1ef302840dca2480b86c483e7c324e9355..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0080.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0080 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_OPACITY); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')).fontColor([Color.Pink]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_OPACITY); - @State symbolModifier3: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.dot_video')).fontColor([Color.Yellow]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_OPACITY); - @State symbolModifier4: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.exposure')).fontColor([Color.Green]) - .renderingStrategy(SymbolRenderingStrategy.MULTIPLE_OPACITY); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier2, - }, 'Orange')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier3, - }, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier4, - }, 'Green')) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0090.ets deleted file mode 100644 index ce9e706b2fea0be07c34835610972d49d4788902..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0090.ets +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0090 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontSize(160); - build() { - Column({space: 5}) { - Text("底部页签样式") - Column(){ - Tabs({barPosition: BarPosition.End}) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Pink').id('Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Orange').id('Orange')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Blue').id('Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Green').id('Green')) - } - .vertical(false) - .scrollable(true) - .barHeight(150) - .barMode(BarMode.Fixed) - .onChange((index:number)=>{ - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(500) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0110.ets deleted file mode 100644 index 470879273e9a42c88ff16ff609143f5a158d4715..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0110.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0110 { - build() { - Column({space: 5}) { - Text("底部页签样式") - Column(){ - Tabs({barPosition: BarPosition.End}) { - TabContent() { - Column().width(70).height(70).backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: undefined, - }, 'Pink')) - - TabContent() { - Column().width(80).height(80).backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: undefined, - }, 'Orange')) - - TabContent() { - Column().width(90).height(90).backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: undefined, - }, 'Blue')) - - TabContent() { - Column().width(100).height(100).backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: undefined, - }, 'Green')) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index:number)=>{ - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(300) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0120.ets deleted file mode 100644 index 4c180d42357ac69048ff24c2b499137bfc95cb0d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0120.ets +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0120 { - build() { - Column({space: 5}) { - Text("底部页签样式") - Column(){ - Tabs({barPosition: BarPosition.End}) { - TabContent() { - Column().width(70).height(70).backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: null, - }, 'Pink')) - - TabContent() { - Column().width(80).height(80).backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: null, - }, 'Orange')) - - TabContent() { - Column().width(90).height(90).backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: null, - }, 'Blue')) - - TabContent() { - Column().width(100).height(100).backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: null, - }, 'Green')) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index:number)=>{ - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - }.width('100%').height(300) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0130.ets deleted file mode 100644 index dd586880c2059147ae6b210babfff43cfb482fe0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0130.ets +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0130 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')).fontColor([Color.Pink]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State flag: boolean = true; - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier1 : this.symbolModifier2), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier1 : this.symbolModifier2), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier1 : this.symbolModifier2), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier1 : this.symbolModifier2), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - - Button('样式切换').width('50%') - .onClick(() => { - this.flag = !this.flag - }).id('UIComponentTabTabBarSymbol0130_001'); - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0140.ets deleted file mode 100644 index 9f0655de6ec8aa7733916d4d87a1d45c677b4c1b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0140.ets +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0140 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')).fontColor([Color.Pink]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier3: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.dot_video')).fontColor([Color.Yellow]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier4: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.exposure')).fontColor([Color.Green]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State flag: boolean = true; - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier1 : undefined), - }, 'Pink')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier2 : undefined), - }, 'Orange')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier3 : undefined), - }, 'Blue')) - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: (this.flag ? this.symbolModifier4 : undefined), - }, 'Green')) - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5) - - - Button('样式切换').width('50%') - .onClick(() => { - this.flag = !this.flag - }).id('UIComponentTabTabBarSymbol0140_001') - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0150.ets deleted file mode 100644 index 5057fc0c275745a2d8daf2c0d2477e01a70a6dea..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0150.ets +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0150 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State flag: boolean = false; - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor('#66000000') - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#66000000') - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#66000000') - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor('#66000000') - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0160.ets deleted file mode 100644 index da3faed1ac6cf034b741298e4a39cfe6900be86d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0160.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0160 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: null - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: null - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: null - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: null - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0170.ets deleted file mode 100644 index 877fe9c773a5c546a25a650279770d78581215e3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0170.ets +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0170 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: undefined - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: undefined - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: undefined - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - selected: undefined - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0180.ets deleted file mode 100644 index b3218bd606deefbe6d6363d9aadbc370ecc3cbb7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0180.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0180 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier1, - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0190.ets deleted file mode 100644 index d4656f896edc2dc7f9ed8b129ba93a5a76972d82..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0190.ets +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0190 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State symbolModifier2: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ellipsis_bubble')).fontColor([Color.Pink]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State flag: boolean = false; - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - //normal: (this.flag ? this.symbolModifier1 : undefined), - normal: this.symbolModifier1, - selected: (this.flag ? this.symbolModifier2 : undefined), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - //normal: (this.flag ? this.symbolModifier1 : undefined), - normal: this.symbolModifier1, - selected: (this.flag ? this.symbolModifier2 : undefined), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - //normal: (this.flag ? this.symbolModifier1 : undefined), - normal: this.symbolModifier1, - selected: (this.flag ? this.symbolModifier2 : undefined), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - //normal: (this.flag ? this.symbolModifier1 : undefined), - normal: this.symbolModifier1, - selected: (this.flag ? this.symbolModifier2 : undefined), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - Button('样式切换').width('50%') - .onClick(() => { - this.flag = !this.flag - }).id('UIComponentTabTabBarSymbol0190_001'); - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0230.ets deleted file mode 100644 index f0b4156df4cb238856fcecd9e2cdeb190da62e7e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0230.ets +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0230 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle({ - normal: (this.symbolModifier1), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0260.ets deleted file mode 100644 index fa8235c7731a6373e4e4c46c8676500a39f1b581..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0260.ets +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@kit.ArkUI' - -@Entry -@Component -struct UIComponentTabTabBarSymbol0260 { - @State symbolModifier1: SymbolGlyphModifier = new SymbolGlyphModifier($r('sys.symbol.ohos_wifi')).fontColor([Color.Red]) - .renderingStrategy(SymbolRenderingStrategy.SINGLE); - @State flag: boolean = true; - - build() { - Column({ space: 5 }) { - Text("底部页签样式") - Column() { - Tabs({ barPosition: BarPosition.End }) { - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Pink) - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Pink')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Orange) - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Orange')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Blue) - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Blue')); - - TabContent() { - Column().width('100%').height('100%').backgroundColor(Color.Green) - }.tabBar(new BottomTabBarStyle(this.flag ? $r("app.media.magnifier"):{ - normal: (this.symbolModifier1), - }, 'Green')); - } - .vertical(false) - .scrollable(true) - .barMode(BarMode.Fixed) - .onChange((index: number) => { - console.info(index.toString()) - }) - .width('100%') - .backgroundColor(0xF1F3F5); - - Button('样式切换').width('50%') - .onClick(() => { - this.flag = !this.flag - }).id('UIComponentTabTabBarSymbol0260_001'); - }.width('100%').height(200) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0050.ets deleted file mode 100644 index afd3436bca671cd84fa0040435b57e494ba1ee86..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0050.ets +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentTabTabbarTabbarsymbol0050 { - @State isModifier: boolean = true; - @State currentIndex: number = 0; - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK; - @State symbolModifier: SymbolGlyphModifier = new SymbolGlyphModifier($r('app.media.openeye')); - @State symbolModifiers: SymbolGlyphModifier = new SymbolGlyphModifier($r('app.media.icon')); - @State symbolModifierSelect: SymbolGlyphModifier = new SymbolGlyphModifier($r('app.media.closeeye')); - private controller: TabsController = new TabsController(); - - build() { - Column() { - Button('isModifier') - .id('UIComponentTabTabbarTabbarsymbol0050_001') - .onClick(() => { - this.isModifier = !this.isModifier; - }) - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle({ - normal: this.isModifier ? this.symbolModifier : this.symbolModifiers, - selected: this.symbolModifierSelect - }, 'Black') - .iconStyle({ unselectedColor: this.isModifier ? Color.Red : Color.Pink, selectedColor: Color.Green })) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle({ - normal: this.isModifier ? this.symbolModifier : this.symbolModifiers, - selected: this.symbolModifierSelect - }, 'Pink')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barGridAlign( - { - lg: 10 - } - ) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0240.ets deleted file mode 100644 index 7ead2fcc8f5f7ca3ac05ee77d358e2ed5927e38e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0240.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentTabTabbarTabbarsymbol0240 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - private controller: TabsController = new TabsController() - @State symbolModifier: SymbolGlyphModifier = new SymbolGlyphModifier($r('app.media.icon')) - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier - }, 'Black')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier - }, 'Pink')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barGridAlign( - { - lg:10 - } - ) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0250.ets deleted file mode 100644 index 8bb31d6822ed36badf3534ef196eceb7fea73000..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0250.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { SymbolGlyphModifier } from '@ohos.arkui.modifier' - -@Entry -@Component -struct UIComponentTabTabbarTabbarsymbol0250 { - @State currentIndex: number = 0 - @State blurStyle: BlurStyle = BlurStyle.BACKGROUND_THICK - @State symbolModifier: SymbolGlyphModifier = new SymbolGlyphModifier($r('app.media.openeye')) - @State symbolModifierSelect: SymbolGlyphModifier = new SymbolGlyphModifier($r('app.media.closeeye')) - private controller: TabsController = new TabsController() - - build() { - Column() { - Tabs({ barPosition: BarPosition.Start, index: this.currentIndex, controller: this.controller }) { - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Black) - } - .tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier, - selected: this.symbolModifierSelect - }, 'Black')) - - TabContent() { - Column().width(500).height('100%').backgroundColor(Color.Pink) - } - .tabBar(new BottomTabBarStyle({ - normal: this.symbolModifier, - selected: this.symbolModifierSelect - }, 'Black')) - - } - .barBackgroundBlurStyle(BlurStyle.BACKGROUND_REGULAR) - .barOverlap(true) - .barGridAlign( - { - lg: 10 - } - ) - .height(296) - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..25a9c6896dca92d1920d8f60de49c8e1129dbecf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0010.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 UIComponentTextAttribute0010 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(TextOverflow.None) + .width('100%') + .id('UIComponentTextAttribute0010') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..5edb4a0e2746444eb597ca23ddb50bdcb247b0ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0020.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 UIComponentTextAttribute0020 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(TextOverflow.Clip) + .width('100%') + .id('UIComponentTextAttribute0020') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..b15403b1e48759ceef7872f4432487d0913494f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0030.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 UIComponentTextAttribute0030 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(TextOverflow.Ellipsis) + .width('100%') + .id('UIComponentTextAttribute0030') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb12537f66605365f09499366f05959710edf886 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0040.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 UIComponentTextAttribute0040 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(TextOverflow.MARQUEE) + .width('100%') + .id('UIComponentTextAttribute0040') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..107b486cba61090c34f7cb5aab6a067c34515670 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0050.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 UIComponentTextAttribute0050 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(undefined) + .width('100%') + .id('UIComponentTextAttribute0050') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..0db88cdcc15906e1ba29c67627795aa0879c8100 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0060.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 UIComponentTextAttribute0060 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(null) + .width('100%') + .id('UIComponentTextAttribute0060') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..9336460e530d106eb6b7b20f5736951085b99bf5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0080.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0080 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(this.overFlow) + .width('100%') + .id('UIComponentTextAttribute0080') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d5fff0b71c8d403a3bea5377140661810bb5c94 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0090.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0090 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Default) + .maxLines(2) + .textOverflow(this.overFlow) + .width('100%') + .id('UIComponentTextAttribute0090') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..9f16d39ef615e3cff349cea8bfa5e61111d7831b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0100.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0100 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .wordBreak(WordBreak.NORMAL) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0100') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..16c0e07ecce9d57c13bddc84a1d0877d7204abb6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0110.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0110 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Default) + .maxLines(2) + .wordBreak(WordBreak.BREAK_ALL) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0110') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a3058e0d791049260f6dad1990a074aa9eccf6e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0120.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0120 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .wordBreak(WordBreak.BREAK_WORD) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0120') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..a5dab20782b9dfe079bc9e8f4d6732f803127909 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0130.ets @@ -0,0 +1,75 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0130 { + @State overFlow : TextOverflow = TextOverflow.None; + @State type : InputType = InputType.Normal; + build() { + Column() { + Button('tp1') + .id('tp1') + .width(100) + .height(60) + .onClick(()=>{ + this.type = InputType.Number; + }) + Button('tp2') + .id('tp2') + .width(100) + .height(60) + .onClick(()=>{ + this.type = InputType.NUMBER_DECIMAL; + }) + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .type(this.type) + .maxLines(2) + .wordBreak(WordBreak.BREAK_WORD) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0130') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..c9ecd1889aaeb7ef1bd6312ae0361edbbba2ef85 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0140.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 UIComponentTextAttribute0140 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0140') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..c12dd303d2a2d6414d30be6e4b603d8f00df0230 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0150.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 UIComponentTextAttribute0150 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .style(TextInputStyle.Inline) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0150') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..c21c328b958f0d0648ecc5edfacfa5a9d28b20c2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0160.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 UIComponentTextAttribute0160 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.koauauotamateaturipukakapikimaungahoronukupo' + }) + .style(TextInputStyle.Inline) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0160') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3ad0254d5daed4a779ed75e06936bfcc02153eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0170.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 UIComponentTextAttribute0170 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({ + placeholder: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0170') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..e9c30b6a70af9be34a92ddb64c915d706a3c673e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0180.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 UIComponentTextAttribute0180 { + @State textIndent : Dimension = 0.1; + + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15vp'; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '50%'; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .textIndent(this.textIndent) + .id('UIComponentTextAttribute0180') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb0decffa089dbf0861f79429358e3120b93d9f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0190.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 UIComponentTextAttribute0190 { + @State textIndent : Dimension = 0.1; + + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15vp'; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '50%'; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .textIndent(this.textIndent) + .style(TextInputStyle.Inline) + .id('UIComponentTextAttribute0190') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ad11b0ac1e334ddc268561e910ccb318c8c2700 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0200.ets @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0200 { + @State textIndent: Dimension = 0.1; + @State type: InputType = InputType.Normal; + + build() { + Column() { + Row() { + Button('tp1') + .id('tp1') + .width(100) + .height(60) + .onClick(() => { + this.type = InputType.Number; + }) + Button('tp2') + .id('tp2') + .width(100) + .height(60) + .onClick(() => { + this.type = InputType.NUMBER_DECIMAL; + }) + }.width('100%') + + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15vp'; + }) + }.width('100%') + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '50%'; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .type(this.type) + .textIndent(this.textIndent) + .style(TextInputStyle.Inline) + .id('UIComponentTextAttribute0200') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..ddcf3b724a521bbdef04b328dcda4d46a8a7ab5c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0210.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 UIComponentTextAttribute0210 { + @State textIndent: Dimension = 0.1; + @State type: InputType = InputType.Normal; + + build() { + Column() { + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15vp'; + }) + }.width('100%') + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '50%'; + }) + TextInput({ + placeholder: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .type(this.type) + .textIndent(this.textIndent) + .style(TextInputStyle.Inline) + .id('UIComponentTextAttribute0210') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..dab278d90c4092e7f660e25e31cec375237d8c15 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0220.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 UIComponentTextAttribute0220 { + @State textIndent: Dimension = 0.1; + @State type: InputType = InputType.Normal; + + build() { + Column() { + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15vp'; + }) + }.width('100%') + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '50%'; + }) + TextInput({ + text: '' + }) + .type(this.type) + .padding({ top: 0, left: 5, bottom: 10}) + .textIndent(this.textIndent) + .style(TextInputStyle.Inline) + .id('UIComponentTextAttribute0220') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..17dac1ae3287cc4bb1e5819d1683f3ae8808f17d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0230.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 UIComponentTextAttribute0230 { + @State overFlow : TextOverflow = TextOverflow.None; + @State textWidth : number = 200; + build() { + Column() { + Row(){ + Button('addWidth') + .id('addWidth') + .width(100) + .height(60) + .onClick(()=>{ + this.textWidth = 300; + }) + Button('changeWidth') + .id('changeWidth') + .width(100) + .height(60) + .onClick(()=>{ + this.textWidth = 100; + }) + } + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoau.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .width(this.textWidth) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0230') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6ec177451e169ba7b379c18befd08a855707197 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0240.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 UIComponentTextAttribute0240 { + @State overFlow : TextOverflow = TextOverflow.None; + @State letter : number = 10; + build() { + Column() { + Row(){ + Button('addWidth') + .id('addWidth') + .width(100) + .height(60) + .onClick(()=>{ + this.letter = 20; + }) + Button('changeWidth') + .id('changeWidth') + .width(100) + .height(60) + .onClick(()=>{ + this.letter = 5; + }) + } + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text Taumatawhakatangihangakoau.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .letterSpacing(this.letter) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0240') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..f1a21342c98cdc3e85798438059ec80b0cfbfb8b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0250.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 UIComponentTextAttribute0250 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text Taumatawhakatangihangakoau.' + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .clip(false) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0250') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..31643902cc3e122b939a9f4f29973cca46cd06ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0260.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 UIComponentTextAttribute0260 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .style(TextInputStyle.Inline) + .maxLines(2) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0260') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..2fa167c1a2e1bd873f5d76cf68ba49f56f893074 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0270.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 UIComponentTextAttribute0270 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .style(TextInputStyle.Inline) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0270') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..99e4f54a1c2fd17ecce9732cb18e152952554788 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0280.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 UIComponentTextAttribute0280 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .style(TextInputStyle.Inline) + .textOverflow(this.overFlow) + .maxLines(2) + .id('UIComponentTextAttribute0280') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..84e2c35c5aaff9f717695a542254e89085aff72b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0290.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 UIComponentTextAttribute0290 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThiset wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThi is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .style(TextInputStyle.Inline) + .textOverflow(this.overFlow) + .id('UIComponentTextAttribute0290') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..3d7c6c19f45138516e452e88d3ed570c0934e397 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0300.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 UIComponentTextAttribute0300 { + @State overFlow : TextOverflow = TextOverflow.None; + controller: TextInputController = new TextInputController() + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + this.controller.stopEditing(); + }) + TextInput({controller: this.controller, + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThiset wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThi is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .style(TextInputStyle.Inline) + .textOverflow(this.overFlow) + .maxLines(2) + .id('UIComponentTextAttribute0300') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..c9cc454df462c4247ad0431db6d5d27ac7e4426d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0310.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 UIComponentTextAttribute0310 { + @State overFlow : TextOverflow = TextOverflow.None; + controller: TextInputController = new TextInputController() + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextInput({controller: this.controller, + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThiset wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThi is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .style(TextInputStyle.Inline) + .textOverflow(this.overFlow) + .maxLines(2) + .wordBreak(WordBreak.NORMAL) + .id('UIComponentTextAttribute0310') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..cf94e8db7e862d4d5716dc8b774011fb3408a3be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0320.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 UIComponentTextAttribute0320 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextArea({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThiset wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThi is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .textOverflow(this.overFlow) + .maxLines(2) + .style(TextContentStyle.INLINE) + .wordBreak(WordBreak.BREAK_ALL) + .id('UIComponentTextAttribute0320') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..064a7232dc37b3204c18e6c02b280d1c8c9e5f0c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0330.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 UIComponentTextAttribute0330 { + @State overFlow : TextOverflow = TextOverflow.None; + build() { + Column() { + Row(){ + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.MARQUEE; + }) + } + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.overFlow = TextOverflow.Ellipsis; + }) + TextArea({ + text: 'This is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThiset wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThi is set wordBreak to WordBreak text Taumatawhakatangihangakoau.'+'\n'+'我爱你中国' + + }) + .textOverflow(this.overFlow) + .maxLines(2) + .style(TextContentStyle.INLINE) + .wordBreak(WordBreak.BREAK_WORD) + .id('UIComponentTextAttribute0330') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ede68687bf6ffecf83833b2169d98fb3ce1bae7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0340.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. + */ + +@Entry +@Component +struct UIComponentTextAttribute0340 { + @State overFlow: TextOverflow = TextOverflow.None; + @State type: InputType = InputType.Email; + + build() { + Column() { + Row() { + Button('tp1') + .id('tp1') + .width(100) + .height(60) + .onClick(() => { + this.type = InputType.Number; + }) + Button('tp2') + .id('tp2') + .width(100) + .height(60) + .onClick(() => { + this.type = InputType.NUMBER_DECIMAL; + }) + } + + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.MARQUEE; + }) + } + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.Ellipsis; + }) + TextArea({ + text: '18091823333This is set wordBreak to18091823333@163.com WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThiset wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThi is set wordBreak to WordBreak text Taumatawhakatangihangakoau.' + + '\n' + '我爱你中国' + + }) + .textOverflow(this.overFlow) + .style(TextContentStyle.INLINE) + .maxLines(2) + .id('UIComponentTextAttribute0340') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..d9c46a8f7a54157a9b51341a52ffd869e9edd124 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0350.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 UIComponentTextAttribute0350 { + @State overFlow: TextOverflow = TextOverflow.None; + + build() { + Column() { + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.Clip; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.None; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.MARQUEE; + }) + } + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.overFlow = TextOverflow.Ellipsis; + }) + TextArea({ + placeholder: '18091823333This issetwordBreakto18091823333@163.comWordBreaktextTaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauThiset wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThiet wordBreak to WordBreak text TaumatawhakatangihangakoauThi is set wordBreak to WordBreak text Taumatawhakatangihangakoau.' + }) + .textOverflow(this.overFlow) + .style(TextContentStyle.INLINE) + .maxLines(2) + .id('UIComponentTextAttribute0350') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..7bad3c2baf392d7c936eddb00e16166cbf59121e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0360.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 UIComponentTextAttribute0360 { + @State textIndent : Dimension = 0.1; + + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15vp'; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '50%'; + }) + TextArea({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .textIndent(this.textIndent) + .id('UIComponentTextAttribute0360') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..d6997e9fb5b840197e5bc2a0e8efd4105525a9a1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0370.ets @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0370 { + @State textIndent: Dimension = 0.1; + @State type: InputType = InputType.Normal; + + build() { + Column() { + Row() { + Button('tp1') + .id('tp1') + .width(100) + .height(60) + .onClick(() => { + this.type = InputType.Number; + }) + Button('tp2') + .id('tp2') + .width(100) + .height(60) + .onClick(() => { + this.type = InputType.NUMBER_DECIMAL; + }) + }.width('100%') + + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15vp'; + }) + }.width('100%') + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '50%'; + }) + TextInput({ + text: 'This18091823333 is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .type(this.type) + .textIndent(this.textIndent) + .id('UIComponentTextAttribute0370') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..3bdb23c3fa1686728cb865c6d0ce2459f5ffef23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0380.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 UIComponentTextAttribute0380 { + @State textIndent : Dimension = 0.1; + + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15vp'; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '50%'; + }) + TextArea({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.akoauauotamateaturipukakapikimaungahoronukupokaiwhenuaki' + }) + .style(TextContentStyle.INLINE) + .textIndent(this.textIndent) + .id('UIComponentTextAttribute0380') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..a3d42b750ccbf0ce3180b9bb2d3ab9bf3a701980 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0390.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 UIComponentTextAttribute0390 { + @State textIndent : Dimension = 0.1; + + build() { + Column() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15vp'; + }) + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(()=>{ + this.textIndent = '50%'; + }) + TextArea({ + placeholder: 'ThisissetwordBreaktoWordBreaktextTaumatawhakatangiha' + }) + .textIndent(this.textIndent) + .id('UIComponentTextAttribute0390') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..b1286156b09e008627e5b4066ea145bc2bd4eff6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0400.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 UIComponentTextAttribute0400 { + @State textIndent: Dimension = 0.1; + + build() { + Column() { + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = -10; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = 10; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15vp'; + }) + }.width('100%') + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '15px'; + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(() => { + this.textIndent = '50%'; + }) + TextArea({ + text: '' + }) + .padding({ top: 0, left: 5, bottom: 10}) + .textIndent(this.textIndent) + .id('UIComponentTextAttribute0400') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..25d663a0a4ac88c0d3cb808a48a08cc6313ab4c4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0410.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 UIComponentTextAttribute0410 { + @State seColor: Color | string = Color.Green; + + build() { + Column() { + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.seColor = '0xfff00'; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.seColor = '#FFb6c1'; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.seColor = -12; + }) + }.width('100%') + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.seColor = getContext().resourceManager.getColorSync($r('app.color.colorRed')); + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(() => { + this.seColor = 'null'; + }) + TextArea({ + text: 'abcde' + }) + .selectedBackgroundColor(this.seColor) + .id('UIComponentTextAttribute0410') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..2f3d83037de1a083524959a578ae6c0afe9f8a50 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0420.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 UIComponentTextAttribute0420 { + controller: TextAreaController = new TextAreaController() + build() { + Column() { + Button('select') + .id('select') + .width(100) + .height(60) + .onClick(()=>{ + this.controller.setTextSelection(0,5); + }) + TextArea({controller: this.controller, + text: 'abcde' + }) + .selectedBackgroundColor(Color.Green) + .id('UIComponentTextAttribute0420') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..f9d7716a55927ba4fc5a27be84ff3b9bcaf92341 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0430.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 UIComponentTextAttribute0430 { + + build() { + Column() { + TextArea({ + text: 'abcde' + }) + .selectedBackgroundColor(Color.Green) + .caretColor(Color.Red) + .id('UIComponentTextAttribute0430') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c4879c1b2797387d1c120545e19f6179f6c1d49 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0440.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 UIComponentTextAttribute0440 { + + build() { + Column() { + TextArea({ + text: 'abcde' + }) + .selectedBackgroundColor(Color.Green) + .caretColor(Color.Red) + .type(TextAreaType.NORMAL) + .id('UIComponentTextAttribute0440_01') + TextArea({ + text: '123456,18091823333' + }) + .selectedBackgroundColor(Color.Green) + .caretColor(Color.Red) + .type(TextAreaType.NUMBER | TextAreaType.PHONE_NUMBER) + .id('UIComponentTextAttribute0440_02') + TextArea({ + text: '18091823333@163.com' + }) + .selectedBackgroundColor(Color.Green) + .caretColor(Color.Red) + .type(TextAreaType.EMAIL) + .id('UIComponentTextAttribute0440_03') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0450.ets new file mode 100644 index 0000000000000000000000000000000000000000..f7bb8d84e661c2f40d468bdb87807386b188333b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0450.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 UIComponentTextAttribute0450 { + @State style: TextContentStyle = TextContentStyle.DEFAULT; + + build() { + Column() { + Button('change') + .id('change') + .width(100) + .height(60) + .onClick(()=>{ + this.style = TextContentStyle.INLINE; + }) + TextArea({ + text: 'abcde' + }) + .selectedBackgroundColor(Color.Green) + .caretColor(Color.Red) + .style(this.style) + .id('UIComponentTextAttribute0450') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..32c26c066d730a8e6c05970c3e13dcd6f12b370c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0460.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextAttribute0460 { + @State style: TextContentStyle = TextContentStyle.DEFAULT; + @State caretStyle: string | number = '10vp'; + + build() { + Column() { + Button('change') + .id('change') + .width(100) + .height(60) + .onClick(() => { + if (this.caretStyle = '10vp') { + this.caretStyle = '50px' + } else { + this.caretStyle = 16 + } + }) + TextArea({ + text: 'abcde' + }) + .caretStyle({ + width: this.caretStyle + }) + .id('UIComponentTextAttribute0460') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0470.ets new file mode 100644 index 0000000000000000000000000000000000000000..c50f543d923dfcdaf28c339b2effb343bcd55d5f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0470.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 UIComponentTextAttribute0470 { + build() { + Column() { + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(0.1) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(-10) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(10) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('15vp') + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('15px') + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('50%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..82670c3f2ce671b79180a8231d5a2629716c7553 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0480.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 UIComponentTextAttribute0480 { + build() { + Column() { + Search({ + placeholder: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(0.1) + Search({ + placeholder: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(-10) + Search({ + placeholder: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(10) + Search({ + placeholder: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('15vp') + Search({ + placeholder: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('15px') + Search({ + placeholder: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('50%') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..cce99822df014ea02cb8ef7822beda9818ccba5a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0490.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 UIComponentTextAttribute0490 { + build() { + Column() { + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(0.1) + .padding({top:0,left:5,right:10}) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(-10) + .padding({top:0,left:5,right:10}) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent(10) + .padding({top:0,left:5,right:10}) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('15vp') + .padding({top:0,left:5,right:10}) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('15px') + .padding({top:0,left:5,right:10}) + Search({ + value: 'abcdeThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text TaumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahuThis is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu' + }) + .textIndent('50%') + .padding({top:0,left:5,right:10}) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..c09d1fcbe2ae357e9c48f3713e08d6421ec6703a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0500.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 UIComponentTextAttribute0500 { + @State seColor: Color | string = Color.Green; + + build() { + Column() { + Row() { + Button('ch1') + .id('ch1') + .width(100) + .height(60) + .onClick(() => { + this.seColor = '0xfff00'; + }) + Button('ch2') + .id('ch2') + .width(100) + .height(60) + .onClick(() => { + this.seColor = '#FFb6c1'; + }) + Button('ch3') + .id('ch3') + .width(100) + .height(60) + .onClick(() => { + this.seColor = -12; + }) + }.width('100%') + + Button('ch4') + .id('ch4') + .width(100) + .height(60) + .onClick(() => { + this.seColor = getContext().resourceManager.getColorSync($r('app.color.colorRed')); + }) + Button('ch5') + .id('ch5') + .width(100) + .height(60) + .onClick(() => { + this.seColor = 'null'; + }) + Search({ + value: 'abcde' + }) + .selectedBackgroundColor(this.seColor) + .id('UIComponentTextAttribute0500') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..3183ece939cbbaa236b2388da16bbea7d246ece6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0510.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 UIComponentTextAttribute0510 { + controller: TextAreaController = new TextAreaController() + build() { + Column() { + Button('select') + .id('select') + .width(100) + .height(60) + .onClick(()=>{ + this.controller.setTextSelection(0,5); + }) + Search({controller: this.controller, + value: 'abcde' + }) + .selectedBackgroundColor(Color.Green) + .id('UIComponentTextAttribute0510') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0520.ets new file mode 100644 index 0000000000000000000000000000000000000000..c6300b5de7439bcf48fec8865f7f25f5192b22f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0520.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 UIComponentTextAttribute0520 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Search({ + controller: this.controller, + value: 'abcde' + }) + .selectedBackgroundColor(Color.Green) + .id('UIComponentTextAttribute0520') + .caretStyle({ + color: Color.Red + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0530.ets new file mode 100644 index 0000000000000000000000000000000000000000..a5aac7f91655148aaa4059ecb25bb1d4711d5ab2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0530.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 UIComponentTextAttribute0530 { + + build() { + Column() { + Search({ + value: 'abcde' + }) + .selectedBackgroundColor(Color.Green) + .caretStyle({ + color: Color.Red + }) + .type(SearchType.NORMAL) + .id('UIComponentTextAttribute0530_01') + Search({ + value: '123456,18091823333' + }) + .selectedBackgroundColor(Color.Green) + .caretStyle({ + color: Color.Red + }) + .type(SearchType.NUMBER | SearchType.PHONE_NUMBER) + .id('UIComponentTextAttribute0530_02') + Search({ + value: '18091823333@163.com' + }) + .selectedBackgroundColor(Color.Green) + .caretStyle({ + color: Color.Red + }) + .type(SearchType.EMAIL) + .id('UIComponentTextAttribute0530_03') + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0540.ets new file mode 100644 index 0000000000000000000000000000000000000000..14bd054e872301b752e92a79508b1c57887861aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0540.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 UIComponentTextAttribute0540 { + + build() { + Column() { + Search({ + value: 'abcde123中国' + }) + .id('UIComponentTextAttribute0540') + Search({ + value: 'axc' + }) + .id('UIComponentTextAttribute0540_01') + .inputFilter('[a-z]', (val) => { + console.error('TextArea example : ' + val); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0550.ets new file mode 100644 index 0000000000000000000000000000000000000000..50b57c3388d32e3080c34532c4d3fe6d1ef22bf0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0550.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 UIComponentTextAttribute0550 { + + build() { + Column() { + Search({ + value: 'abcde456中国' + }) + .id('UIComponentTextAttribute0550') + Search({ + value: '123' + }) + .id('UIComponentTextAttribute0550_01') + .inputFilter('[0-9]', (val) => { + console.error('TextArea example : ' + val); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0560.ets new file mode 100644 index 0000000000000000000000000000000000000000..74c6f805e7294a46d8c1d828fea2468a03dbb2ed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0560.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 UIComponentTextAttribute0560 { + build() { + Column() { + Search() + .selectedBackgroundColor(Color.Green) + .id('UIComponentTextAttribute0560') + .inputFilter(null, (error) => { + console.log(JSON.stringify(error)) + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0570.ets new file mode 100644 index 0000000000000000000000000000000000000000..088f77bf3d3f6f0eff2d2f78615ba5fbbdced946 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0570.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 UIComponentTextAttribute0570 { + @State type: SearchType = SearchType.NORMAL; + + build() { + Column() { + Button('change1') + .id('change1') + .width(100) + .height(60) + .onClick(() => { + this.type = SearchType.EMAIL; + }) + Button('change2') + .id('change2') + .width(100) + .height(60) + .onClick(() => { + this.type = SearchType.NUMBER; + }) + Button('change3') + .id('change3') + .width(100) + .height(60) + .onClick(() => { + this.type = SearchType.PHONE_NUMBER; + }) + Search({ + value: '18710810407,10.32' + }) + .id('UIComponentTextAttribute0570') + Search({ + value: '123.12' + }) + .id('UIComponentTextAttribute0570_01') + .type(this.type) + .inputFilter('[0,9]', (val) => { + console.error('TextArea example : ' + val); + }) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0600.ets new file mode 100644 index 0000000000000000000000000000000000000000..69fa4a7bdd2cc8745a1cbd367567df5da271d9dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0600.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 UIComponentTextAttribute0600 { + @State text: string = ''; + + build() { + Column() { + Search() + .id('SearchUIComponentTextAttribute0600') + .width('100%') + .onEditChange((info) => { + this.text = JSON.stringify(info) + }) + Text(this.text) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0640.ets new file mode 100644 index 0000000000000000000000000000000000000000..4c090144c80f7d6761f69575134f76876151fe39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0640.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 UIComponentTextAttribute0640 { + @State text: string = ''; + + build() { + Column() { + Search() + .id('SearchUIComponentTextAttribute0640') + .width('100%') + .onEditChange((info) => { + this.text = JSON.stringify(info) + }) + Text(this.text) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..81a2717c7b027cbc89e31ec5f9188a057f7bbad2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0220.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 UIComponentTextAttributeStringConstructs0220 { + @State errorMessage: string = ''; + controller: TextController = new TextController(); + StyledString: StyledString = new StyledString("这是一段测试文字", [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]) + + async onPageShow() { + this.controller.setStyledString(this.StyledString) + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) + .id('TextUIComponentTextAttributeStringConstructs0220') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('getStyles') + .id('btnUIComponentTextAttributeStringConstructs0220') + .onClick(() => { + try { + let styles = this.StyledString.getStyles(4, 6, StyledStringKey.FONT); + if (styles.length == 2) { + for (let i = 0; i < styles.length; i++) { + console.info('StyledString style object start:' + styles[i].start) + console.info('StyledString style object length:' + styles[i].length) + console.info('StyledString style object key:' + styles[i].styledKey) + } + } + } catch (e) { + this.errorMessage = JSON.stringify(e); + } + }) + Text(this.errorMessage) + .fontSize(30) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b22dde8ae71b1c8325b0eba3c19711bb333bedc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0320.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 UIComponentTextAttributeStringConstructs0320 { + @State errorMessage: string = ''; + controller: TextController = new TextController(); + StyledString: StyledString = new StyledString("这是一段测试文字", [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]) + + async onPageShow() { + this.controller.setStyledString(this.StyledString) + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) + .id('TextUIComponentTextAttributeStringConstructs0320') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('getStyles') + .id('btnUIComponentTextAttributeStringConstructs0320') + .onClick(() => { + try { + let styles = this.StyledString.subStyledString(-1, 3); + if (styles.length == 2) { + for (let i = 0; i < styles.length; i++) { + console.info('StyledString style object start:' + styles[i].start) + console.info('StyledString style object length:' + styles[i].length) + console.info('StyledString style object key:' + styles[i].styledKey) + } + } + } catch (e) { + this.errorMessage = JSON.stringify(e); + } + }) + Text(this.errorMessage) + .fontSize(30) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..f3ebf37736f48b9d0d36b9ea9de4eb6aa8b9181b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0330.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 UIComponentTextAttributeStringConstructs0330 { + @State errorMessage: string = ''; + controller: TextController = new TextController(); + StyledString: StyledString = new StyledString("这是一段测试文字", [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]) + + async onPageShow() { + this.controller.setStyledString(this.StyledString) + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) + .id('TextUIComponentTextAttributeStringConstructs0330') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('getStyles') + .id('btnUIComponentTextAttributeStringConstructs0330') + .onClick(() => { + try { + let styles = this.StyledString.subStyledString(20, 3); + if (styles.length == 2) { + for (let i = 0; i < styles.length; i++) { + console.info('StyledString style object start:' + styles[i].start) + console.info('StyledString style object length:' + styles[i].length) + console.info('StyledString style object key:' + styles[i].styledKey) + } + } + } catch (e) { + this.errorMessage = JSON.stringify(e); + } + }) + Text(this.errorMessage) + .fontSize(30) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..b26ca5b9de52031dc1b5abbeea96f8736e8a2d54 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0340.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 UIComponentTextAttributeStringConstructs0340 { + @State errorMessage: string = ''; + controller: TextController = new TextController(); + StyledString: StyledString = new StyledString("这是一段测试文字", [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]) + + async onPageShow() { + this.controller.setStyledString(this.StyledString) + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) + .id('TextUIComponentTextAttributeStringConstructs0340') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('getStyles') + .id('btnUIComponentTextAttributeStringConstructs0340') + .onClick(() => { + try { + let styles = this.StyledString.subStyledString(0, -3); + if (styles.length == 2) { + for (let i = 0; i < styles.length; i++) { + console.info('StyledString style object start:' + styles[i].start) + console.info('StyledString style object length:' + styles[i].length) + console.info('StyledString style object key:' + styles[i].styledKey) + } + } + } catch (e) { + this.errorMessage = JSON.stringify(e); + } + }) + Text(this.errorMessage) + .fontSize(30) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..653659e0f97ce783c4d7f029719585f29aa6188b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0350.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 UIComponentTextAttributeStringConstructs0350 { + @State errorMessage: string = ''; + controller: TextController = new TextController(); + StyledString: StyledString = new StyledString("这是一段测试文字", [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]) + + async onPageShow() { + this.controller.setStyledString(this.StyledString) + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) + .id('TextUIComponentTextAttributeStringConstructs0350') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('getStyles') + .id('btnUIComponentTextAttributeStringConstructs0350') + .onClick(() => { + try { + let styles = this.StyledString.subStyledString(0, 10); + if (styles.length == 2) { + for (let i = 0; i < styles.length; i++) { + console.info('StyledString style object start:' + styles[i].start) + console.info('StyledString style object length:' + styles[i].length) + console.info('StyledString style object key:' + styles[i].styledKey) + } + } + } catch (e) { + this.errorMessage = JSON.stringify(e); + } + }) + Text(this.errorMessage) + .fontSize(30) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..5fbf56edc17fb5371d1edfb112f30fadf09c0452 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0360.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 UIComponentTextAttributeStringConstructs0360 { + @State errorMessage: string = ''; + controller: TextController = new TextController(); + StyledString: StyledString = new StyledString("这是一段测试文字", [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]) + + async onPageShow() { + this.controller.setStyledString(this.StyledString) + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) + .id('TextUIComponentTextAttributeStringConstructs0360') + .copyOption(CopyOptions.InApp) + .draggable(true) + Button('getStyles') + .id('btnUIComponentTextAttributeStringConstructs0360') + .onClick(() => { + try { + let styles = this.StyledString.subStyledString(6, 4); + if (styles.length == 2) { + for (let i = 0; i < styles.length; i++) { + console.info('StyledString style object start:' + styles[i].start) + console.info('StyledString style object length:' + styles[i].length) + console.info('StyledString style object key:' + styles[i].styledKey) + } + } + } catch (e) { + this.errorMessage = JSON.stringify(e); + } + }) + Text(this.errorMessage) + .fontSize(30) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..5f72d762093ef73ef253795b55bbcd92e0f19968 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0460.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 UIComponentTextAttributeStringConstructs0460 { + controller: TextController = new TextController(); + StyledString: StyledString = new StyledString("这是一段测试文字", [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]) + + async onPageShow() { + this.controller.setStyledString(this.StyledString) + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) + .id('TextUIComponentTextAttributeStringConstructs0460') + .copyOption(CopyOptions.InApp) + .draggable(true) + TextArea() + .id('TextAreaUIComponentTextAttributeStringConstructs0460') + .copyOption(CopyOptions.InApp) + .draggable(true) + }.width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..8b05bef61dabe7dfc0bcbef4f1b724a7e5cd021a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0010.ets @@ -0,0 +1,158 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0010 { + @State widthSize: string = ''; + @State heightSize: string = ''; + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaaaaaaaaaaaaaaaaaaaaaaa" + + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then() + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0010') + .copyOption(CopyOptions.InApp) + .draggable(true) + .width(this.widthSize) + .height(this.heightSize) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0010') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .width(this.widthSize) + .height(this.heightSize) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0010') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .width(this.widthSize) + .height(this.heightSize) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0010') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .width(this.widthSize) + .height(this.heightSize) + Button('设置组件宽高') + .id('btnUIComponentTextCommonCopyOptionDraggable0010') + .onClick(() => { + this.widthSize = '60%'; + this.heightSize = '100'; + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..57cc09672cd0cf7152f07d58cf21aec2430318b0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0020.ets @@ -0,0 +1,159 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0020 { + @State widthSize: string = ''; + @State heightSize: string = ''; + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaaaaaaaaaaaaaaaaaaaaaaa" + + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0020') + .copyOption(CopyOptions.InApp) + .draggable(true) + .width(this.widthSize) + .height(this.heightSize) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0020') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .width(this.widthSize) + .height(this.heightSize) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0020') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .width(this.widthSize) + .height(this.heightSize) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0020') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .width(this.widthSize) + .height(this.heightSize) + Button('设置组件宽高') + .id('btnUIComponentTextCommonCopyOptionDraggable0020') + .onClick(() => { + this.widthSize = '60%'; + this.heightSize = '100'; + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..b98027876d8dee42b0ba3d0688dac6d24f4f7614 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0030.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 { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0030 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0030') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0030') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0030') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0030') + .copyOption(CopyOptions.InApp) + .draggable(true) + .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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b806222c95e800cf334529ae1683b8e8105916a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0040.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 { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0040 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0040') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0040') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0040') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0040') + .copyOption(CopyOptions.InApp) + .draggable(true) + .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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..5341fcb6a9f0f87f83180ca3203ce9045780d6be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0050.ets @@ -0,0 +1,143 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = 'drawing'; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0050 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan('Hello', 200, 100); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString('aaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' + + 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0050') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0050') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0050') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0050') + .copyOption(CopyOptions.InApp) + .draggable(true) + .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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b07f54bfe67e3be5ecadf3a37ba2f09ed29a680 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0060.ets @@ -0,0 +1,143 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0060 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaaaaaaaaaaaaaaaaaaaaaaa" + + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + + "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0060') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0060') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0060') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0060') + .copyOption(CopyOptions.InApp) + .draggable(true) + .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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..b13edf2060d90c21d3d5f1fa24351196a8c9d7ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0070.ets @@ -0,0 +1,155 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0070 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + @State textInputType: number | undefined = undefined; + @State searchType: number | undefined = undefined; + @State textAreaType: number | 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0070') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0070') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0070') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(this.textAreaType) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0070') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(this.textInputType) + Button('change type') + .id('btnUIComponentTextCommonCopyOptionDraggable0070') + .onClick(() => { + this.textInputType = InputType.NUMBER_PASSWORD; + this.searchType = SearchType.NUMBER; + this.textAreaType = TextAreaType.URL; + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..5caf8d106bb8491d8a0639a1f1e7475e61227973 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0080.ets @@ -0,0 +1,155 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0080 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + @State textInputType: number | undefined = undefined; + @State searchType: number | undefined = undefined; + @State textAreaType: number | 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0080') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0080') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0080') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(this.textAreaType) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0080') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(this.textInputType) + Button('change type') + .id('btnUIComponentTextCommonCopyOptionDraggable0080') + .onClick(() => { + this.textInputType = InputType.NUMBER_PASSWORD; + this.searchType = SearchType.NUMBER; + this.textAreaType = TextAreaType.URL; + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..a656691a4783c50dcd6fa04905c246a00e08b444 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0090.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'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0090 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0090') + .copyOption(CopyOptions.InApp) + .draggable(true) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0090') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .style(TextContentStyle.INLINE) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0090') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .style(TextInputStyle.Inline) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ee38259b378f371ddfc0dd5acc4817422c63e1b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0100.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 { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0100 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0100') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0100') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0100') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0100') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..74438b9acde3790550551c43ced86ccc00e4051e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0110.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 { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0110 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0110') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0110') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0110') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0110') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..686d9c0ab49e00f9769af564a436606d8fd1dd05 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0120.ets @@ -0,0 +1,172 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0120 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + @State onChangeNum: number = 0; + @State onPasteNum: number = 0; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(`onchange触发次数:${this.onChangeNum},onPaste触发次数:${this.onPasteNum}`) + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0120') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0120') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + .onChange(() => { + this.onChangeNum += 1; + }) + .onPaste(() => { + this.onPasteNum += 1; + }) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0120') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + .onChange(() => { + this.onChangeNum += 1; + }) + .onPaste(() => { + this.onPasteNum += 1; + }) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0120') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + .onChange(() => { + this.onChangeNum += 1; + }) + .onPaste(() => { + this.onPasteNum += 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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..b87d9eafb1c2728870753defbc05b7370a5e9fed --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0130.ets @@ -0,0 +1,172 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0130 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + @State onChangeNum: number = 0; + @State onPasteNum: number = 0; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(`onchange触发次数:${this.onChangeNum},onPaste触发次数:${this.onPasteNum}`) + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0130') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0130') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + .onChange(() => { + this.onChangeNum += 1; + }) + .onPaste(() => { + this.onPasteNum += 1; + }) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0130') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + .onChange(() => { + this.onChangeNum += 1; + }) + .onPaste(() => { + this.onPasteNum += 1; + }) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0130') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + .onChange(() => { + this.onChangeNum += 1; + }) + .onPaste(() => { + this.onPasteNum += 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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..184ea8cb27e459d990062b829cd71c9a672dd3cf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0140.ets @@ -0,0 +1,157 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0140 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0140') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search({ + placeholder: '请输入文本内容' + }) + .id('SearchUIComponentTextCommonCopyOptionDraggable0140') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + TextArea({ + placeholder: '请输入文本内容' + }) + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0140') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + TextInput({ + placeholder: '请输入文本内容' + }) + .id('TextInputUIComponentTextCommonCopyOptionDraggable0140') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..1ed3da08340229f01cb2b5371282db4729e54682 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0150.ets @@ -0,0 +1,157 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0150 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0150') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search({ + placeholder: '请输入文本内容' + }) + .id('SearchUIComponentTextCommonCopyOptionDraggable0150') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + TextArea({ + placeholder: '请输入文本内容' + }) + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0150') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + TextInput({ + placeholder: '请输入文本内容' + }) + .id('TextInputUIComponentTextCommonCopyOptionDraggable0150') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..0302e6b3c8aa755abb78a86b2d856c62bc54041b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0160.ets @@ -0,0 +1,167 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0160 { + textController: TextController = new TextController(); + textAreaController: TextAreaController = new TextAreaController(); + inputController: TextInputController = new TextInputController(); + searController: SearchController = new SearchController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0160') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search({ + controller: this.searController + }) + .id('SearchUIComponentTextCommonCopyOptionDraggable0160') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + TextArea({ + controller: this.textAreaController + }) + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0160') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + TextInput({ + controller: this.inputController + }) + .id('TextInputUIComponentTextCommonCopyOptionDraggable0160') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + Button('选中文本') + .id('btnUIComponentTextCommonCopyOptionDraggable0160') + .onClick(() => { + this.inputController.setTextSelection(0, 5); + this.searController.setTextSelection(0, 5); + this.textAreaController.setTextSelection(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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..9c470ed502334b65755e78e8a2128dc010ad7881 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0170.ets @@ -0,0 +1,167 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; + +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = "drawing"; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0170 { + textController: TextController = new TextController(); + textAreaController: TextAreaController = new TextAreaController(); + inputController: TextInputController = new TextInputController(); + searController: SearchController = new SearchController(); + customSpan: MyCustomSpan = new MyCustomSpan("Hello", 80, 10); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString("aaa123", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0170') + .copyOption(CopyOptions.InApp) + .draggable(true) + Search({ + controller: this.searController + }) + .id('SearchUIComponentTextCommonCopyOptionDraggable0170') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(SearchType.NUMBER) + .fontColor(Color.Green) + .textFont({ + size: 30 + }) + TextArea({ + controller: this.textAreaController + }) + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0170') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(TextAreaType.NORMAL) + .fontColor(Color.Red) + TextInput({ + controller: this.inputController + }) + .id('TextInputUIComponentTextCommonCopyOptionDraggable0170') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + .type(InputType.Normal) + .fontColor(Color.Orange) + Button('选中文本') + .id('btnUIComponentTextCommonCopyOptionDraggable0170') + .onClick(() => { + this.inputController.setTextSelection(0, 10); + this.searController.setTextSelection(0, 10); + this.textAreaController.setTextSelection(0, 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/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..7bcc2f5a1baed8806db5d8f426d1626fda510375 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0180.ets @@ -0,0 +1,136 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; +import { drawing } from '@kit.ArkGraphics2D' +import { image } from '@kit.ImageKit' +import { LengthMetrics } from '@kit.ArkUI' +import { KeyboardAvoidMode } from '@kit.ArkUI'; +class MyCustomSpan extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 160; + word: string = 'drawing'; + height: number = 10; +} + +@Entry +@Component +struct UIComponentTextCommonCopyOptionDraggable0180 { + textController: TextController = new TextController(); + customSpan: MyCustomSpan = new MyCustomSpan('Hello', 200, 50); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan); + imagePixelMap: image.PixelMap | undefined = undefined; + isPageShow: boolean = true; + + 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, + desiredSize: { width: 50, height: 50 } + }); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + if (!this.isPageShow) { + return + } + this.isPageShow = false; + this.mutableStyledString.appendStyledString(new StyledString(this.customSpan)) + this.mutableStyledString.appendStyledString(new StyledString('aaaaaaaaaaaaaaaaaaaaaaaa0', [{ + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green, fontSize: LengthMetrics.px(50) }) + }])) + this.textController.setStyledString(this.mutableStyledString) + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.icon')).then(); + this.getUIContext().setKeyboardAvoidMode(KeyboardAvoidMode.RESIZE); + } + + build() { + Column() { + Search() + .id('SearchUIComponentTextCommonCopyOptionDraggable0180') + .copyOption(CopyOptions.InApp) + .draggable(true) + TextArea() + .id('TextAreaUIComponentTextCommonCopyOptionDraggable0180') + .copyOption(CopyOptions.InApp) + .draggable(true) + .margin(10) + TextInput() + .id('TextInputUIComponentTextCommonCopyOptionDraggable0180') + .copyOption(CopyOptions.InApp) + .draggable(true) + Text(undefined, { controller: this.textController }) + .id('TextUIComponentTextCommonCopyOptionDraggable0180') + .copyOption(CopyOptions.InApp) + .draggable(true) + } + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan001.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f78c40852903c9ee48c6a898932423bf5089967 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan001.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class MyCustomSpan extends CustomSpan { + constructor(width: number) { + super(); + this.width = width; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width }; + } + + setWidth(width: number){ + this.width = width; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + } + + width: number = 0; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan001 { + @State customSpan1: MyCustomSpan = new MyCustomSpan(80); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + textController: TextController = new TextController(); + + async onPageShow() { + this.textController.setStyledString(this.style1); + } + + build() { + Row() { + Column() { + Button('改变width') + .id('UIComponentTextCommonCustomDrawingSpan001') + .margin({ bottom: 20 }) + .onClick(() => { + this.customSpan1.setWidth(20); + this.textController.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .fontSize(20) + .border({ width: 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/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan002.ets new file mode 100644 index 0000000000000000000000000000000000000000..ace3d991d6370424b7611a24d8983eda76174929 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan002.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +class MyCustomSpan2 extends CustomSpan { + constructor(width: number) { + super(); + this.width = width; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + } + + setWidth(width: number){ + this.width = width; + } + + width: number = 0; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan002 { + customSpan1: MyCustomSpan2 = new MyCustomSpan2(80); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + textController: TextController = new TextController(); + + async onPageShow() { + this.textController.setStyledString(this.style1) + } + + build() { + Row() { + Column() { + Button('改变width为-10') + .id('UIComponentTextCommonCustomDrawingSpan002') + .margin({ bottom: 20 }) + .onClick(() => { + this.customSpan1.setWidth(-10); + this.textController.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .fontSize(20) + .border({ width: 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/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan004.ets new file mode 100644 index 0000000000000000000000000000000000000000..6f8f5b86c40433c283c1f063dd650190de4dce83 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan004.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. + */ + +class MyCustomSpan4 extends CustomSpan { + constructor(width: number, height: number) { + super(); + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + } + + setHeight(height: number){ + this.height = height; + } + + width: number = 0; + height: number = 0; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan004 { + customSpan1: MyCustomSpan4 = new MyCustomSpan4(10, 80); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + textController: TextController = new TextController(); + + async onPageShow() { + this.textController.setStyledString(this.style1) + } + + build() { + Row() { + Column() { + Button('改变height') + .id('UIComponentTextCommonCustomDrawingSpan004') + .margin({ bottom: 20 }) + .onClick(() => { + this.customSpan1.setHeight(20); + this.textController.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .fontSize(20) + .border({ width: 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/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan005.ets new file mode 100644 index 0000000000000000000000000000000000000000..e67e024b6493652efb74f08cd40492e910a99f11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan005.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. + */ + +class MyCustomSpan5 extends CustomSpan { + constructor(width: number, height: number) { + super(); + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + } + + setHeight(height: number){ + this.height = height; + } + + width: number = 0; + height: number = 0; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan005 { + customSpan1: MyCustomSpan5 = new MyCustomSpan5(10, 80); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + textController: TextController = new TextController(); + + async onPageShow() { + this.textController.setStyledString(this.style1) + } + + build() { + Row() { + Column() { + Button('设置height为-10') + .id('UIComponentTextCommonCustomDrawingSpan005') + .margin({ bottom: 20 }) + .onClick(() => { + this.customSpan1.setHeight(-10); + this.textController.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .fontSize(20) + .border({ width: 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/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan007.ets new file mode 100644 index 0000000000000000000000000000000000000000..b154de464a6f344cf5e9c4b1dc0ee5c3e5622c2a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan007.ets @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan7 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString('hello', font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + width: number = 200; + height: number = 200; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan007 { + customSpan1: MyCustomSpan7 = new MyCustomSpan7(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + textController: TextController = new TextController(); + + async onPageShow() { + this.textController.setStyledString(this.style1) + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .fontSize(20) + .border({ width: 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/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan008.ets new file mode 100644 index 0000000000000000000000000000000000000000..ceb593b9f5c648301cf614895fcb4599c367db42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan008.ets @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan8 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString('hello', font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + width: number = 200; + height: number = 200; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan008 { + customSpan1: MyCustomSpan8 = new MyCustomSpan8(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + textController: TextController = new TextController(); + + async onPageShow() { + this.textController.setStyledString(this.style1) + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .fontSize(20) + .border({ width: 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/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan009.ets new file mode 100644 index 0000000000000000000000000000000000000000..9be1686df5c885376a97c2a817abd35094930ab3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan009.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. + */ + +class MyCustomSpan9 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + + } + + width: number = 200; + height: number = 200; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan009 { + customSpan1: MyCustomSpan9 = new MyCustomSpan9(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + textController: TextController = new TextController(); + + async onPageShow() { + this.textController.setStyledString(this.style1) + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .fontSize(20) + .border({ width: 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/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan010.ets new file mode 100644 index 0000000000000000000000000000000000000000..ac222835f0ade519127f9e497dddc3c6a0338828 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan010.ets @@ -0,0 +1,111 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan12 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString('Hello World', font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, options.lineBottom); + canvas.detachBrush(); + } + + width: number = 100; + height: number = 100; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan010 { + controller: TextController = new TextController(); + options: TextOptions = { controller: this.controller }; + customSpan1: MyCustomSpan12 = new MyCustomSpan12(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + + async onPageShow() { + this.controller.setStyledString(this.style1) + } + + build() { + Column() { + Column() { + Text(undefined, this.options) { + Span('Hello World') + } + .id('UIComponentTextCommonCustomDrawingSpan010') + .copyOption(CopyOptions.InApp) + .selection(0, 6) + .bindSelectionMenu(3, this.LongClickTextCustomMenu, TextResponseType.LONG_PRESS) + .borderWidth(1) + .borderColor(Color.Red) + .width(200) + .height(100) + } + .width('100%') + .backgroundColor(Color.White) + .alignItems(HorizontalAlign.Start) + .padding(25) + } + .height('100%') + } + + @Builder + LongClickTextCustomMenu() { + Column() { + Menu() { + MenuItemGroup() { + MenuItem({ content: 'Long Click Menu 1', labelInfo: '' }) + .onClick((event) => { + this.controller.closeSelectionMenu(); + }) + MenuItem({ content: 'Long Click Menu 2', labelInfo: '' }) + MenuItem({ content: 'Long Click Menu 3', labelInfo: '' }) + } + } + .MenuStyles() + } + } +} + +@Extend(Menu) +function MenuStyles() { + .clip(true) + .backgroundColor('#F0F0F0') +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan011.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a83031267ce3c81469b13a3583dd3e3a798d81c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan011.ets @@ -0,0 +1,115 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan12 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString('Hello World', font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, options.lineBottom); + canvas.detachBrush(); + } + + width: number = 100; + height: number = 100; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan011 { + controller: TextController = new TextController(); + options: TextOptions = { controller: this.controller }; + customSpan1: MyCustomSpan12 = new MyCustomSpan12(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + + async onPageShow() { + this.controller.setStyledString(this.style1) + } + + build() { + Column() { + Column() { + Text(undefined, this.options) { + Span('Hello World') + } + .id('UIComponentTextCommonCustomDrawingSpan011') + .copyOption(CopyOptions.InApp) + .selection(0, 6) + .borderWidth(1) + .borderColor(Color.Red) + .width(200) + .height(100) + + TextArea() + .id('TextAreaUIComponentTextCommonCustomDrawingSpan011') + .copyOption(CopyOptions.InApp) + .draggable(true) + } + .width('100%') + .backgroundColor(Color.White) + .alignItems(HorizontalAlign.Start) + .padding(25) + } + .height('100%') + } + + @Builder + LongClickTextCustomMenu() { + Column() { + Menu() { + MenuItemGroup() { + MenuItem({ content: 'Long Click Menu 1', labelInfo: '' }) + .onClick((event) => { + this.controller.closeSelectionMenu(); + }) + MenuItem({ content: 'Long Click Menu 2', labelInfo: '' }) + MenuItem({ content: 'Long Click Menu 3', labelInfo: '' }) + } + } + .MenuStyles() + } + } +} + +@Extend(Menu) +function MenuStyles() { + .clip(true) + .backgroundColor('#F0F0F0') +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan012.ets new file mode 100644 index 0000000000000000000000000000000000000000..cfd8dc7326927ea88c2939afa1cadebf02b2d37a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan012.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 { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan12 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString('Hello World', font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, options.lineBottom); + canvas.detachBrush(); + } + + width: number = 100; + height: number = 100; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan012 { + controller: TextController = new TextController(); + options: TextOptions = { controller: this.controller }; + customSpan1: MyCustomSpan12 = new MyCustomSpan12(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + + async onPageShow() { + this.controller.setStyledString(this.style1) + } + + build() { + Column() { + Column() { + Text(undefined, this.options) { + Span('Hello World') + } + .id('UIComponentTextCommonCustomDrawingSpan012') + .copyOption(CopyOptions.InApp) + .bindSelectionMenu(3, this.LongClickTextCustomMenu, TextResponseType.LONG_PRESS) + .borderWidth(1) + .borderColor(Color.Red) + .width(200) + .height(100) + } + .width('100%') + .backgroundColor(Color.White) + .alignItems(HorizontalAlign.Start) + .padding(25) + } + .height('100%') + } + + @Builder + LongClickTextCustomMenu() { + Column() { + Menu() { + MenuItemGroup() { + MenuItem({ content: "Long Click Menu 1", labelInfo: "" }) + .onClick((event) => { + this.controller.closeSelectionMenu(); + }) + MenuItem({ content: "Long Click Menu 2", labelInfo: "" }) + MenuItem({ content: "Long Click Menu 3", labelInfo: "" }) + } + } + .MenuStyles() + } + } +} + +@Extend(Menu) +function MenuStyles() { + .clip(true) + .backgroundColor('#F0F0F0') +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan013.ets new file mode 100644 index 0000000000000000000000000000000000000000..076c3a5e41bc4374ece0e05a6922527dfa70f900 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan013.ets @@ -0,0 +1,121 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { LengthMetrics } from '@kit.ArkUI'; + +class MyCustomSpan12 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString( + 'Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello ', + font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, 120); + canvas.detachBrush(); + } + + width: number = 200; + height: number = 200; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan013 { + controller: TextController = new TextController(); + options: TextOptions = { controller: this.controller }; + customSpan1: MyCustomSpan12 = new MyCustomSpan12(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + + async onPageShow() { + } + + build() { + Column() { + Column() { + Text(undefined, this.options) { + Span('Hello World') + } + .textOverflow({ + overflow: TextOverflow.MARQUEE + }) + .id('UIComponentTextCommonCustomDrawingSpan013') + .copyOption(CopyOptions.InApp) + .bindSelectionMenu(3, this.LongClickTextCustomMenu, TextResponseType.LONG_PRESS) + .borderWidth(1) + .borderColor(Color.Red) + .width(200) + .height(200) + + Button('MutableStyledString') + .id('UIComponentTextCommonCustomDrawingSpan013_btn1') + .onClick(() => { + this.controller.setStyledString(this.style1); + }) + } + .width('100%') + .backgroundColor(Color.White) + .alignItems(HorizontalAlign.Start) + .padding(25) + } + .height('100%') + } + + @Builder + LongClickTextCustomMenu() { + Column() { + Menu() { + MenuItemGroup() { + MenuItem({ content: 'Long Click Menu 1', labelInfo: '' }) + .onClick((event) => { + this.controller.closeSelectionMenu(); + }) + MenuItem({ content: 'Long Click Menu 2', labelInfo: '' }) + MenuItem({ content: 'Long Click Menu 3', labelInfo: '' }) + } + } + .MenuStyles() + } + } +} + +@Extend(Menu) +function MenuStyles() { + .clip(true) + .backgroundColor('#F0F0F0') +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan014.ets new file mode 100644 index 0000000000000000000000000000000000000000..63457a960b5b37e41d858023c4b4f64164e18fda --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan014.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 { drawing } from '@kit.ArkGraphics2D'; +import { LengthMetrics, LengthUnit } from '@kit.ArkUI'; + +class MyCustomSpan12 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString( + 'Hello World', + font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, 120); + canvas.detachBrush(); + } + + width: number = 200; + height: number = 200; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan014 { + controller: TextController = new TextController(); + options: TextOptions = { controller: this.controller }; + customSpan1: MyCustomSpan12 = new MyCustomSpan12(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + + async onPageShow() { + } + + build() { + Column() { + Column() { + Button('MutableStyledString') + .id('UIComponentTextCommonCustomDrawingSpan014_btn1') + .onClick(() => { + this.controller.setStyledString(this.style1); + }) + + Button('letterSpacing') + .id('UIComponentTextCommonCustomDrawingSpan014_btn2') + .onClick(() => { + this.style1.appendStyledString(new StyledString('Hello World', + [{ + start: 0, + length: 15, + styledKey: StyledStringKey.LETTER_SPACING, + styledValue: new LetterSpacingStyle(new LengthMetrics(10, LengthUnit.VP)) + }] + )) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, this.options) { + Span('Hello World') + } + .id('UIComponentTextCommonCustomDrawingSpan014') + .copyOption(CopyOptions.InApp) + .bindSelectionMenu(3, this.LongClickTextCustomMenu, TextResponseType.LONG_PRESS) + .borderWidth(1) + .borderColor(Color.Red) + .width(200) + .height(200) + } + .width('100%') + .backgroundColor(Color.White) + .alignItems(HorizontalAlign.Start) + .padding(25) + } + .height('100%') + } + + @Builder + LongClickTextCustomMenu() { + Column() { + Menu() { + MenuItemGroup() { + MenuItem({ content: 'Long Click Menu 1', labelInfo: '' }) + .onClick((event) => { + this.controller.closeSelectionMenu(); + }) + MenuItem({ content: 'Long Click Menu 2', labelInfo: '' }) + MenuItem({ content: 'Long Click Menu 3', labelInfo: '' }) + } + } + .MenuStyles() + } + } +} + +@Extend(Menu) +function MenuStyles() { + .clip(true) + .backgroundColor('#F0F0F0') +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan015.ets new file mode 100644 index 0000000000000000000000000000000000000000..c1951f9e05409bdef156478f53b71096992cd842 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan015.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. + */ + +class MyCustomSpan15 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + } + + width: number = 50; + height: number = 50; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan015 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan15 = new MyCustomSpan15(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State getString: string = ''; + + async onPageShow() { + this.controller.setStyledString(this.style1) + } + + build() { + Column() { + Column() { + Button('get string') + .id('UIComponentTextCommonCustomDrawingSpan015') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.style1) { + this.getString = 'getString value: ' + this.style1.getString(); + this.controller.setStyledString(this.style1); + } + }) + Text(undefined, { controller: this.controller }) { + } + + Text(this.getString) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan016.ets new file mode 100644 index 0000000000000000000000000000000000000000..bc4c77560ffba54516bda3b9d4a6275289dab864 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan016.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. + */ + +class MyCustomSpan16 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + } + + width: number = 50; + height: number = 50; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan016 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan16 = new MyCustomSpan16(); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State getLength: string = ''; + + async onPageShow() { + this.controller.setStyledString(this.style1) + } + + build() { + Column() { + Column() { + Button('get length') + .id('UIComponentTextCommonCustomDrawingSpan016') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.style1) { + this.getLength = 'getLength value: ' + this.style1.length; + this.controller.setStyledString(this.style1); + } + }) + Text(undefined, { controller: this.controller }) { + } + + Text(this.getLength) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan017.ets new file mode 100644 index 0000000000000000000000000000000000000000..0730dd9fb877e16be654153823809e1d9733effc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan017.ets @@ -0,0 +1,184 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { LengthMetrics } from '@kit.ArkUI'; + +class MyCustomSpan12 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString( + 'Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello ', + font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, 120); + canvas.detachBrush(); + } + + width: number = 200; + height: number = 200; +} + +class MyCustomSpan17 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString( + 'Test Test Test Test Test Test Test Test Test ', + font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 0, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, 60); + canvas.detachBrush(); + } + + width: number = 100; + height: number = 100; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan017 { + controller1: TextController = new TextController(); + options1: TextOptions = { controller: this.controller1 }; + customSpan1: MyCustomSpan12 = new MyCustomSpan12(); + customSpan3: MyCustomSpan12 = new MyCustomSpan17(); + style1: StyledString = new StyledString(this.customSpan1); + style2: StyledString = new StyledString(this.customSpan1); + style3: StyledString = new StyledString(this.customSpan3); + @State letterSpacing: number = 10; + @State equals1: string = ''; + @State equals2: string = ''; + + async onPageShow() { + this.controller1.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Text(undefined, this.options1) { + Span('Hello World') + } + .id('UIComponentTextCommonCustomDrawingSpan017') + .copyOption(CopyOptions.InApp) + .bindSelectionMenu(3, this.LongClickTextCustomMenu, TextResponseType.LONG_PRESS) + .letterSpacing(this.letterSpacing) + .borderWidth(1) + .borderColor(Color.Red) + .width(200) + .height(200) + + Button('get 按钮') + .id('UIComponentTextCommonCustomDrawingSpan017_btn1') + .margin(10) + .onClick(() => { + this.style2 = new StyledString(this.customSpan1); + }) + + Button('相等的两个custom span判断相同') + .id('UIComponentTextCommonCustomDrawingSpan017_btn2') + .margin(10) + .onClick(() => { + this.equals1 = '相等的两个custom span判断相同, 返回值: ' + this.style1.equals(this.style2); + }) + + Button('不相等的两个custom span判断不相同') + .id('UIComponentTextCommonCustomDrawingSpan017_btn3') + .margin(10) + .onClick(() => { + this.equals2 = '不相等的两个custom span判断不相同, 返回值: ' + this.style1.equals(this.style3); + }) + + Text(this.equals1).fontSize(30) + .margin(10) + Text(this.equals2).fontSize(30) + .margin(10) + } + .width('100%') + .backgroundColor(Color.White) + .alignItems(HorizontalAlign.Start) + .padding(25) + } + .height('100%') + } + + @Builder + LongClickTextCustomMenu() { + Column() { + Menu() { + MenuItemGroup() { + MenuItem({ content: 'Long Click Menu 1', labelInfo: '' }) + .onClick((event) => { + this.controller1.closeSelectionMenu(); + }) + MenuItem({ content: 'Long Click Menu 2', labelInfo: '' }) + MenuItem({ content: 'Long Click Menu 3', labelInfo: '' }) + } + } + .MenuStyles() + } + } +} + +@Extend(Menu) +function MenuStyles() { + .clip(true) + .backgroundColor('#F0F0F0') +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan019.ets new file mode 100644 index 0000000000000000000000000000000000000000..7af87c543ea98bb67007c9f9c3cdc2adbfb073fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan019.ets @@ -0,0 +1,121 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { LengthMetrics } from '@kit.ArkUI'; + +class MyCustomSpan12 extends CustomSpan { + constructor() { + super(); + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString( + 'Hello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello WorldHello ', + font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x, 120); + canvas.detachBrush(); + } + + width: number = 200; + height: number = 200; +} + + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan019 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan12 = new MyCustomSpan12(); + mutableStyledString: MutableStyledString | undefined = undefined; + @State letterSpacing: number = 10; + @State spanStyle: SpanStyle[] | null = null; + @State spanStr: string = ''; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('这是一段测试文字', [ + { + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }, + { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + } + ]); + this.controller.setStyledString(this.mutableStyledString); + } + + build() { + Column() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextCommonCustomDrawingSpan019') + .copyOption(CopyOptions.InApp) + .letterSpacing(this.letterSpacing) + .borderWidth(1) + .borderColor(Color.Red) + .width(200) + .height(200) + + Button('get 按钮') + .id('UIComponentTextCommonCustomDrawingSpan019_btn1') + .margin(10) + .onClick(() => { + if (this.mutableStyledString) { + this.spanStyle = this.mutableStyledString.getStyles( + 0, this.mutableStyledString.length, StyledStringKey.FONT + ); + this.spanStr = JSON.stringify(this.spanStyle); + } + }) + + Text(this.spanStr).fontSize(30) + .margin(10) + } + .width('100%') + .backgroundColor(Color.White) + .alignItems(HorizontalAlign.Start) + .padding(25) + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan020.ets new file mode 100644 index 0000000000000000000000000000000000000000..e9ee2e3b76beb55f72a68eae6ced0119413bc76a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan020.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 { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan20 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ alpha: 255, red: 0, green: 74, blue: 175 }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ alpha: 255, red: 23, green: 169, blue: 141 }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan020 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan20 = new MyCustomSpan20("Hello world", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State deleteLength: number = 0; + insertImagePixelMap: image.PixelMap | 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(); + await imageSource.release(); + return createPixelMap; + } + + + async onPageShow() { + this.insertImagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if(this.insertImagePixelMap !== undefined) { + let insert = new MutableStyledString(new ImageAttachment({ + value: this.insertImagePixelMap, + size: { width: 100, height: 100 }, + })); + this.style1.insertStyledString(0, insert); + } + this.style1.insertString(1, 'ha'); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 3') + .id('startButton') + .margin({ bottom: 20 }) + .onClick(() => { + this.startIndex = 3; + }) + + Button('Modify and delete length to 1') + .id('length') + .margin({ bottom: 20 }) + .onClick(() => { + this.deleteLength = 1; + }) + + Button('remove span') + .id('removeButton') + .margin({ bottom: 20 }) + .onClick(() => { + if (this.style1) { + this.style1.removeString(this.startIndex, this.deleteLength); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan021.ets new file mode 100644 index 0000000000000000000000000000000000000000..8c2cf1afbb03636aa835aef5fa515c60e158f0fd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan021.ets @@ -0,0 +1,107 @@ +/* + * Copyright (C) 2124 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan21 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ alpha: 255, red: 0, green: 74, blue: 175 }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ alpha: 255, red: 23, green: 169, blue: 141 }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 21, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 210; + height: number = 210; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan021 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan21 = new MyCustomSpan21("Hello world", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State deleteLength: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1) + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.deleteLength = 1; + }) + + Button('remove span') + .id('removeButton') + .margin({ bottom: 21 }) + .onClick(() => { + if (this.style1) { + this.style1.removeString(this.startIndex, this.deleteLength); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan022.ets new file mode 100644 index 0000000000000000000000000000000000000000..80bc1d15f8315a00a73f57485746ce2b2f1b3f0c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan022.ets @@ -0,0 +1,123 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan22 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan022 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan22 = new MyCustomSpan22("Hello world", 300, 300); + customSpan2: MyCustomSpan22 = new MyCustomSpan22("hahaha", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + + async onPageShow() { + this.style1.insertString(0,'sss') + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 3') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 3; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('Replace with span') + .id('UIComponentTextCommonCustomDrawingSpan022') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.replaceStyle({ + start: this.startIndex, + length: this.length, + styledKey: StyledStringKey.CUSTOM_SPAN, + styledValue: this.customSpan2 + }) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan023.ets new file mode 100644 index 0000000000000000000000000000000000000000..d091e4e427e3cd7aa0640a3fc6fce386963c8933 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan023.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 { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan23 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan023 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan23 = new MyCustomSpan23("Hello world", 100, 100); + customSpan2: MyCustomSpan23 = new MyCustomSpan23("hahaha", 100, 100); + customSpan3: MyCustomSpan23 = new MyCustomSpan23("hhhhh", 100, 100); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('Replace with span') + .id('UIComponentTextCommonCustomDrawingSpan023') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.replaceStyle({ + start: this.startIndex, + length: this.length, + styledKey: StyledStringKey.CUSTOM_SPAN, + styledValue: this.customSpan3 + }) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan024.ets new file mode 100644 index 0000000000000000000000000000000000000000..e1ea07537955d1d7fb3aafcc894ded6bf17c442f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan024.ets @@ -0,0 +1,124 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan24 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = 'drawing'; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan024 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan24 = new MyCustomSpan24('Hello world', 100, 100); + customSpan2: MyCustomSpan24 = new MyCustomSpan24('hahaha', 100, 100); + customSpan3: MyCustomSpan24 = new MyCustomSpan24('hhhhh', 100, 100); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.style1.appendStyledString(new StyledString(this.customSpan1)) + this.style1.appendStyledString(new StyledString(this.customSpan3)) + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('Replace with span') + .id('UIComponentTextCommonCustomDrawingSpan024') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.replaceStyle({ + start: this.startIndex, + length: this.length, + styledKey: StyledStringKey.CUSTOM_SPAN, + styledValue: this.customSpan3 + }) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..4063d552e0fceae506afd5ba5633d4d8cc5d09bd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0250.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 { drawing } from '@kit.ArkGraphics2D'; + +class CrashSpan extends CustomSpan { + constructor(word: string, width: number, height: number, fontSize: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + this.fontSize = fontSize; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(this.fontSize); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + fontSize: number = 25; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan0250 { + controller: TextController = new TextController(); + customSpan1: CrashSpan = new CrashSpan("Hello world", 200, 200, 30); + customSpan: CrashSpan = new CrashSpan("hahaha", 300, 300, 80); + style1: MutableStyledString = new MutableStyledString(this.customSpan); + @State startIndex: number = 0; + @State length: number = 0; + @State msg: string = ''; + + async onPageShow() { + this.style1.insertString(0, 'sss') + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 3') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = -1; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('setStyle') + .id('UIComponentTextCommonCustomDrawingSpan0250') + .margin({ bottom: 20 }) + .onClick(() => { + try { + this.style1.replaceStyle( + { + start: this.startIndex, + length: this.length, + styledKey: StyledStringKey.CUSTOM_SPAN, + styledValue: this.customSpan1 + } + ); + this.controller.setStyledString(this.style1); + } catch (err) { + this.msg = err.code; + } + } + ) + + Text(undefined, { controller: this.controller }) { + } + + Text('错误码:' + this.msg) + .fontSize(20) + .fontColor(Color.Red) + + } + } + + .height + ('100%' + ) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan027.ets new file mode 100644 index 0000000000000000000000000000000000000000..a5505fc1ad931154a5b78ad98acbf1231c9f50c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan027.ets @@ -0,0 +1,123 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan27 extends CustomSpan { + constructor(word: string, width: number, height: number, fontSize: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + this.fontSize = fontSize; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(this.fontSize); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + fontSize: number = 25; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan027 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan27 = new MyCustomSpan27("Hello world", 200, 200, 30); + customSpan2: MyCustomSpan27 = new MyCustomSpan27("hahaha", 300, 300, 80); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.insertString(0, 'sss') + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 3') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 3; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('setStyle') + .id('UIComponentTextCommonCustomDrawingSpan027') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.setStyle({ + start: this.startIndex, + length: this.length, + styledKey: StyledStringKey.CUSTOM_SPAN, + styledValue: this.customSpan2 + }) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan028.ets new file mode 100644 index 0000000000000000000000000000000000000000..e1ca8de056450b831f1787f27711f160ccf1335b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan028.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 { common2D, drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan28 extends CustomSpan { + constructor(word: string, width: number, height: number, color: common2D.Color) { + super(); + this.word = word; + this.width = width; + this.height = height; + this.color = color; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor(this.color); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 28, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + color: common2D.Color = { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan028 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan28 = new MyCustomSpan28("Hello world", 100, 100, { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + customSpan2: MyCustomSpan28 = new MyCustomSpan28("hahaha", 100, 100, { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + customSpan3: MyCustomSpan28 = new MyCustomSpan28("new style", 100, 100, { + alpha: 255, + red: 255, + green: 0, + blue: 0 + }); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('setStyle') + .id('UIComponentTextCommonCustomDrawingSpan028') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.setStyle({ + start: this.startIndex, + length: this.length, + styledKey: StyledStringKey.CUSTOM_SPAN, + styledValue: this.customSpan3 + }) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..1bc9ca21315421e16e75c10a253f70c6ce29e852 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0290.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 { drawing } from '@kit.ArkGraphics2D'; + +class CrashSpan1 extends CustomSpan { + constructor(word: string, width: number, height: number, fontSize: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + this.fontSize = fontSize; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(this.fontSize); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + fontSize: number = 25; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan0290 { + controller: TextController = new TextController(); + customSpan1: CrashSpan1 = new CrashSpan1("Hello world", 200, 200, 30); + customSpan: CrashSpan1 = new CrashSpan1("hahaha", 300, 300, 80); + style1: MutableStyledString = new MutableStyledString(this.customSpan); + @State startIndex: number = 0; + @State length: number = 0; + @State msg: string = ''; + + async onPageShow() { + this.style1.insertString(0, 'sss') + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 3') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 1; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length =20; + }) + Button('setStyle') + .id('UIComponentTextCommonCustomDrawingSpan0290') + .margin({ bottom: 20 }) + .onClick(() => { + try { + this.style1.setStyle( + { + start: this.startIndex, + length: this.length, + styledKey: StyledStringKey.CUSTOM_SPAN, + styledValue: this.customSpan1 + } + ); + this.controller.setStyledString(this.style1); + } catch (err) { + this.msg = err.code; + } + } + ) + + Text(undefined, { controller: this.controller }) { + } + + Text('错误码:' + this.msg) + .fontSize(20) + .fontColor(Color.Red) + + } + } + + .height + ('100%' + ) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan032.ets new file mode 100644 index 0000000000000000000000000000000000000000..e37cd52ea1f63b0dc47ac660104f8a8b53c2a34b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan032.ets @@ -0,0 +1,121 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { common2D, drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan32 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 32, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + color: common2D.Color = { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan032 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan32 = new MyCustomSpan32("Hello world", 150, 150); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.insertString(0, 'hi'); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 2') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 2; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('remove style') + .id('UIComponentTextCommonCustomDrawingSpan032') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan033.ets new file mode 100644 index 0000000000000000000000000000000000000000..fcc5e44069b5dbc73ab184f5e8a05dfd0fbcc55c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan033.ets @@ -0,0 +1,121 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { common2D, drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan33 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 33, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + color: common2D.Color = { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan033 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan33 = new MyCustomSpan33("Hello world", 150, 150); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.insertString(1, 'hi'); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('remove style') + .id('UIComponentTextCommonCustomDrawingSpan033') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan034.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb3b9b239d446f086a046413e4c12e0143dff0a1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan034.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 { common2D, drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan34 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 34, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + color: common2D.Color = { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan034 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan34 = new MyCustomSpan34("Hello world", 150, 150); + customSpan2: MyCustomSpan34 = new MyCustomSpan34("hi", 150, 150); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 2') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 2; + }) + Button('remove style') + .id('UIComponentTextCommonCustomDrawingSpan034') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan035.ets new file mode 100644 index 0000000000000000000000000000000000000000..48b9e3aac15a9c9cd9cea0f9a9cfa598e486865b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan035.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 { common2D, drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan34 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 34, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + color: common2D.Color = { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan035 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan34 = new MyCustomSpan34("Hello world", 150, 150); + customSpan2: MyCustomSpan34 = new MyCustomSpan34("hi", 150, 150); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 2') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 2; + }) + Button('remove style') + .id('UIComponentTextCommonCustomDrawingSpan035') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan036.ets new file mode 100644 index 0000000000000000000000000000000000000000..37bc3ca26bb6596a657b342430ae3b0fb1e02824 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan036.ets @@ -0,0 +1,148 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan36 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 36, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan036 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan36 = new MyCustomSpan36("Hello world", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + insertImagePixelMap: image.PixelMap | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.insertImagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.insertImagePixelMap !== undefined) { + let insert = new MutableStyledString(new ImageAttachment({ + value: this.insertImagePixelMap, + size: { width: 100, height: 100 }, + })); + this.style1.insertStyledString(0, insert); + } + + let mutableStyledString = new MutableStyledString('测试文字', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Blue }) + }]); + this.style1.insertStyledString(1, mutableStyledString); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 36 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 6') + .id('length') + .margin({ bottom: 36 }) + .onClick(() => { + this.length = 6; + }) + + Button('remove style') + .id('removeButton') + .margin({ bottom: 36 }) + .onClick(() => { + if (this.style1) { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan037.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan037.ets new file mode 100644 index 0000000000000000000000000000000000000000..1854458470e54e712e36c68755acb9b60e0020b0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan037.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 { common2D, drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan37 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 255, + green: 255, + blue: 0 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 37, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + color: common2D.Color = { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan037 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan37 = new MyCustomSpan37("Hello world", 150, 150); + customSpan2: MyCustomSpan37 = new MyCustomSpan37("hi", 150, 150); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 1; + }) + Button('remove style') + .id('removeButton') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + .id("UIComponentTextCommonCustomDrawingSpan037") + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan038.ets new file mode 100644 index 0000000000000000000000000000000000000000..565c20bd713c52718eaeb60a2487e5b7bafdb3db --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan038.ets @@ -0,0 +1,124 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { common2D, drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan38 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 255, + green: 255, + blue: 0 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 38, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 20, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; + color: common2D.Color = { + alpha: 255, + red: 0, + green: 74, + blue: 175 + }; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan038 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan38 = new MyCustomSpan38("Hello world", 150, 150); + customSpan2: MyCustomSpan38 = new MyCustomSpan38("hi", 150, 150); + customSpan3: MyCustomSpan38 = new MyCustomSpan38("hey", 150, 150); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.style1.appendStyledString(new StyledString(this.customSpan3)) + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 21 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify length to 3') + .id('length') + .margin({ bottom: 21 }) + .onClick(() => { + this.length = 3; + }) + Button('remove style') + .id('removeButton') + .margin({ bottom: 20 }) + .onClick(() => { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + .id("UIComponentTextCommonCustomDrawingSpan038") + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan039.ets new file mode 100644 index 0000000000000000000000000000000000000000..70c7ba37b07e276b7b1f097c878beb78e10b0f66 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan039.ets @@ -0,0 +1,150 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan39 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 39, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan039 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan39 = new MyCustomSpan39("Hello world", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + insertImagePixelMap: image.PixelMap | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.insertImagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.insertImagePixelMap !== undefined) { + let insert = new MutableStyledString(new ImageAttachment({ + value: this.insertImagePixelMap, + size: { width: 100, height: 100 }, + })); + this.style1.insertStyledString(0, insert); + } + + let mutableStyledString = new MutableStyledString('字', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.style1.insertStyledString(2, mutableStyledString); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 39 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 1') + .id('length') + .margin({ bottom: 39 }) + .onClick(() => { + this.length = 1; + }) + + Button('remove style') + .id('removeButton') + .margin({ bottom: 39 }) + .onClick(() => { + if (this.style1) { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.IMAGE); + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN); + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.FONT); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan040.ets new file mode 100644 index 0000000000000000000000000000000000000000..cd291307d99c1fdb8a244adff6ee5b747d2013ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan040.ets @@ -0,0 +1,157 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan40 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 40, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan040 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan40 = new MyCustomSpan40("Hello world", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + mutableStyledString: MutableStyledString | undefined = undefined; + @State startIndex: number = 0; + @State length: number = 0; + @State styledStringLength: number = 0; + insertImagePixelMap: image.PixelMap | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.insertImagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.insertImagePixelMap !== undefined) { + let insert = new MutableStyledString(new ImageAttachment({ + value: this.insertImagePixelMap, + size: { width: 100, height: 100 }, + })); + this.style1.insertStyledString(1, insert); + } + + this.mutableStyledString = new MutableStyledString('测试文字', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.styledStringLength = this.mutableStyledString.length; + this.style1.insertStyledString(2, this.mutableStyledString); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 1') + .id('length') + .margin({ bottom: 40 }) + .onClick(() => { + this.length = 1; + }) + + Button('remove style') + .id('removeButton') + .margin({ bottom: 40 }) + .onClick(() => { + if (this.style1) { + this.style1.removeStyle(this.startIndex, this.length, StyledStringKey.CUSTOM_SPAN); + this.controller.setStyledString(this.style1); + if(this.mutableStyledString) { + this.styledStringLength = this.mutableStyledString.length; + } + } + }) + + Text(undefined, { controller: this.controller }) { + } + + Text('属性字符串的长度为:'+ this.styledStringLength.toString()) { + } + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan041.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f4ae85abddbba052215ef4111e196b974eaf640 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan041.ets @@ -0,0 +1,133 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan41 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 141 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 41, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan041 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan41 = new MyCustomSpan41("Hello world", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + mutableStyledString: MutableStyledString | undefined = undefined; + @State startIndex: number = 0; + insertImagePixelMap: image.PixelMap | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.insertImagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.insertImagePixelMap !== undefined) { + let insert = new MutableStyledString(new ImageAttachment({ + value: this.insertImagePixelMap, + size: { width: 100, height: 100 }, + })); + this.style1.insertStyledString(1, insert); + } + + this.mutableStyledString = new MutableStyledString('测试文字', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.style1.insertStyledString(2, this.mutableStyledString); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('clear styles') + .id('clearButton') + .margin({ bottom: 40 }) + .onClick(() => { + if (this.style1) { + this.style1.clearStyles(); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan042.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan042.ets new file mode 100644 index 0000000000000000000000000000000000000000..41087e36eb98bdab50ef65874fc6735a518dfb16 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan042.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 { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan42 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 142 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 42, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 420; + height: number = 420; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan042 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan42 = new MyCustomSpan42("Hello world", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + mutableStyledString: MutableStyledString | undefined = undefined; + @State startIndex: number = 0; + @State length: number = 0; + insertImagePixelMap: image.PixelMap | undefined = undefined; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('测试文字', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 42 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 1') + .id('length') + .margin({ bottom: 42 }) + .onClick(() => { + this.length = 1; + }) + + Button('replace StyledString') + .id('replaceButton') + .margin({ bottom: 42 }) + .onClick(() => { + if (this.style1) { + this.style1.replaceStyledString(this.startIndex, this.length, this.mutableStyledString); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan043.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan043.ets new file mode 100644 index 0000000000000000000000000000000000000000..ed04bf84b9d82ce1fe56b76533b177d8cd71da5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan043.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 { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan43 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 143 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 43, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 430; + height: number = 430; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan043 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan43 = new MyCustomSpan43("Hello world", 300, 300); + customSpan2: MyCustomSpan43 = new MyCustomSpan43("hi", 300, 300); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + mutableStyledString: MutableStyledString = new MutableStyledString(this.customSpan2); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 43 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 1') + .id('length') + .margin({ bottom: 43 }) + .onClick(() => { + this.length = 1; + }) + + Button('replace StyledString') + .id('replaceButton') + .margin({ bottom: 43 }) + .onClick(() => { + if (this.style1) { + this.style1.replaceStyledString(this.startIndex, this.length, this.mutableStyledString); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan044.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan044.ets new file mode 100644 index 0000000000000000000000000000000000000000..cfd907d81511bae28ec3c101d18ab73882dbf0da --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan044.ets @@ -0,0 +1,124 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan44 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 144 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 44, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan044 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan44 = new MyCustomSpan44("Hello", 300, 300); + customSpan2: MyCustomSpan44 = new MyCustomSpan44("hi", 100, 100); + customSpan3: MyCustomSpan44 = new MyCustomSpan44("hey", 200, 200); + customSpan4: MyCustomSpan44 = new MyCustomSpan44("Hello world", 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + replaceStyledString: MutableStyledString = new MutableStyledString(this.customSpan4); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.style1.appendStyledString(new MutableStyledString(this.customSpan2)); + this.style1.appendStyledString(new MutableStyledString(this.customSpan3)); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 3') + .id('length') + .margin({ bottom: 40 }) + .onClick(() => { + this.length = 3; + }) + + Button('replace StyledString') + .id('replaceButton') + .margin({ bottom: 40 }) + .onClick(() => { + if (this.style1) { + this.style1.replaceStyledString(this.startIndex, this.length, this.replaceStyledString); + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan045.ets new file mode 100644 index 0000000000000000000000000000000000000000..921edb4033c1c02ae8cc578425f5705b647e65aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan045.ets @@ -0,0 +1,145 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan45 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 145 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 45, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan045 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan45 = new MyCustomSpan45("Hello", 300, 300); + customSpan2: MyCustomSpan45 = new MyCustomSpan45("hi", 100, 100); + customSpan3: MyCustomSpan45 = new MyCustomSpan45("hey", 200, 200); + customSpan4: MyCustomSpan45 = new MyCustomSpan45("Hello world", 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + imagePixelMap: image.PixelMap | undefined = undefined; + replaceStyledString: MutableStyledString = new MutableStyledString(this.customSpan4); + @State startIndex: number = 0; + @State length: number = 0; + + 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.style1.appendStyledString(new MutableStyledString(this.customSpan2)); + this.style1.appendStyledString(new MutableStyledString(this.customSpan3)); + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 3') + .id('length') + .margin({ bottom: 40 }) + .onClick(() => { + this.length = 3; + }) + + Button('replace StyledString') + .id('replaceButton') + .margin({ bottom: 40 }) + .onClick(() => { + if (this.style1) { + if (this.imagePixelMap !== undefined) { + this.replaceStyledString.appendStyledString(new StyledString(new ImageAttachment({ + value: this.imagePixelMap, + size: { width: 100, height: 100 }, + }))); + } + this.style1.replaceStyledString(this.startIndex, this.length, this.replaceStyledString); + + this.controller.setStyledString(this.style1); + } + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } + } diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan046.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan046.ets new file mode 100644 index 0000000000000000000000000000000000000000..477c28c0074582695fa0e23aa9ffa97ae0e870aa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan046.ets @@ -0,0 +1,116 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan46 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 146 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 46, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan046 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan46 = new MyCustomSpan46("Hello", 100, 100); + customSpan2: MyCustomSpan46 = new MyCustomSpan46("hi", 100, 100); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 0') + .id('startButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.startIndex = 0; + }) + + Button('Modify and delete length to 1') + .id('length') + .margin({ bottom: 40 }) + .onClick(() => { + this.length = 1; + }) + + Button('insertStyled') + .id('insertButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.style1.insertStyledString(this.startIndex, new MutableStyledString(this.customSpan2)); + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan047.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan047.ets new file mode 100644 index 0000000000000000000000000000000000000000..5934e480b7488629f7e1b31c59fccef7ab339a5e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan047.ets @@ -0,0 +1,116 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan47 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 147 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 47, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan047 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan47 = new MyCustomSpan47("Hello", 100, 100); + customSpan2: MyCustomSpan47 = new MyCustomSpan47("hi", 100, 100); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Change the starting position to 1') + .id('startButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.startIndex = 1; + }) + + Button('Modify length to 1') + .id('length') + .margin({ bottom: 40 }) + .onClick(() => { + this.length = 1; + }) + + Button('insert StyledString') + .id('insertButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.style1.insertStyledString(this.startIndex, new MutableStyledString(this.customSpan2)); + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan048.ets new file mode 100644 index 0000000000000000000000000000000000000000..4defb982a58cca06dad6a4052a75fb541beaea99 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan048.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 { drawing } from '@kit.ArkGraphics2D'; +import { image } from '@kit.ImageKit'; + +class MyCustomSpan48 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 74, + blue: 175 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 148 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 48, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan048 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan48 = new MyCustomSpan48("Hello", 100, 100); + customSpan2: MyCustomSpan48 = new MyCustomSpan48("hi", 100, 100); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('append StyledString') + .id('appendButton') + .margin({ bottom: 40 }) + .onClick(() => { + this.style1.appendStyledString(new MutableStyledString(this.customSpan2)); + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan049.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan049.ets new file mode 100644 index 0000000000000000000000000000000000000000..8bd65d41fbcc93aed92755fdd76f50459aa265bc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan049.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 { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan49 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 149 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 49, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan049 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan49 = new MyCustomSpan49("Hello", 100, 100); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .copyOption(CopyOptions.InApp) + .id('UIComponentTextCommonCustomDrawingSpan049') + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan050.ets new file mode 100644 index 0000000000000000000000000000000000000000..900d9d9ddb4e9446ecccb2197555646586764ecc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan050.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 { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan50 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 150 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 50, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = 'drawing'; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan050 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan50 = new MyCustomSpan50('Hello', 100, 100); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .copyOption(CopyOptions.InApp) + .id('UIComponentTextCommonCustomDrawingSpan050') + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan051.ets new file mode 100644 index 0000000000000000000000000000000000000000..0a0e2933c8ca134fdf321f4176b6ca3e271f2fdf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan051.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 { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan51 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 151 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 51, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan051 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan51 = new MyCustomSpan51("Hello", 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .obscured([ObscuredReasons.PLACEHOLDER]) + .copyOption(CopyOptions.InApp) + .id('UIComponentTextCommonCustomDrawingSpan051') + .border({ width: 1 }) + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan052.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d06f051b75119edd020b8c0b2fea6ef82c8fa45 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan052.ets @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan52 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 152 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 52, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan052 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan52 = new MyCustomSpan52("Hello", 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + @State isshow: boolean = true; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('isshow CustomSpan') + .id('UIComponentTextCommonCustomDrawingSpan052') + .margin({ bottom: 43 }) + .onClick(() => { + this.isshow = !this.isshow; + }) + Text(undefined, { controller: this.controller }) { + } + .visibility(this.isshow ? Visibility.Visible : Visibility.None) + .border({ width: 1 }) + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan053.ets new file mode 100644 index 0000000000000000000000000000000000000000..45bbbd4295b1bad896eabdcc10bd4b0d475139fb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan053.ets @@ -0,0 +1,104 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan53 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 153 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 53, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan053 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan53 = new MyCustomSpan53("Hello", 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + @State enabledSpan: boolean = true; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('Disable CustomSpan') + .id('enabledButton') + .margin({ bottom: 43 }) + .onClick(() => { + this.enabledSpan = false; + }) + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextCommonCustomDrawingSpan053') + .enabled(this.enabledSpan) + .copyOption(CopyOptions.InApp) + .border({ width: 1 }) + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan054.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan054.ets new file mode 100644 index 0000000000000000000000000000000000000000..ecae749e5a4e5e63ef86fb1de1cbf0d7a80056c6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan054.ets @@ -0,0 +1,105 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan54 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 154 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 54, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan054 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan54 = new MyCustomSpan54("Hello", 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + @State startIndex: number = 0; + @State length: number = 0; + @State enabledSpan: boolean = true; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextCommonCustomDrawingSpan054') + .draggable(true) + .border({ width: 1 }) + .margin({ bottom: 50 }) + .copyOption(CopyOptions.InApp) + + TextArea() + .id('textArea') + .border({ width: 1 }) + .width(200) + .height(200) + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan055.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan055.ets new file mode 100644 index 0000000000000000000000000000000000000000..f09c92bb92d4d3bb61e24640e3c28a17102755ee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan055.ets @@ -0,0 +1,102 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan55 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 155 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 55, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = "drawing"; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan055 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan55 = new MyCustomSpan55("Hello", 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan1); + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('insert string') + .id('UIComponentTextCommonCustomDrawingSpan055') + .margin({ bottom: 40 }) + .onClick(() => { + this.style1.insertString(1, 'hey'); + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + .border({ width: 1 }) + .padding(20) + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan056.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan056.ets new file mode 100644 index 0000000000000000000000000000000000000000..ca16aae0a58c0fb24eba7559b8525213f642d156 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan056.ets @@ -0,0 +1,111 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { drawing } from '@kit.ArkGraphics2D'; + +class MyCustomSpan56 extends CustomSpan { + constructor(word: string, width: number, height: number) { + super(); + this.word = word; + this.width = width; + this.height = height; + } + + onMeasure(measureInfo: CustomSpanMeasureInfo): CustomSpanMetrics { + return { width: this.width, height: this.height }; + } + + onDraw(context: DrawContext, options: CustomSpanDrawInfo) { + let canvas = context.canvas; + + const brush = new drawing.Brush(); + brush.setColor({ + alpha: 255, + red: 0, + green: 255, + blue: 255 + }); + const font = new drawing.Font(); + font.setSize(25); + const textBlob = drawing.TextBlob.makeFromString(this.word, font, drawing.TextEncoding.TEXT_ENCODING_UTF8); + canvas.attachBrush(brush); + canvas.drawRect({ + left: options.x + 10, + right: options.x + vp2px(this.width) - 10, + top: options.lineTop + 10, + bottom: options.lineBottom - 10 + }); + + brush.setColor({ + alpha: 255, + red: 23, + green: 169, + blue: 155 + }); + canvas.attachBrush(brush); + canvas.drawTextBlob(textBlob, options.x + 55, options.lineBottom - 15); + canvas.detachBrush(); + } + + setWord(word: string) { + this.word = word; + } + + width: number = 200; + height: number = 200; + word: string = 'drawing'; +} + +@Entry +@Component +struct UIComponentTextCommonCustomDrawingSpan056 { + controller: TextController = new TextController(); + customSpan1: MyCustomSpan56 = new MyCustomSpan56('Hello', 200, 200); + customSpan2: MyCustomSpan56 = new MyCustomSpan56('HelloHelloHelloHelloHelloHelloHelloHello', 200, 200); + style1: MutableStyledString = new MutableStyledString(this.customSpan2); + @State clipVal: boolean = true; + + async onPageShow() { + this.controller.setStyledString(this.style1); + } + + build() { + Column() { + Column() { + Button('insert string') + .id('UIComponentTextCommonCustomDrawingSpan056_1') + .onClick(() => { + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.controller.setStyledString(this.style1); + }) + Button('clip button') + .id('UIComponentTextCommonCustomDrawingSpan056_2') + .margin(20) + .onClick(() => { + this.clipVal = !this.clipVal; + this.style1.appendStyledString(new StyledString(this.customSpan2)) + this.controller.setStyledString(this.style1); + }) + + Text(undefined, { controller: this.controller }) { + } + .border({ width: 1 }) + .clip(this.clipVal) + + } + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater001.ets new file mode 100644 index 0000000000000000000000000000000000000000..d2b4a7bdf92001ac445332d31120178e27b58acd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater001.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 { AttributeUpdater } from '@kit.ArkUI' + +class MyTextModifier extends AttributeUpdater { + initializeModifier(instance: TextAttribute) { + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater001 { + private modifier: MyTextModifier = new MyTextModifier() + + build() { + Row() { + Column() { + Text("Hello") + .attributeModifier(this.modifier) + .fontSize(14).border({ width: 1 }).textAlign(TextAlign.Center).lineHeight(20) + .width(200).height(50) + .backgroundColor(Color.Green) + .id('UIComponentTextCommonItscaAttributeUpdater001') + .onClick(() => { + this.modifier.updateConstructorParams("Updated"); + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater002.ets new file mode 100644 index 0000000000000000000000000000000000000000..186c938e2e657dfb1e2572270a81ffef75331349 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater002.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 { AttributeUpdater } from '@kit.ArkUI' + +class MyTextModifier extends AttributeUpdater { + initializeModifier(instance: TextAttribute) { + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater002 { + private modifier: MyTextModifier = new MyTextModifier() + + + + build() { + Row() { + Column() { + Text("Hello") + .attributeModifier(this.modifier) + .fontSize(14).border({ width: 1 }).textAlign(TextAlign.Center).lineHeight(20) + .width(200).height(50) + .backgroundColor(Color.Yellow) + .id('UIComponentTextCommonItscaAttributeUpdater002') + .onClick(() => { + this.modifier.updateConstructorParams(getContext().resourceManager.getStringSync($r("app.string.attributeUpdater"))); + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater003.ets new file mode 100644 index 0000000000000000000000000000000000000000..ac4c9eb17dec94e5fb0d0861e0c787b71fec5785 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater003.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 { AttributeUpdater } from '@kit.ArkUI' + +class MyTextModifier extends AttributeUpdater { + initializeModifier(instance: TextAttribute) { + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater003 { + private modifier: MyTextModifier = new MyTextModifier() + + build() { + Row() { + Column() { + Text("Hello") + .attributeModifier(this.modifier) + .fontSize(14).border({ width: 1 }).textAlign(TextAlign.Center).lineHeight(20) + .width(200).height(50) + .backgroundColor(Color.Green) + .id('UIComponentTextCommonItscaAttributeUpdater003') + .onClick(() => { + this.modifier.updateConstructorParams(undefined); + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater004.ets new file mode 100644 index 0000000000000000000000000000000000000000..6328a549952ea2e080ad178c2503881152ef5a74 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater004.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 { AttributeUpdater } from '@kit.ArkUI' + +class MyTextModifier extends AttributeUpdater { + initializeModifier(instance: TextAttribute) { + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater004 { + private modifier: MyTextModifier = new MyTextModifier() + + build() { + Row() { + Column() { + Text("Hello") + .attributeModifier(this.modifier) + .fontSize(14).border({ width: 1 }).textAlign(TextAlign.Center).lineHeight(20) + .width(200).height(50) + .backgroundColor(Color.Green) + .id('UIComponentTextCommonItscaAttributeUpdater004') + .onClick(() => { + this.modifier.updateConstructorParams(''); + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater005.ets new file mode 100644 index 0000000000000000000000000000000000000000..60d07c7d479f6885173650f3a0585a41a751efef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater005.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 { AttributeUpdater } from '@kit.ArkUI'; + +class MyTextModifier extends AttributeUpdater { + initializeModifier(instance: TextAttribute) { + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater005 { + controller: TextController = new TextController(); + private modifier: MyTextModifier = new MyTextModifier() + + build() { + Row() { + Column() { + Button('change text') + .id('change') + .onClick(() => { + this.modifier.updateConstructorParams("Updated"); + }) + + + Text('Initialize', { controller: this.controller }) + .attributeModifier(this.modifier) + .fontSize(14) + .border({ width: 1 }) + .textAlign(TextAlign.Center) + .lineHeight(20) + .width(200) + .height(50) + .id('UIComponentTextCommonItscaAttributeUpdater005') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater006.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f978b9dfea279a55d10a9870f1fe2cd65b08984 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater006.ets @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI'; + +class MyTextModifier extends AttributeUpdater { + initializeModifier(instance: TextAttribute) { + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater006 { + controller: TextController | null = null; + private modifier: MyTextModifier = new MyTextModifier() + + build() { + Row() { + Column() { + Button('change text') + .id('change') + .onClick(() => { + this.controller = new TextController(); + this.modifier.updateConstructorParams('Updated'); + }) + + + Text('Initialize', { controller: this.controller }) + .attributeModifier(this.modifier) + .fontSize(14) + .border({ width: 1 }) + .textAlign(TextAlign.Center) + .lineHeight(20) + .width(200) + .height(50) + .id('UIComponentTextCommonItscaAttributeUpdater006') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater007.ets new file mode 100644 index 0000000000000000000000000000000000000000..66398f479360356edc9a8903bd2b14654f24a4e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater007.ets @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI'; + +export class ImageModifier extends AttributeUpdater { + width: number = 60; + height: number = 60; + + constructor(width: number, height: number) { + super(); + this.width = width; + this.height = height + } + + applyNormalAttribute(instance: ImageAttribute): void { + instance.width(this.width); + instance.height(this.height); + } +} + +/* + 自定义class实现text的AttributeModifier接口,用于初始化 +*/ +export class TextModifier extends AttributeUpdater { + textSize: number = 12; + + constructor(textSize: number) { + super(); + this.textSize = textSize; + } + + applyNormalAttribute(instance: TextAttribute): void { + instance.fontSize(this.textSize); + instance.fontColor(Color.Orange); + instance.textAlign(TextAlign.Center); + instance.border({ width: 1, color: Color.Orange, style: BorderStyle.Solid }); + instance.margin({ right: 10 }); + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater007 { + @State textOneContent: string | Resource = 'default'; + @State imageSrc: PixelMap | ResourceStr | DrawableDescriptor = ('icon.png'); + //接受外部传入的AttributeModifier类实例,可以只定制部分组件,选择性传入参数。 + @State textOne: AttributeUpdater = new TextModifier(30); + @State imageModifier: AttributeUpdater = new ImageModifier(60, 60); + + build() { + Row() { + Column() { + + Button('change image') + .id('change') + .onClick(() => { + this.imageSrc = ('cat.jpg'); + this.textOne.attribute?.backgroundImage('cat.jpg'); + }) + + Text(this.textOneContent) + .id('UIComponentTextCommonItscaAttributeUpdater007') + .backgroundImage('icon.png') + .attributeModifier(this.textOne) + .fontColor(Color.Orange) + .width(200) + .height(200) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater008.ets new file mode 100644 index 0000000000000000000000000000000000000000..c3f8af56d2aba1cf5d4a76b9f59ed8c14fff1641 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater008.ets @@ -0,0 +1,86 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI'; +import { DrawableDescriptor } from '@kit.ArkUI' +import { image } from '@kit.ImageKit'; + +/* + 自定义class实现text的AttributeModifier接口,用于初始化 +*/ +export class TextModifier extends AttributeUpdater { + textSize: number = 12; + + constructor(textSize: number) { + super(); + this.textSize = textSize; + } + + applyNormalAttribute(instance: TextAttribute): void { + instance.fontSize(this.textSize); + instance.fontColor(Color.Orange); + instance.textAlign(TextAlign.Center); + instance.border({ width: 1, color: Color.Orange, style: BorderStyle.Solid }); + instance.margin({ right: 10 }); + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater008 { + @State textOneContent: string | Resource = 'default'; + @State imageSrc: PixelMap | ResourceStr | DrawableDescriptor = ('icon.png'); + //接受外部传入的AttributeModifier类实例,可以只定制部分组件,选择性传入参数。 + @State textOne: AttributeUpdater = new TextModifier(30); + imagePixelMap: image.PixelMap | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow(): Promise { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + } + + build() { + Row() { + Column() { + Button('change image') + .id('change') + .onClick(() => { + this.imageSrc = ('cat.jpg'); + this.textOne.attribute?.backgroundImage(this.imagePixelMap); + }) + + Text(this.textOneContent) + .id('UIComponentTextCommonItscaAttributeUpdater008') + .backgroundImage('icon.png') + .attributeModifier(this.textOne) + .fontColor(Color.Orange) + .width(200) + .height(200) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater009.ets new file mode 100644 index 0000000000000000000000000000000000000000..8a3f133aea2f74a921613f8b301dc8d1466d9084 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater009.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI'; +import { DrawableDescriptor } from '@kit.ArkUI' +import { image } from '@kit.ImageKit'; + +/* + 自定义class实现text的AttributeModifier接口,用于初始化 +*/ +export class TextModifier extends AttributeUpdater { + textSize: number = 12; + + constructor(textSize: number) { + super(); + this.textSize = textSize; + } + + applyNormalAttribute(instance: TextAttribute): void { + instance.fontSize(this.textSize); + instance.fontColor(Color.Orange); + instance.textAlign(TextAlign.Center); + instance.border({ width: 1, color: Color.Orange, style: BorderStyle.Solid }); + instance.margin({ right: 10 }); + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater009 { + @State textOneContent: string | Resource = 'default'; + @State imageSrc: PixelMap | ResourceStr | DrawableDescriptor = ('icon.png'); + //接受外部传入的AttributeModifier类实例,可以只定制部分组件,选择性传入参数。 + @State textOne: AttributeUpdater = new TextModifier(30); + + build() { + Row() { + Column() { + Button('change image') + .id('change') + .onClick(() => { + this.imageSrc = ('cat.jpg'); + this.textOne.attribute?.backgroundImage('cat.jpg'); + }) + + Text(this.textOneContent) + .id('UIComponentTextCommonItscaAttributeUpdater009') + .backgroundImage('icon.png') + .attributeModifier(this.textOne) + .fontColor(Color.Orange) + .width(200) + .height(200) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater010.ets new file mode 100644 index 0000000000000000000000000000000000000000..dc4070cacc44120857f5de4c796e5ad96137e3f5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater010.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 { AttributeUpdater } from '@kit.ArkUI'; +import { DrawableDescriptor } from '@kit.ArkUI' +import { image } from '@kit.ImageKit'; + +/* + 自定义class实现text的AttributeModifier接口,用于初始化 +*/ +export class TextModifier extends AttributeUpdater { + textSize: number = 12; + + constructor(textSize: number) { + super(); + this.textSize = textSize; + } + + applyNormalAttribute(instance: TextAttribute): void { + instance.fontSize(this.textSize); + instance.fontColor(Color.Orange); + instance.textAlign(TextAlign.Center); + instance.border({ width: 1, color: Color.Orange, style: BorderStyle.Solid }); + instance.margin({ right: 10 }); + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater010 { + @State textOneContent: string | Resource = 'default'; + @State imageSrc: PixelMap | ResourceStr | DrawableDescriptor = ('icon.png'); + //接受外部传入的AttributeModifier类实例,可以只定制部分组件,选择性传入参数。 + @State textOne: AttributeUpdater = new TextModifier(30); + resManager = getContext().resourceManager; + pixmapDrawableDescriptor: DrawableDescriptor = new DrawableDescriptor(); + pixmapNew: image.PixelMap = this.pixmapDrawableDescriptor.getPixelMap(); + + onPageShow(): void { + let resourceId = this.getResourceId($r('app.media.cat')); + this.pixmapDrawableDescriptor = this.resManager.getDrawableDescriptor(resourceId); + this.pixmapNew = this.pixmapDrawableDescriptor.getPixelMap(); + } + + private getResourceId(resource: Resource): number { + return resource.id; + } + + build() { + Row() { + Column() { + Button('change image') + .id('change') + .onClick(() => { + this.imageSrc = ('cat.jpg'); + this.textOne.attribute?.backgroundImage(this.pixmapNew); + }) + + Text(this.textOneContent) + .id('UIComponentTextCommonItscaAttributeUpdater010') + .backgroundImage('icon.png') + .attributeModifier(this.textOne) + .fontColor(Color.Orange) + .width(200) + .height(200) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater011.ets new file mode 100644 index 0000000000000000000000000000000000000000..faa4682c86da60e05ec75290956c76d8cdb2efe2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater011.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI'; +import { DrawableDescriptor } from '@kit.ArkUI' +import { image } from '@kit.ImageKit'; + +/* + 自定义class实现text的AttributeModifier接口,用于初始化 +*/ +export class TextModifier extends AttributeUpdater { + textSize: number = 12; + + constructor(textSize: number) { + super(); + this.textSize = textSize; + } + + applyNormalAttribute(instance: TextAttribute): void { + instance.fontSize(this.textSize); + instance.fontColor(Color.Orange); + instance.textAlign(TextAlign.Center); + instance.border({ width: 1, color: Color.Orange, style: BorderStyle.Solid }); + instance.margin({ right: 10 }); + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater011 { + @State textOneContent: string | Resource = 'default'; + @State imageSrc: PixelMap | ResourceStr | DrawableDescriptor = ('icon.png'); + //接受外部传入的AttributeModifier类实例,可以只定制部分组件,选择性传入参数。 + @State textOne: AttributeUpdater = new TextModifier(30); + + build() { + Row() { + Column() { + Button('change image') + .id('change') + .onClick(() => { + this.imageSrc = ('cat.jpg'); + this.textOne.attribute?.backgroundImage('cat.jpg'); + }) + + Text(this.textOneContent) + .id('UIComponentTextCommonItscaAttributeUpdater011') + .backgroundImage(undefined) + .attributeModifier(this.textOne) + .fontColor(Color.Orange) + .width(200) + .height(200) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater012.ets new file mode 100644 index 0000000000000000000000000000000000000000..8f1e36fb1bae157b6d2c2294d3ffde67bfc42ec5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater012.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { AttributeUpdater } from '@kit.ArkUI'; +import { DrawableDescriptor } from '@kit.ArkUI' +import { image } from '@kit.ImageKit'; + +/* + 自定义class实现text的AttributeModifier接口,用于初始化 +*/ +export class TextModifier extends AttributeUpdater { + textSize: number = 12; + + constructor(textSize: number) { + super(); + this.textSize = textSize; + } + + applyNormalAttribute(instance: TextAttribute): void { + instance.fontSize(this.textSize); + instance.fontColor(Color.Orange); + instance.textAlign(TextAlign.Center); + instance.border({ width: 1, color: Color.Orange, style: BorderStyle.Solid }); + instance.margin({ right: 10 }); + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater009 { + controller: TextController | null = null; + @State textOneContent: string | Resource | null = null; + @State imageSrc: PixelMap | ResourceStr | DrawableDescriptor = ('icon.png'); + //接受外部传入的AttributeModifier类实例,可以只定制部分组件,选择性传入参数。 + @State textOne: AttributeUpdater = new TextModifier(30); + + build() { + Row() { + Column() { + Button('change span') + .id('change') + .onClick(() => { + this.textOne.updateConstructorParams('Updated') + }) + + Text(this.textOneContent, { controller: this.controller }) + .id('UIComponentTextCommonItscaAttributeUpdater009') + .attributeModifier(this.textOne) + .fontColor(Color.Orange) + .width(200) + .height(200) + .borderWidth(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/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater013.ets new file mode 100644 index 0000000000000000000000000000000000000000..8352a5f4170be9ff6042b4385fd2c2c477af8ad1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater013.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 { AttributeUpdater } from '@kit.ArkUI'; + +class MySpanModifier extends AttributeUpdater { + initializeModifier(instance: SpanAttribute) { + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater013 { + private modifier: MySpanModifier = new MySpanModifier() + + build() { + Row() { + Column() { + Text() { + Span('this is span') + .attributeModifier(this.modifier) + .onClick(event => { + this.modifier.updateConstructorParams("span content has changed") + }) + } + .id('UIComponentTextCommonItscaAttributeUpdater013_text') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater014.ets new file mode 100644 index 0000000000000000000000000000000000000000..904027f1faad06f7aebadbbddaeb02428be1fad6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater014.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. + */ +import { AttributeUpdater } from '@kit.ArkUI'; + +export class ImageModifier extends AttributeUpdater { + width: number = 60; + height: number = 60; + + constructor(width: number, height: number) { + super(); + this.width = width; + this.height = height + } + + applyNormalAttribute(instance: ImageAttribute): void { + instance.width(this.width); + instance.height(this.height); + } +} + +/* + 自定义class实现text的AttributeModifier接口,用于初始化 +*/ +export class TextModifier extends AttributeUpdater { + textSize: number = 12; + + constructor(textSize: number) { + super(); + this.textSize = textSize; + } + + applyNormalAttribute(instance: TextAttribute): void { + instance.fontSize(this.textSize); + instance.fontColor(Color.Orange); + instance.textAlign(TextAlign.Center); + instance.border({ width: 1, color: Color.Orange, style: BorderStyle.Solid }); + instance.margin({ right: 10 }); + } +} + +@Entry +@Component +struct UIComponentTextCommonItscaAttributeUpdater014 { + @State textOneContent: string | Resource = 'default'; + @State imageSrc: PixelMap | ResourceStr | DrawableDescriptor = ('icon.png'); + //接受外部传入的AttributeModifier类实例,可以只定制部分组件,选择性传入参数。 + @State textOne: AttributeUpdater = new TextModifier(30); + @State imageModifier: AttributeUpdater = new ImageModifier(60, 60); + + build() { + Row() { + Column() { + + Button('change image') + .id('change1') + .onClick(() => { + this.imageSrc = ('cat.jpg'); + this.textOne.attribute?.backgroundImage('cat.jpg'); + }) + + Button('change image') + .id('change2') + .onClick(() => { + this.imageSrc = ('cat.jpg'); + this.textOne.attribute?.backgroundImage('image2.png'); + }) + + Text(this.textOneContent) + .id('UIComponentTextCommonItscaAttributeUpdater014') + .backgroundImage('icon.png') + .attributeModifier(this.textOne) + .fontColor(Color.Orange) + .width(200) + .height(200) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..cc81795f4680f08844fa69af310c03f018bc2824 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0030.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 UIComponentTextHyperlinkInteraction0030 { + build() { + Column() { + Hyperlink('https://example.com/') { + } + .id('UIComponentTextHyperlinkInteraction0030_001') + .color(Color.Blue) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..4b2d62cff656f8f4c82f20e3ad4ab43d2a9e04a2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0040.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 UIComponentTextHyperlinkInteraction0040 { + build() { + Column() { + Hyperlink('https://example.com/') { + } + .id('UIComponentTextHyperlinkInteraction0040_001') + .color(Color.Blue) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..c315cf882ce352066b3f04e741858d2d8e00e9e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0080.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 UIComponentTextHyperlinkInteraction0080 { + build() { + Column() { + Hyperlink('https://example.com/') { + } + .id('UIComponentTextHyperlinkInteraction0080_001') + .color(Color.Blue) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..b15a206116f5ec6cc71d91cb6f44959e841c290e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0090.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 UIComponentTextHyperlinkInteraction0090 { + build() { + Column() { + Hyperlink('https://example.com/') { + } + .id('UIComponentTextHyperlinkInteraction0090_001') + .color(Color.Blue) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextImagePrivacySensitive/UIComponentTextImagePrivacySensitive001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextImagePrivacySensitive/UIComponentTextImagePrivacySensitive001.ets new file mode 100644 index 0000000000000000000000000000000000000000..6ca0a7c30a8980482e9dd73d74622ad781376b95 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextImagePrivacySensitive/UIComponentTextImagePrivacySensitive001.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 UIComponentTextImagePrivacySensitive001 { + build() { + Row() { + Column() { + Text("这是一段测试文字") + .privacySensitive(true) + .margin({top :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/UIComponentTextInline/UIComponentTextInline0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..45a51d9538b979f79fd2bb8fff0e83b99e3a26f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0010.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 UIComponentTextInline0010 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0010_001') + .style(TextInputStyle.Inline) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..9df7b6fe3c1c52f70b111fe97852195ab3c67926 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0020.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 UIComponentTextInline0020 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0020_001') + .style(TextInputStyle.Inline) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..443a7103551655f0f98130c67437a2f0e5ac573e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0030.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 UIComponentTextInline0030 { + @State currentDirection: Direction = Direction.Auto; + + private toggleDirection() { + switch (this.currentDirection) { + case Direction.Auto: + this.currentDirection = Direction.Ltr; + break; + case Direction.Ltr: + this.currentDirection = Direction.Rtl; + break; + case Direction.Rtl: + this.currentDirection = Direction.Auto; + break; + default: + this.currentDirection = Direction.Auto; + break; + } + } + + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0030_001') + .style(TextInputStyle.Inline) + .width('70%') + .direction(this.currentDirection) + Button('切换') + .id('UIComponentTextInline0030_002') + .onClick(() => { + this.toggleDirection(); + }) + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..58f53da20e33f9dbf82c14f6e34f3d8905ce6956 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0060.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 UIComponentTextInline0060 { + build() { + Column() { + TextInput({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0060_001') + .style(TextInputStyle.Inline) + .width('70%') + .minFontSize(4) + .maxFontSize(40) + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..6c12fd9ec71b4baca4236fc13ea9d95c40552d29 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0070.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 UIComponentTextInline0070 { + build() { + Column() { + TextArea({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0070_001') + .style(TextContentStyle.INLINE) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..b652fc32f3134e77a8f633e45959009187ac6bef --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0080.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 UIComponentTextInline0080 { + build() { + Column() { + TextArea({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0080_001') + .style(TextContentStyle.INLINE) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..cdae37f1f54d12e0d4569242297df495bd597dac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0090.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 UIComponentTextInline0090 { + @State currentDirection: Direction = Direction.Auto; + + private toggleDirection() { + switch (this.currentDirection) { + case Direction.Auto: + this.currentDirection = Direction.Ltr; + break; + case Direction.Ltr: + this.currentDirection = Direction.Rtl; + break; + case Direction.Rtl: + this.currentDirection = Direction.Auto; + break; + default: + this.currentDirection = Direction.Auto; + break; + } + } + + build() { + Column() { + TextArea({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0090_001') + .style(TextContentStyle.INLINE) + .width('70%') + .direction(this.currentDirection) + Button('切换') + .id('UIComponentTextInline0090_002') + .onClick(() => { + this.toggleDirection(); + }) + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..a4f9be0618de3d1cb9055355118f988c50791432 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0120.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 UIComponentTextInline0120 { + build() { + Column() { + TextArea({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0120_001') + .style(TextContentStyle.INLINE) + .minFontSize(4) + .maxFontSize(40) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..1b9857ce9a7be9c4cd62edfb3c7b9c31f4f3256d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInline/UIComponentTextInline0130.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 UIComponentTextInline0130 { + build() { + Column() { + TextArea({ + text: 'This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu.' + }) + .id('UIComponentTextInline0130_001') + .style(TextContentStyle.INLINE) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInput/UIComponentTextInput0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInput/UIComponentTextInput0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..c134f525008545ee4f2926eee109ee6f0418b28c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInput/UIComponentTextInput0010.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 { uiAppearance } from '@kit.ArkUI' + + +@Entry +@Component +struct UIComponentTextInput0010 { + @State message: string = 'Hello' + + build() { + Row() { + Column() { + TextInput() + .type(InputType.Password) + Button('change to light') + .id('button1') + .onClick(async () => { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT, () => { + }) + }) + Button('change to dark') + .id('button2') + .onClick(async () => { + await uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK, () => { + }) + }) + } + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..904ee30d79b1ae955c269dd03dd815aa9a354051 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0010.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 UIComponentTextInputNumberDecimal0010 { + + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0010') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0010_1') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0010_2') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..a8a6ce02254dca3403304e1110e7b2a2ce41bee4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0020.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 UIComponentTextInputNumberDecimal0020 { + + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0020') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..2e82a5a6679c41e74b8285c3a08005812227ed90 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0030.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 UIComponentTextInputNumberDecimal0030 { + + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0030') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..2a04fa34bf53f1b461c65c789448e30bfc5cc707 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0040.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 UIComponentTextInputNumberDecimal0040 { + + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0040') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..5919466559c6522035c96ced032bf8eec3b74e9c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0050.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 UIComponentTextInputNumberDecimal0050 { + + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0050_1') + .margin(2) + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0050') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..354882b130c9d79a8d7fed38eb03a2262bf6bd38 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0060.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 UIComponentTextInputNumberDecimal0060 { + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0060_1') + .margin(2) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0060') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + .inputFilter('[0-9.]') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..ebad7464db86ecfa17ee73f0781c5013c0e6109e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0070.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 UIComponentTextInputNumberDecimal0070 { + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_1') + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_2') + .type(InputType.Password) + .inputFilter('[0-9.]') + .showPassword(true) + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_3') + .type(InputType.Number) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_4') + .type(InputType.Email) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_5') + .type(InputType.PhoneNumber) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_6') + .type(InputType.USER_NAME) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_7') + .type(InputType.NEW_PASSWORD) + .showPassword(true) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_8') + .type(InputType.NUMBER_PASSWORD) + .showPassword(true) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_9') + .type(InputType.SCREEN_LOCK_PASSWORD) + .showPassword(true) + .inputFilter('[0-9.]') + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0070_10') + .type(InputType.NUMBER_DECIMAL) + .inputFilter('[0-9.]') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..177262c065f997833e8d5504e7e8f829bafb8e11 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0080.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 UIComponentTextInputNumberDecimal0080 { + build() { + Row() { + Column() { + TextInput() + .id('TextInputUIComponentTextInputNumberDecimal0080') + .type(InputType.Number) + .margin(2) + .inputFilter('[a-z]') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..0b6fc65bd0681b77966fee5309fadb32e2cc10b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0100.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 UIComponentTextInputNumberDecimal0100 { + build() { + Row() { + Column() { + TextInput({ + text:'abcdABC123.456哈哈' + }) + .id('TextInputUIComponentTextInputNumberDecimal0100') + .type(InputType.NUMBER_DECIMAL) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba448d5de53290f09ea0b53498a22245758a0168 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0010.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 UIComponentTextInputSecurityKeyboardScroll0010 { + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0010') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..8e73955998d89792726196a21d12971a100bd91f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0020.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 UIComponentTextInputSecurityKeyboardScroll0020 { + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0020') + .type(InputType.SCREEN_LOCK_PASSWORD) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d7888e2b1f451bb12364fe2887b7c5a28e28e62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0030.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 UIComponentTextInputSecurityKeyboardScroll0030 { + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0030') + .type(InputType.SCREEN_LOCK_PASSWORD) + .margin(2) + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0030_1') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..c1f94fd6dd6ccf4cbec566f3630f52cfaebd5df9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0040.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 UIComponentTextInputSecurityKeyboardScroll0040 { + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0040') + .type(InputType.SCREEN_LOCK_PASSWORD) + .margin(2) + .textAlign(TextAlign.Center) + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0040_1') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(TextAlign.Center) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..edc54c52172a857036f668d9b8c2dfb1395b9010 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0050.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 UIComponentTextInputSecurityKeyboardScroll0050 { + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0050') + .type(InputType.SCREEN_LOCK_PASSWORD) + .margin(2) + .textAlign(TextAlign.End) + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0050_1') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(TextAlign.End) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..1274ac95fe2cec61e6627ce3f815a3384a4cbdf2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0060.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextInputSecurityKeyboardScroll0060 { + @State textAlign: number | undefined = TextAlign.Start + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0060') + .type(InputType.SCREEN_LOCK_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0060_1') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + Button() + .id('btnUIComponentTextInputSecurityKeyboardScroll0060') + .onClick(() => { + this.textAlign = TextAlign.End + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..532029760d97878de75e628c6fac6cedec7feac2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0070.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 UIComponentTextInputSecurityKeyboardScroll0070 { + @State textAlign: number | undefined = TextAlign.Start + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0070') + .margin(2) + .textAlign(this.textAlign) + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0070_1') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..cd32dc5698efa64feb677c6e7c7bed0bc6b3afd7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0080.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 UIComponentTextInputSecurityKeyboardScroll0080 { + @State textAlign: number | undefined = TextAlign.Start + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0080') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + .showPassword(true) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..d989657486d3a01a86c9b677ffbdd8acf044ca53 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0090.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 UIComponentTextInputSecurityKeyboardScroll0090 { + @State textAlign: number | undefined = TextAlign.Start + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0090') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + .showPassword(true) + .maxLength(9) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..9031a8d5def40852d6c9110c03f9471366018525 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0100.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 UIComponentTextInputSecurityKeyboardScroll0100 { + @State textAlign: number | undefined = TextAlign.Start + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0100') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + .showPassword(true) + .maxLength(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..ed336ac069f335478daa585bbf8126fe70ed1092 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0110.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 UIComponentTextInputSecurityKeyboardScroll0110 { + @State maxLength: number | undefined = 10; + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0110') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .showPassword(true) + .maxLength(20) + Button('change maxLength') + .id('btnUIComponentTextInputSecurityKeyboardScroll0110') + .onClick(() => { + this.maxLength = 5; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..631e3a0bc8586371ac4761a14629e3d2ee58772e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0120.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 UIComponentTextInputSecurityKeyboardScroll0120 { + @State textAlign: number | undefined = TextAlign.Start + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0120') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + .showPassword(true) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..fbbd6da1474ba8e79729024034e0b215b9c4680b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0130.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 UIComponentTextInputSecurityKeyboardScroll0130 { + @State textAlign: number | undefined = TextAlign.Start + @State passWordSrc1: string = 'cat.jpg' + @State passWordSrc2: string = 'icon.png' + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0130') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + .width(500) + .passwordIcon({ onIconSrc: this.passWordSrc1, offIconSrc: this.passWordSrc2 }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..43d9e4ddf2840d00c025c9611d3b72d69b18cbc5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0140.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 UIComponentTextInputSecurityKeyboardScroll0140 { + @State textAlign: number | undefined = TextAlign.Start + @State passWordSrc1: string = 'cat.jpg' + @State passWordSrc2: string = 'icon.png' + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0140') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .textAlign(this.textAlign) + .width(500) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..d45a60effb67660d93a453b503cda05f08e34931 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0150.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 UIComponentTextInputSecurityKeyboardScroll0150 { + @State textAlign: number | undefined = TextAlign.Start + @State passWordSrc1: string = 'cat.jpg' + @State passWordSrc2: string = 'icon.png' + + build() { + Row() { + Column() { + TextInput() + .id('UIComponentTextInputSecurityKeyboardScroll0150') + .type(InputType.NUMBER_PASSWORD) + .margin(2) + .padding(10) + .textAlign(this.textAlign) + } + .width('100%') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..43c2aeb40bb5c2b0299e991816d5586dc57522ba --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0200.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 { JSON } from '@kit.ArkTS'; + +@Entry +@Component +struct UIComponentTextReverseAnalysis0200 { + mutableStyledString: MutableStyledString = new MutableStyledString('哈' + '\uD83C\uDDe8\uD83C\uDDF3'+'哈', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Orange}) + }]); + @State msg : string = ''; + controller: TextController = new TextController(); + async onPageShow() { + this.controller.setStyledString(this.mutableStyledString); + } + build() { + Column() { + Button('insert') + .id('insert') + .onClick(()=>{ + this.mutableStyledString.insertString(1,'插入'); + this.controller.setStyledString(this.mutableStyledString); + this.msg = `${JSON.stringify(this.mutableStyledString.getStyles(3,4))}`; + }) + Text('', { controller: this.controller }) + .width('80%') + .height(60) + .id('UIComponentTextReverseAnalysis0200') + Text(this.msg) + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..bd47bc3b294933a10369b4897b5678dfa5bca4a6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0300.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 UIComponentTextReverseAnalysis0300 { + build() { + Column() { + TextInput() + .id('UIComponentTextReverseAnalysis0300_001') + .enterKeyType(EnterKeyType.Search) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..b4f4a0abc2830c61d07b92c07370d88d2af5e561 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0350.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 UIComponentTextReverseAnalysis0350 { + build() { + Column() { + TextInput() + .id('UIComponentTextReverseAnalysis0350_001') + .hoverEffect(HoverEffect.Scale) + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0390.ets new file mode 100644 index 0000000000000000000000000000000000000000..9d807fdbac2437cd998832c6b48e678ab5007f84 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0390.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 UIComponentTextReverseAnalysis0390 { + scroll: Scroller = new Scroller(); + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + this.buttonText = '点击'; + }, + onLongPress: () => { + this.buttonText = '长按'; + } + }); + mutableStyledString3: MutableStyledString = new MutableStyledString("hello", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + @State fontColor1: ResourceColor = Color.Red; + @State buttonText: string = ''; + controller3: TextController = new TextController(); + + async onPageShow() { + this.controller3.setStyledString(this.mutableStyledString3); + } + + build() { + Column() { + Scroll(this.scroll) { + Column({ space: 30 }) { + Text('触发事件:' + this.buttonText) + .fontSize(30) + .margin({ bottom: 100 }) + Text(undefined, { controller: this.controller3 }) + .fontSize(30) + .copyOption(CopyOptions.InApp) + .draggable(true) + .clip(true) + .id('UIComponentTextReverseAnalysis0390_001') + }.width('100%') + } + .expandSafeArea([SafeAreaType.KEYBOARD]) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .edgeEffect(EdgeEffect.None) + } + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..b86d28df1f3080a995b0b8fc5ef2a3d045c3c689 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0400.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 UIComponentTextReverseAnalysis0400 { + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.fda.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @State enableDataDetector: boolean = true; + @State types: TextDataDetectorType[] = []; + @State text: string = ''; + + build() { + Row() { + Column() { + Text('触发事件:' + this.text) + Text() { + Span('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime,) + .onClick(() => { + this.text = '点击'; + }) + ImageSpan($r('app.media.icon')) + .width('100px') + .height('100px') + .objectFit(ImageFit.Fill) + .verticalAlign(ImageSpanAlignment.CENTER) + } + .id('UIComponentTextReverseAnalysis0400_001') + .fontSize(16) + .copyOption(CopyOptions.None) + .enableDataDetector(this.enableDataDetector) + .dataDetectorConfig({ + types: this.types, onDetectResultUpdate: (result: string) => { + } + }) + .textAlign(TextAlign.Center) + .borderWidth(1) + .padding(10) + .width('100%') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..7296453a877f05b2cbddbcef7e29d74153a20c06 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0410.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 UIComponentTextReverseAnalysis0410 { + @State phoneNumber: string = '(86) (755) ********'; + @State url: string = 'www.fda.com'; + @State email: string = '***@example.com'; + @State address: string = 'XX省XX市XX区XXXX'; + @State datetime: string = 'XX年XX月XX日XXXX'; + @State enableDataDetector: boolean = true; + @State types: TextDataDetectorType[] = []; + @State text: string = ''; + + build() { + Row() { + Column() { + Text('触发事件:' + this.text) + Text() { + Span('电话号码:' + this.phoneNumber + '\n' + + '链接:' + this.url + '\n' + + '邮箱:' + this.email + '\n' + + '地址:' + this.address + '\n' + + '时间:' + this.datetime,) + .onClick(() => { + this.text = '点击'; + }) + ImageSpan($r('app.media.icon')) + .width('100px') + .height('100px') + .objectFit(ImageFit.Fill) + .verticalAlign(ImageSpanAlignment.CENTER) + } + .id('UIComponentTextReverseAnalysis0410_001') + .fontSize(16) + .copyOption(CopyOptions.InApp) + .enableDataDetector(this.enableDataDetector) + .dataDetectorConfig({ + types: this.types, onDetectResultUpdate: (result: string) => { + } + }) + .textAlign(TextAlign.Center) + .borderWidth(1) + .padding(10) + .width('100%') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..6b52db4c78f9e23c8201086fb12975127fd4a0f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0420.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 UIComponentTextReverseAnalysis0420 { + scroll: Scroller = new Scroller(); + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + this.buttonText = '点击'; + }, + onLongPress: () => { + this.buttonText = '长按'; + } + }); + mutableStyledString3: MutableStyledString = new MutableStyledString("hello", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + @State fontColor1: ResourceColor = Color.Red; + @State buttonText: string = ''; + controller3: TextController = new TextController(); + + async onPageShow() { + this.controller3.setStyledString(this.mutableStyledString3); + } + + build() { + Column() { + Scroll(this.scroll) { + Column({ space: 30 }) { + Text('触发事件:' + this.buttonText) + .fontSize(30) + .margin({ bottom: 100 }) + Text(undefined, { controller: this.controller3 }) + .fontSize(30) + .copyOption(CopyOptions.InApp) + .draggable(true) + .clip(true) + .id('UIComponentTextReverseAnalysis0420_001') + }.width('100%') + } + .expandSafeArea([SafeAreaType.KEYBOARD]) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .edgeEffect(EdgeEffect.None) + } + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..1651829f3d8ba4f1bfb7e29607b98e8b2600d4f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0430.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 UIComponentTextReverseAnalysis0430 { + scroll: Scroller = new Scroller(); + fontStyleAttr1: TextStyle = new TextStyle({ fontColor: Color.Blue }); + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + this.buttonText = '点击'; + }, + onLongPress: () => { + this.buttonText = '长按'; + } + }); + mutableStyledString3: MutableStyledString = new MutableStyledString("hello", [{ + start: 0, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + @State fontColor1: ResourceColor = Color.Red; + @State buttonText: string = ''; + controller3: TextController = new TextController(); + + async onPageShow() { + this.controller3.setStyledString(this.mutableStyledString3); + } + + build() { + Column() { + Scroll(this.scroll) { + Column({ space: 30 }) { + Text('触发事件:' + this.buttonText) + .fontSize(30) + .margin({ bottom: 100 }) + Text(undefined, { controller: this.controller3 }) + .fontSize(30) + .copyOption(CopyOptions.InApp) + .draggable(true) + .clip(true) + .id('UIComponentTextReverseAnalysis0430_001') + }.width('100%') + } + .expandSafeArea([SafeAreaType.KEYBOARD]) + .scrollable(ScrollDirection.Vertical) + .scrollBar(BarState.On) + .scrollBarColor(Color.Gray) + .scrollBarWidth(10) + .edgeEffect(EdgeEffect.None) + } + .width('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0480.ets new file mode 100644 index 0000000000000000000000000000000000000000..97d427c5cd114465c5818c30d093480ca7d8533e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0480.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 UIComponentTextReverseAnalysis0480 { + build() { + Column() { + TextInput() + .id('UIComponentTextReverseAnalysis0480_001') + .width('70%') + Button('按钮') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..716a50b5928e89c63f16ae677bec27234f4c5355 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0490.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 UIComponentTextReverseAnalysis0490 { + build() { + Column() { + TextInput() + .id('UIComponentTextReverseAnalysis0490_001') + .width('70%') + TextInput() + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..41117c0be800e6c10ce6d98aaccf89627f2756ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0500.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 UIComponentTextReverseAnalysis0500 { + build() { + Column() { + Button('按钮') + .id('UIComponentTextReverseAnalysis0500_001') + TextInput() + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..b467ff386bc5788465cddab236206aeb58352f75 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0510.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 UIComponentTextReverseAnalysis0510 { + build() { + Column() { + TextInput() + .id('UIComponentTextReverseAnalysis0510_001') + .width('70%') + Button('按钮') + TextInput() + .width('70%') + }.width('100%') + .height('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..918fac5bf7e52f5730a0101b4b9c488fbf41ff0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0010.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 UIComponentTextTextAreaAction0010 { + build() { + Column(){ + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0010') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..b06476286c1d6d7eab3609d73ecf84768b205039 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0020.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 UIComponentTextTextAreaAction0020 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0020') + .fontSize(20) + } + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..231c7b5ec7866cc167d6dccf7ac60a72b50b9318 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0030.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 UIComponentTextTextAreaAction0030 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0030') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..9548e176936215c468725c365cd8a68b014a1498 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0040.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 UIComponentTextTextAreaAction0040 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0040') + .fontSize(20) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0040_1') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..4cdb8409fa2d972c842fc2578d607480acd8560a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0070.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 UIComponentTextTextAreaAction0070 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0070') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..cd269668f5d36c4526b917992be1724d0b0545c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0080.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 UIComponentTextTextAreaAction0080 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0080') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..c6d8051093b5e7f545a49803c17d4d9700490d20 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0090.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 UIComponentTextTextAreaAction0090 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0090') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..bae1dd968b9530e1ee7a04a99b15938e85ad6887 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0100.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 UIComponentTextTextAreaAction0100 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0100') + .fontSize(20) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaAction0100_1') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..00526b17f38831576be24a0e168477952158bd44 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0110.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 UIComponentTextTextAreaAction0110 { + controller: TextAreaController = new TextAreaController(); + @State msg: string = '当前行数为:' + + build() { + Column({ space: 20 }) { + TextArea({ controller: this.controller }) + .width('70%') + .id('TextTextAreaAction0110') + .fontSize(20) + + Text(this.msg) + .width('70%') + .id('TextTextAreaAction0110_1') + .enabled(true) + .fontSize(20) + .onClick(() => { + this.msg += this.controller.getTextContentLineCount(); + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances0900.ets new file mode 100644 index 0000000000000000000000000000000000000000..0fae3582334ceafabb7d74afc5b6721b6ba629e8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances0900.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 UIComponentTextTextAreaEnhances0900 { + build() { + Column() { + TextArea() + .width('auto') + .id('TextAreaUIComponentTextTextAreaEnhances0900') + .fontSize(20) + .textAlign(TextAlign.JUSTIFY) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances2500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances2500.ets new file mode 100644 index 0000000000000000000000000000000000000000..b5cb6dd8efb7325c5991364ce6fd40b2450696e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances2500.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 UIComponentTextTextAreaEnhances2500 { + build() { + Column() { + TextArea() + .width('auto') + .id('TextAreaUIComponentTextTextAreaEnhances2500') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..a86e61d9f8520fe506631046fc528f72e3391e13 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0010.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 UIComponentTextTextAreaEnterkeyType0010 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0010') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('设置enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0010') + .onClick(() => { + this.enterKeyType = EnterKeyType.Done; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0016.ets new file mode 100644 index 0000000000000000000000000000000000000000..10876a51d014a2ab8952fd292bb80aef43721f95 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0016.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 UIComponentTextTextAreaEnterkeyType0016 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0016') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('设置enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0016') + .onClick(() => { + this.enterKeyType = EnterKeyType.NEW_LINE; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b64220e499334d8aae4a60878c0bcd42e3a18e4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0020.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 UIComponentTextTextAreaEnterkeyType0020 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0020') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('设置enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0020') + .onClick(() => { + this.enterKeyType = EnterKeyType.Go; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..695dcd6b6e26256f09740ed4d2b7cb0ab4da87cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0030.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 UIComponentTextTextAreaEnterkeyType0030 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0030') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('设置enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0030') + .onClick(() => { + this.enterKeyType = EnterKeyType.Search; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..db16a7d77dbc291cf6bcdbd695fcd51961ab3b46 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0040.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 UIComponentTextTextAreaEnterkeyType0040 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0040') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('设置enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0040') + .onClick(() => { + this.enterKeyType = EnterKeyType.Send; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..6888251deb468d6f1ccb7840f8d3b34956c1f783 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0050.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 UIComponentTextTextAreaEnterkeyType0050 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0050') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('设置enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0050') + .onClick(() => { + this.enterKeyType = EnterKeyType.Next; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..a44772d8895cb8f18db65c30970f20ed6afbbda4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0060.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 UIComponentTextTextAreaEnterkeyType0060 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0060') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('设置enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0060') + .onClick(() => { + this.enterKeyType = EnterKeyType.PREVIOUS; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..df431dc682609e9e39503fa29f2516f40e68556b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0080.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 UIComponentTextTextAreaEnterkeyType0080 { + @State enterKeyType: EnterKeyType | undefined = undefined; + + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0080') + .fontSize(20) + .enterKeyType(this.enterKeyType) + Button('还原enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0080') + .onClick(() => { + this.enterKeyType = undefined; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..32322fbe50ee8865e86ce76a6610ed4dd5032ba4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0090.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 UIComponentTextTextAreaEnterkeyType0090 { + @State enterKeyType: EnterKeyType | undefined = undefined; + @State text: string | undefined = undefined; + @State text1: string | undefined = undefined; + + build() { + Column() { + Text(this.text) + Text(this.text1) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0090') + .fontSize(20) + .enterKeyType(this.enterKeyType) + .onSubmit(() => { + if (this.enterKeyType = EnterKeyType.Go) { + this.text = this.enterKeyType.toString(); + } else { + this.text1 = JSON.stringify(this.enterKeyType); + } + }) + Button('设置enterKey为Go') + .id('btnUIComponentTextTextAreaEnterkeyType0090') + .onClick(() => { + this.enterKeyType = EnterKeyType.Go; + }) + Button('还原enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0090_1') + .onClick(() => { + this.enterKeyType = undefined; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..1c1f900afcc54bbb3d23163dba169629922b107d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0100.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 UIComponentTextTextAreaEnterkeyType0100 { + @State enterKeyType: EnterKeyType | undefined = undefined; + @State text: string | undefined = undefined; + @State text1: string | undefined = undefined; + + build() { + Column() { + Text(this.text) + Text(this.text1) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0100') + .fontSize(20) + .enterKeyType(this.enterKeyType) + .onSubmit(() => { + if (this.enterKeyType = EnterKeyType.Go) { + this.text = this.enterKeyType.toString(); + } else { + this.text1 = JSON.stringify(this.enterKeyType); + } + }) + Button('设置enterKey为Go') + .id('btnUIComponentTextTextAreaEnterkeyType0100') + .onClick(() => { + this.enterKeyType = EnterKeyType.Go; + }) + Button('还原enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0100_1') + .onClick(() => { + this.enterKeyType = undefined; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..9d2107c217e332f6984861dce5956b2a9e3e0423 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0110.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 UIComponentTextTextAreaEnterkeyType0110 { + @State enterKeyType: EnterKeyType | undefined = undefined; + @State text: string | undefined = undefined; + @State text1: string | undefined = undefined; + + build() { + Column() { + Text(this.text) + Text(this.text1) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0110') + .fontSize(20) + .enterKeyType(this.enterKeyType) + .style(TextContentStyle.INLINE) + .onSubmit(() => { + if (this.enterKeyType = EnterKeyType.Go) { + this.text = this.enterKeyType.toString(); + } else { + this.text1 = JSON.stringify(this.enterKeyType); + } + }) + Button('设置enterKey为Go') + .id('btnUIComponentTextTextAreaEnterkeyType0110') + .onClick(() => { + this.enterKeyType = EnterKeyType.Go; + }) + Button('还原enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0110_1') + .onClick(() => { + this.enterKeyType = undefined; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..ab7234d26da75640f8db2c527acbff2fb225d830 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0120.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 UIComponentTextTextAreaEnterkeyType0120 { + @State enterKeyType: EnterKeyType | undefined = undefined; + @State text: string | undefined = undefined; + @State text1: string | undefined = undefined; + + build() { + Column() { + Text(this.text) + Text(this.text1) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0120') + .fontSize(20) + .enterKeyType(this.enterKeyType) + .style(TextContentStyle.DEFAULT) + .onSubmit(() => { + if (this.enterKeyType = EnterKeyType.Go) { + this.text = this.enterKeyType.toString(); + } else { + this.text1 = JSON.stringify(this.enterKeyType); + } + }) + Button('设置enterKey为Go') + .id('btnUIComponentTextTextAreaEnterkeyType0120') + .onClick(() => { + this.enterKeyType = EnterKeyType.Go; + }) + Button('还原enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0120_1') + .onClick(() => { + this.enterKeyType = undefined; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..c96e68c06331c34d624baebaaafc46d6611edf23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0130.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 UIComponentTextTextAreaEnterkeyType0130 { + @State enterKeyType: EnterKeyType | undefined = undefined; + @State text: string | undefined = undefined; + @State text1: string | undefined = undefined; + + build() { + Column() { + Text(this.text) + Text(this.text1) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0130') + .fontSize(20) + .enterKeyType(this.enterKeyType) + .style(TextContentStyle.DEFAULT) + .onSubmit(() => { + if (this.enterKeyType = EnterKeyType.Go) { + this.text = this.enterKeyType.toString(); + } else { + this.text1 = JSON.stringify(this.enterKeyType); + } + }) + Button('设置enterKey为Go') + .id('btnUIComponentTextTextAreaEnterkeyType0130') + .onClick(() => { + this.enterKeyType = EnterKeyType.Go; + }) + Button('还原enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0130_1') + .onClick(() => { + this.enterKeyType = undefined; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..9fb262cd1cd87087bc3ebfad2bd9e0661aad84b3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0140.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 UIComponentTextTextAreaEnterkeyType0140 { + @State enterKeyType: EnterKeyType | undefined = undefined; + @State text: string | undefined = undefined; + @State text1: string | undefined = undefined; + + build() { + Column() { + Text(this.text) + Text(this.text1) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEnterkeyType0140') + .fontSize(20) + .enterKeyType(this.enterKeyType) + .style(TextContentStyle.DEFAULT) + .onSubmit(() => { + if (this.enterKeyType = EnterKeyType.Go) { + this.text = this.enterKeyType.toString(); + } else { + this.text1 = JSON.stringify(this.enterKeyType); + } + }) + Button('设置enterKey为Go') + .id('btnUIComponentTextTextAreaEnterkeyType0140') + .onClick(() => { + this.enterKeyType = EnterKeyType.Go; + }) + Button('还原enterKey') + .id('btnUIComponentTextTextAreaEnterkeyType0140_1') + .onClick(() => { + this.enterKeyType = undefined; + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..7c8ea808adc7dc173a29ce0f44a8e520f9409125 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0130.ets @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import mediaquery from '@ohos.mediaquery'; +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +let portraitFunc = null; +@Entry +@Component +struct UIComponentTextTextAreaEvaSaveInputMethod0130 { + @State enterKeyType: EnterKeyType | undefined = undefined; + listener = mediaquery.matchMediaSync('(orientation: 横屏)'); + onPortrait() { + } + + aboutToAppear() { + // 绑定当前应用实例 + portraitFunc = this.onPortrait.bind(this); + // 绑定回调函数 + this.listener.on('change', portraitFunc); + } + + // 改变设备横竖屏状态函数 + private changeOrientation(isLandscape: boolean) { + // 获取UIAbility实例的上下文信息 + let context = getContext(this) as common.UIAbilityContext; + // 调用该接口手动改变设备横竖屏状态 + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(isLandscape ? window.Orientation.LANDSCAPE : window.Orientation.PORTRAIT) + }); + } + build() { + Column() { + Scroll(){ + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEvaSaveInputMethod0130') + .fontSize(20) + .enterKeyType(this.enterKeyType) + } + Button('切换横竖屏') + .id('btnUIComponentTextTextAreaEvaSaveInputMethod0130') + .onClick(() => { + this.changeOrientation(true); + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..d1ff6ffab582a6f895ac8bfd03fdbf82b55bb291 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0140.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import mediaquery from '@ohos.mediaquery'; +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +let portraitFunc = null; +@Entry +@Component +struct UIComponentTextTextAreaEvaSaveInputMethod0140 { + @State enterKeyType: EnterKeyType | undefined = undefined; + listener = mediaquery.matchMediaSync('(orientation: 横屏)'); + onPortrait() { + } + + aboutToAppear() { + // 绑定当前应用实例 + portraitFunc = this.onPortrait.bind(this); + // 绑定回调函数 + this.listener.on('change', portraitFunc); + } + + // 改变设备横竖屏状态函数 + private changeOrientation(isLandscape: boolean) { + // 获取UIAbility实例的上下文信息 + let context = getContext(this) as common.UIAbilityContext; + // 调用该接口手动改变设备横竖屏状态 + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(isLandscape ? window.Orientation.LANDSCAPE : window.Orientation.PORTRAIT) + }); + } + build() { + Column() { + Button('切换横竖屏') + .id('btnUIComponentTextTextAreaEvaSaveInputMethod0140') + .onClick(() => { + this.changeOrientation(true); + }) + .margin({ + top:400 + }) + Scroll(){ + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEvaSaveInputMethod0140') + .fontSize(20) + .enterKeyType(this.enterKeyType) + } + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..1335ae488d764485d7f1853e12418a6ef891d286 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0150.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import mediaquery from '@ohos.mediaquery'; +import window from '@ohos.window'; +import common from '@ohos.app.ability.common'; +let portraitFunc = null; +@Entry +@Component +struct UIComponentTextTextAreaEvaSaveInputMethod0150 { + @State enterKeyType: EnterKeyType | undefined = undefined; + listener = mediaquery.matchMediaSync('(orientation: 横屏)'); + onPortrait() { + } + + aboutToAppear() { + // 绑定当前应用实例 + portraitFunc = this.onPortrait.bind(this); + // 绑定回调函数 + this.listener.on('change', portraitFunc); + } + + // 改变设备横竖屏状态函数 + private changeOrientation(isLandscape: boolean) { + // 获取UIAbility实例的上下文信息 + let context = getContext(this) as common.UIAbilityContext; + // 调用该接口手动改变设备横竖屏状态 + window.getLastWindow(context).then((lastWindow) => { + lastWindow.setPreferredOrientation(isLandscape ? window.Orientation.LANDSCAPE : window.Orientation.PORTRAIT) + }); + } + build() { + Column() { + Button('切换横竖屏') + .id('btnUIComponentTextTextAreaEvaSaveInputMethod0150') + .onClick(() => { + this.changeOrientation(true); + }) + .margin({ + top:700 + }) + Scroll(){ + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaEvaSaveInputMethod0150') + .fontSize(20) + .enterKeyType(this.enterKeyType) + } + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..4ec39f7eb659ba1a9b6b46597a5b214a0a1b9b25 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0010.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 UIComponentTextTextAreaInterAction0010 { + build() { + Column() { + TextArea() + .width('100%') + .id('TextAreaUIComponentTextTextAreaInterAction0010') + .type(TextAreaType.NORMAL) + .maxLines(1) + .copyOption(CopyOptions.InApp) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..0d215203e43c683202c4df3c445a64d280cdc88d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0030.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 UIComponentTextTextAreaInterAction0030 { + build() { + Column() { + TextArea() + .width('100%') + .id('TextAreaUIComponentTextTextAreaInterAction0030') + .type(TextAreaType.NORMAL) + .maxLines(1) + .copyOption(CopyOptions.InApp) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..9af9e49ce7c3fe854608f5a1209ff48effee07b4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0040.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 UIComponentTextTextAreaInterAction0040 { + build() { + Column() { + TextArea() + .width('100%') + .id('TextAreaUIComponentTextTextAreaInterAction0040') + .type(TextAreaType.NORMAL) + .maxLines(1) + .copyOption(CopyOptions.InApp) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..12632aa2959542a83d4641f9fbadc4ff56dcd639 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0010.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 UIComponentTextTextAreaInterActive0010 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0010') + .type(TextAreaType.NORMAL) + .maxLines(1) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..f5f750d094c6226cb03a357a1dd8b865df95ff02 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0020.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 UIComponentTextTextAreaInterActive0020 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0020') + .style(TextContentStyle.INLINE) + .maxLines(1) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..824f76a540bcd571a6e27ed75645254abc8cbc7b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0030.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 UIComponentTextTextAreaInterActive0030 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0030') + .style(TextContentStyle.INLINE) + .maxLines(5) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..7084b57f8e05b5aa136069a538721c45e1b4769a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0040.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 UIComponentTextTextAreaInterActive0040 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0040') + .selectionMenuHidden(false) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..26d7f1c88e657fd62de4b07d35d14ea3f8bfcef3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0050.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 UIComponentTextTextAreaInterActive0050 { + build() { + Column() { + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0050') + .selectionMenuHidden(true) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba7ae09292299d9fb914fa2ecda07f01c2d566d9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0060.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 UIComponentTextTextAreaInterActive0060 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0060') + Button('change caret') + .id('btnTextAreaUIComponentTextTextAreaInterActive0060') + .onClick(() => { + this.controller.caretPosition(10) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..ee9f89917b0f167c7cf035297c859d0d6af13b6f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0070.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 UIComponentTextTextAreaInterActive0070 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0070') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..ae55f56c6401993496c23fcf8c7e143e86dd25f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0300.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 UIComponentTextTextAreaInterActive0300 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0300') + .maxLength(110) + .showCounter(true, { thresholdPercentage: 100, highlightBorder: true }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..bcda17d72846a2123c9215f08dd20066cc360c23 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0320.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 UIComponentTextTextAreaInterActive0320 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0320') + .maxLength(110) + .showCounter(true, { thresholdPercentage: 100, highlightBorder: true }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..56c9a29ee6048254b4ae1155d964c530026a10b6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0330.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 UIComponentTextTextAreaInterActive0330 { + controller: TextAreaController = new TextAreaController() + @State text: string = '' + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0330') + .inputFilter('[hello world]', (e) => { + console.log(JSON.stringify(e)) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfb916b28987e47b041f171de6f8a99835e98ab8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0340.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 UIComponentTextTextAreaInterActive0340 { + controller: TextAreaController = new TextAreaController() + @State text: string = '' + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0340') + .inputFilter('[hello]', (e) => { + console.log(JSON.stringify(e)) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..f945edd0fd6d7ea94566a743f4157d874c3d7ebb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0350.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 UIComponentTextTextAreaInterActive0350 { + controller: TextAreaController = new TextAreaController() + @State text: string = '' + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0350') + .inputFilter('大家好', (e) => { + console.log(JSON.stringify(e)) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..87cf3c626e62d4011cad6f80f0513e590cbd07dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0360.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 UIComponentTextTextAreaInterActive0360 { + controller: TextAreaController = new TextAreaController() + @State text: string = '' + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0360') + .inputFilter('大家好大家好', (e) => { + console.log(JSON.stringify(e)) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..9ca2707913d09de15ce696e3fe46c27de260d1eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0370.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 UIComponentTextTextAreaInterActive0370 { + controller: TextAreaController = new TextAreaController() + @State text: string = '' + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0370') + .inputFilter('[abc_ABC@#*/?]', (e) => { + console.log(JSON.stringify(e)) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..5f21e1831d460be377af1b2b5dbd195d622e173e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0380.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 UIComponentTextTextAreaInterActive0380 { + controller: TextAreaController = new TextAreaController() + @State text: string = '' + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterActive0380') + .inputFilter('[大家好_hello]', (e) => { + console.log(JSON.stringify(e)) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0670.ets new file mode 100644 index 0000000000000000000000000000000000000000..901bfc7f74ba9284a6c7f4593dfe21791365ed50 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0670.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 UIComponentTextTextAreaInterface0670 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0670') + .caretColor('#ff00ff') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0680.ets new file mode 100644 index 0000000000000000000000000000000000000000..09da0fd354a2872a93426d6ab3b88417f1641b60 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0680.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 UIComponentTextTextAreaInterface0680 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0680') + .caretColor(Color.Pink) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0690.ets new file mode 100644 index 0000000000000000000000000000000000000000..bbbeabacb70be858ba974c411e620a9be9e05875 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0690.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 UIComponentTextTextAreaInterface0690 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0690') + .caretColor(0xffc0cb) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0700.ets new file mode 100644 index 0000000000000000000000000000000000000000..264aa188fde82eb14a230cb3f2e81fc9de8a282f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0700.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 UIComponentTextTextAreaInterface0700 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0700') + .caretColor(getContext().resourceManager.getColorSync($r('app.color.color_0x800080'))) + .caretStyle({ + width:5 + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..f6dbd78fb05bba820b8fd57f98c72cd128729ee3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0710.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 UIComponentTextTextAreaInterface0710 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0710') + .caretColor('rgb(0,0,255)') + .caretStyle({ + width:5 + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0720.ets new file mode 100644 index 0000000000000000000000000000000000000000..6bfb9ad0fa771d6d6a86a47d0d53db952ef560f7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0720.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 UIComponentTextTextAreaInterface0720 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0720') + .caretColor('rgba(0,255,0,1)') + .caretStyle({ + width:5 + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0730.ets new file mode 100644 index 0000000000000000000000000000000000000000..ffa107a2f2928fb0f58fac0ae33f9c4e8b38c92b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0730.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 UIComponentTextTextAreaInterface0730 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0730') + .caretColor('adad') + .caretStyle({ + width:5 + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0740.ets new file mode 100644 index 0000000000000000000000000000000000000000..fec22df5cc7b008e9d06a381bb9b0d382effcb58 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0740.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 UIComponentTextTextAreaInterface0740 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface0740') + .caretColor('rgba(0,255,0,1)') + .caretColor('rgb(0,0,255)') + .caretColor(getContext().resourceManager.getColorSync($r('app.color.color_0x800080'))) + .caretStyle({ + width:5 + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface1020.ets new file mode 100644 index 0000000000000000000000000000000000000000..830ce1700c92d9ef41ba1ed9c2304c9b76dd01e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface1020.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 UIComponentTextTextAreaInterface1020 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Text() + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaInterface1020') + .style(TextContentStyle.DEFAULT) + .caretStyle({ + width:5 + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0010.ets new file mode 100644 index 0000000000000000000000000000000000000000..9f6048ff326ac1a7b7ef57e9a226d0b2ae57986c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0010.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 UIComponentTextTextAreaLayout0010 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .id('TextAreaUIComponentTextTextAreaLayout0010') + .caretColor('#ff00ff') + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..f8d081efe939504aee4a2762a0875add400bc05d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0020.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 UIComponentTextTextAreaLayout0020 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .id('TextAreaUIComponentTextTextAreaLayout0020') + .caretColor('#ff00ff') + .width(400) + .height(200) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..793f8895f8ffcacaf6a4d0626593df4da9b621d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0090.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 UIComponentTextTextAreaOnEditChange0090 { + controller: TextAreaController = new TextAreaController(); + @State msg: string = '这是一个文本Text' + @State res: string = '' + + build() { + Column({ space: 20 }) { + Text(this.msg) + .draggable(true) + .enabled(true) + .id('TextAreaOnEditChange0090') + .fontSize(20) + .copyOption(CopyOptions.InApp) + TextArea({ text: 'get content: ', controller: this.controller }) + .width('80%') + .margin({ top: 30 }) + .height(200) + .draggable(true) + .id('TextAreaOnEditChange0090_1') + .fontSize(20) + .copyOption(CopyOptions.InApp) + .onEditChange((isEditing: boolean) => { + this.res = '从textarea外向textarea内拖拽,onEditChange 回调'; + }) + Text(this.res) + .fontSize(20).borderWidth(3).width('90%') + } + .width('100%').margin(20) + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..59b132345fce50bf4602a3701d08d166751d8ca9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0100.ets @@ -0,0 +1,100 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { text } from '@kit.ArkGraphics2D' + +@CustomDialog +@Component +struct CustomDialogExample { + controller?: CustomDialogController + cancel: () => void = () => { + } + confirm: () => void = () => { + } + + build() { + Column() { + TextInput({ placeholder: 'input' }).height(60).width('90%') + .id('UIComponentTextTextEvasiveInput001_input') + .onChange((value: string) => { + }) + }.borderRadius(10) + } +} + +@Entry +@Component +struct UIComponentTextTextAreaOnEditChange0100 { + @State text: string = ''; + dialogController: CustomDialogController | null = new CustomDialogController({ + builder: CustomDialogExample({ + cancel: () => { + this.onCancel() + }, + confirm: () => { + this.onAccept() + } + }), + cancel: this.exitApp, + autoCancel: true, + onWillDismiss: (dismissDialogAction: DismissDialogAction) => { + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + }, + alignment: DialogAlignment.Center, + offset: { dx: 0, dy: -35 }, + gridCount: 4, + customStyle: false, + cornerRadius: 10, + }) + + aboutToDisappear() { + this.dialogController = null + } + + onCancel() { + console.info('Callback when the first button is clicked') + } + + onAccept() { + console.info('Callback when the second button is clicked') + } + + exitApp() { + console.info('Click the callback in the blank area') + } + + build() { + Column() { + Text(this.text) + TextArea() + .id('UIComponentTextTextAreaOnEditChange0100_textArea') + .width(100) + .height(50) + .onEditChange(() => { + this.text = 'onEditChange + 1' + }) + .onClick(() => { + if (this.dialogController != null) { + this.dialogController.open() + } + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..74691901e1066c38f10ba441a9c5f5eef83646bc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0130.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 UIComponentTextTextAreaOnEditChange0130 { + controller: TextAreaController = new TextAreaController(); + @State msg: string = '这是一个文本TextArea|这是一个文本TextArea这是一个文本TextArea' + @State res: string = '' + + build() { + Column({ space: 20 }) { + TextArea({ text: this.msg, controller: this.controller }).width(300) + .draggable(true) + .id('TextAreaOnEditChange0130_1') + .copyOption(CopyOptions.InApp) + .fontSize(20) + TextArea({ text: 'get content: ', controller: this.controller }) + .width('80%') + .margin({ top: 30 }) + .height(200) + .draggable(true) + .id('TextAreaOnEditChange0130_2') + .fontSize(20) + .copyOption(CopyOptions.InApp) + .onEditChange((isEditing: boolean) => { + this.res = '从textarea内向textarea外拖拽,onEditChange 回调'; + }) + + Text(this.res) + .fontSize(20).borderWidth(3).width('90%') + } + .width('100%').margin(20) + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..34a9af1ae09d8baded176cad538e86495d8c17fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0020.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 UIComponentTextTextAreaSelection0020 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0020') + .fontSize(20) + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0020') + .onClick(() => { + this.controller.setTextSelection(0, 5) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..a1d63da8c4267f5eb669846d2034d7f4208747d8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0030.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 UIComponentTextTextAreaSelection0030 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0030') + .fontSize(20) + .maxLines(3) + .style(TextContentStyle.INLINE) + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0030') + .onClick(() => { + this.controller.setTextSelection(0, 5) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..29a31fbcadcafdc12145017fb7fa00139e162d32 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0040.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 UIComponentTextTextAreaSelection0040 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0040') + .fontSize(20) + .maxLines(3) + .style(TextContentStyle.INLINE) + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0040') + .onClick(() => { + this.controller.setTextSelection(0, 0) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..37f98af1a24da9e7c67b36cd473934bf7e7a2df0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0050.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 UIComponentTextTextAreaSelection0050 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0050') + .onClick(() => { + this.controller.setTextSelection(0, 5) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0050') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..c5b8aa6bac26bcc8e9fef4443a079a78c9386577 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0060.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 UIComponentTextTextAreaSelection0060 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0060') + .onClick(() => { + this.controller.setTextSelection(0, 5) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0060') + .fontSize(20) + TextArea() + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0060_1') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..8331dfea13477585468d1cf532ffa0b7b30ffc42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0070.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 UIComponentTextTextAreaSelection0070 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0070') + .onClick(() => { + this.controller.setTextSelection(undefined, undefined) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0070') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090.ets new file mode 100644 index 0000000000000000000000000000000000000000..049795a7d02d947b96d3143df75ebd85c8ef56d2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +@Entry +@Component +struct UIComponentTextTextAreaSelection0090 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0090') + .fontSize(20) + Button('起始位置小于0,终止位置大于可选文本最大长度') + .id('btnUIComponentTextTextAreaSelection0090_1') + .onClick(() => { + this.controller.setTextSelection(-1, 6) + }) + Button('起始位置小于0,终止位置等于可选文本最大长度') + .id('btnUIComponentTextTextAreaSelection0090_2') + .onClick(() => { + this.controller.setTextSelection(-1, 5) + }) + Button('起始位置等于0,终止位置等于可选文本最大长度') + .id('btnUIComponentTextTextAreaSelection0090_3') + .onClick(() => { + this.controller.setTextSelection(0, 5) + }) + Button('起始位置等于0,终止位置大于可选文本最大长度') + .id('btnUIComponentTextTextAreaSelection0090_4') + .onClick(() => { + this.controller.setTextSelection(0, 10) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0100.ets new file mode 100644 index 0000000000000000000000000000000000000000..4d9400a505f578178754bcdbf5df4759cc8a17bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0100.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 UIComponentTextTextAreaSelection0100 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0100') + .onClick(() => { + this.controller.setTextSelection(0, 7) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0100') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0110.ets new file mode 100644 index 0000000000000000000000000000000000000000..b09e1147107f38ceab2c12fad75959e5b64760cd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0110.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 UIComponentTextTextAreaSelection0110 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0110') + .onClick(() => { + this.controller.setTextSelection(2, 7) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0110') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0120.ets new file mode 100644 index 0000000000000000000000000000000000000000..ce15e50bac9f5434756bdce77113075d9c96bdce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0120.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 UIComponentTextTextAreaSelection0120 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0120') + .onClick(() => { + this.controller.setTextSelection(2, 7) + }) + Button('取消选中') + .id('btnUIComponentTextTextAreaSelection0120_1') + .onClick(() => { + this.controller.setTextSelection(0, 0) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0120') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0130.ets new file mode 100644 index 0000000000000000000000000000000000000000..5d65d3fa20bb33f33232dd17549590f72a88b1ee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0130.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 UIComponentTextTextAreaSelection0130 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0130') + .onClick(() => { + this.controller.setTextSelection(2, 7) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0130') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0140.ets new file mode 100644 index 0000000000000000000000000000000000000000..9db845be29937e0f15af957ed3ff6f1d08cc81e3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0140.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 UIComponentTextTextAreaSelection0140 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0140') + .onClick(() => { + this.controller.setTextSelection(2, 7) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0140') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..205141e3a9731fdb24778193c5ad15b24f65ea2a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0150.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 UIComponentTextTextAreaSelection0150 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0150') + .onClick(() => { + this.controller.setTextSelection(2, 7) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0150') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..2942bd1173b03ded073808ffab6565803dff8a3b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0160.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 UIComponentTextTextAreaSelection0160 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + Button('Show selected') + .id('btnUIComponentTextTextAreaSelection0160') + .onClick(() => { + this.controller.setTextSelection(-2, -1) + }) + TextArea({ + controller: this.controller + }) + .width('70%') + .id('TextAreaUIComponentTextTextAreaSelection0160') + .fontSize(20) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaUxComsistency/UIComponentTextTextAreaUxComsistency0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaUxComsistency/UIComponentTextTextAreaUxComsistency0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..5ba081a4d75b7262d2c7bd44d8b51a65d957adaf --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextAreaUxComsistency/UIComponentTextTextAreaUxComsistency0060.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 UIComponentTextTextAreaUxComsistency0060 { + controller: TextAreaController = new TextAreaController() + + build() { + Column() { + TextArea({ + controller: this.controller + }) + .id('TextAreaUIComponentTextTextAreaUxComsistency0060') + .style(TextContentStyle.INLINE) + Button('改变光标位置') + .id('btnUIComponentTextTextAreaUxComsistency0060') + .onClick(() => { + this.controller.caretPosition(5) + }) + } + .width('100%') + .alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable014.ets new file mode 100644 index 0000000000000000000000000000000000000000..31ad8e195a04fe79d3cdd83751ca70a824e54176 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable014.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 UIComponentTextTextEditable014 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("012345", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable015.ets new file mode 100644 index 0000000000000000000000000000000000000000..8730691b74fb4f7d5d1c211a6ef3b9130fb587b0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable015.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 UIComponentTextTextEditable015 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button('addTextSpan') + .width(110) + .id('add') + .onClick(() => { + this.controller.addTextSpan('add', { + offset: 2, + style: + { + fontColor: Color.Red, + fontSize: 30 + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("012345", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable016.ets new file mode 100644 index 0000000000000000000000000000000000000000..3770b1718b468658465accd5d096827947e8827d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable016.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 UIComponentTextTextEditable016 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + RichEditor(this.options) + .onReady(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + layoutStyle: { + borderRadius: { + topLeft: '10px', + topRight: '20px', + bottomLeft: '30px', + bottomRight: '40px' + }, + margin: { + left: '10px', + top: '20px', + right: '30px', + bottom: '40px' + } + } + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable017.ets new file mode 100644 index 0000000000000000000000000000000000000000..86f51dc206faf80b7f4b234e5dc50b33c27bef72 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable017.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 UIComponentTextTextEditable017 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button('addImageSpan') + .width(110) + .id('add') + .onClick(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["50px", "50px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["100px", "100px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + layoutStyle: { + margin: { + left: '40px', + top: '40px', + right: '40px', + bottom: '40px' + } + } + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable018.ets new file mode 100644 index 0000000000000000000000000000000000000000..e3f84c852096be8ed97cadd8c7dd7b1086e4e831 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable018.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 UIComponentTextTextEditable018 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("delete spans") + .id('deleteButton') + .onClick(() => { + this.controller.deleteSpans({ + start: 0, + end: 3 + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("012345", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + + .height('100%') +} +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable019.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0344df32c8920eae95b4a8bf867bc428a4a5760 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable019.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 UIComponentTextTextEditable019 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("delete spans") + .id('deleteButton') + .onClick(() => { + this.controller.deleteSpans({ + start: 5, + end: 7 + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("012345", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + this.controller.addTextSpan("6789", + { + style: + { + fontColor: Color.Green, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable020.ets new file mode 100644 index 0000000000000000000000000000000000000000..316b08c946e9ede6c2cffd30e297e9775a84711f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable020.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 UIComponentTextTextEditable020 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("delete spans") + .id('deleteButton') + .onClick(() => { + this.controller.deleteSpans({ + start: 0, + end: 2 + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + + this.controller.addTextSpan("012", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable021.ets new file mode 100644 index 0000000000000000000000000000000000000000..ac18b083dd2409b7508dbf21358f369e894ff1c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable021.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 UIComponentTextTextEditable021 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("delete spans") + .id('deleteButton') + .onClick(() => { + this.controller.deleteSpans({ + start: 2, + end: 4 + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("012", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable022.ets new file mode 100644 index 0000000000000000000000000000000000000000..ea1df187290df90c65425368acce7b817402bdd3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable022.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextEditable022 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("update spans") + .id('updateButton') + .onClick(() => { + this.controller.updateSpanStyle({ + textStyle: + { + fontWeight: FontWeight.Bolder + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("0123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable023.ets new file mode 100644 index 0000000000000000000000000000000000000000..2d8efea74a729d1293fdfbd59660df6041f1422e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable023.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 UIComponentTextTextEditable023 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("update spans") + .id('updateButton') + .onClick(() => { + this.controller.updateSpanStyle({ + start: 0, + end: 3, + textStyle: + { + fontWeight: FontWeight.Bolder + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addTextSpan("0123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable024.ets new file mode 100644 index 0000000000000000000000000000000000000000..75d5d7de0e8d51fa74f1e8b19baf87d45d63e66f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable024.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 UIComponentTextTextEditable024 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("update image") + .id('updateButton') + .onClick(() => { + this.controller.updateSpanStyle({ + start: 0, + end: 3, + imageStyle: + { + size: ["100px", "100px"] + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable025.ets new file mode 100644 index 0000000000000000000000000000000000000000..ae7dfa8fb3385ea94229a269f3426f984c6aacee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable025.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 UIComponentTextTextEditable025 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("update second image") + .id('updateButton') + .onClick(() => { + this.controller.updateSpanStyle({ + start: 1, + end: 2, + imageStyle: + { + size: ["100px", "100px"] + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026.ets new file mode 100644 index 0000000000000000000000000000000000000000..9a25b0baadfcddee2463ed26abda30741ad8d8cc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextEditable026 { + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Row() { + Column() { + Button("update span style") + .id('updateButton') + .onClick(() => { + this.controller.updateSpanStyle({ + start: 0, + end: 1, + imageStyle: + { + size: ["100px", "100px"] + } + }) + this.controller.updateSpanStyle({ + start: 3, + end: 5, + textStyle: { + fontWeight: FontWeight.Bolder + } + }) + }) + + RichEditor(this.options) + .onReady(() => { + this.controller.addImageSpan('cat.jpg', + { + imageStyle: + { + size: ["60px", "60px"], + verticalAlign: ImageSpanAlignment.BOTTOM, + } + }) + this.controller.addTextSpan("0123456", + { + style: + { + fontColor: Color.Orange, + fontSize: 30 + } + }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput001.ets new file mode 100644 index 0000000000000000000000000000000000000000..f01515f098c92f740607cd630383d39ae5d946d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput001.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. + */ + +@CustomDialog +@Component +struct CustomDialogExample { + controller?: CustomDialogController + cancel: () => void = () => { + } + confirm: () => void = () => { + } + + build() { + Column() { + TextInput({ placeholder: 'input' }).height(60).width('90%') + .id('UIComponentTextTextEvasiveInput001_input') + .onChange((value: string) => { + }) + }.borderRadius(10) + } +} + +@Entry +@Component +struct UIComponentTextTextEvasiveInput001 { + dialogController: CustomDialogController | null = new CustomDialogController({ + builder: CustomDialogExample({ + cancel: () => { + this.onCancel() + }, + confirm: () => { + this.onAccept() + } + }), + cancel: this.exitApp, + autoCancel: true, + onWillDismiss: (dismissDialogAction: DismissDialogAction) => { + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + }, + alignment: DialogAlignment.Center, + offset: { dx: 0, dy: -35 }, + gridCount: 4, + customStyle: false, + cornerRadius: 10, + }) + + aboutToDisappear() { + this.dialogController = null + } + + onCancel() { + console.info('Callback when the first button is clicked') + } + + onAccept() { + console.info('Callback when the second button is clicked') + } + + exitApp() { + console.info('Click the callback in the blank area') + } + + build() { + Column() { + Button('open') + .id('UIComponentTextTextEvasiveInput001_button') + .width(100) + .height(50) + .onClick(() => { + if (this.dialogController != null) { + this.dialogController.open() + } + }).backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput002.ets new file mode 100644 index 0000000000000000000000000000000000000000..8bfe11042cdad52f8780c3bd263cd9f81a531581 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput002.ets @@ -0,0 +1,111 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@CustomDialog +@Component +struct CustomDialogExample002 { + controller?: CustomDialogController + cancel: () => void = () => { + } + confirm: () => void = () => { + } + + build() { + Column() { + Text('Whether to change a text?').fontSize(16).margin({ bottom: 10 }) + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Button('cancel') + .onClick(() => { + if (this.controller != undefined) { + this.controller.close() + this.cancel() + } + }).backgroundColor(0xffffff).fontColor(Color.Black) + Button('confirm') + .onClick(() => { + if (this.controller != undefined) { + this.controller.close() + this.confirm() + } + }).backgroundColor(0xffffff).fontColor(Color.Red) + }.margin({ bottom: 10 }) + + TextInput({ placeholder: 'input' }).height(60).width('90%') + .id('UIComponentTextTextEvasiveInput002_input') + .onChange((value: string) => { + }) + }.borderRadius(10) + } +} + +@Entry +@Component +struct UIComponentTextTextEvasiveInput002 { + dialogController: CustomDialogController | null = new CustomDialogController({ + builder: CustomDialogExample002({ + cancel: () => { + this.onCancel() + }, + confirm: () => { + this.onAccept() + } + }), + cancel: this.exitApp, + autoCancel: true, + onWillDismiss: (dismissDialogAction: DismissDialogAction) => { + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + }, + alignment: DialogAlignment.Center, + // offset: { dx: 0, dy: -35 }, + gridCount: 4, + customStyle: false, + cornerRadius: 10, + }) + + aboutToDisappear() { + this.dialogController = null + } + + onCancel() { + console.info('Callback when the first button is clicked') + } + + onAccept() { + console.info('Callback when the second button is clicked') + } + + exitApp() { + console.info('Click the callback in the blank area') + } + + build() { + Column() { + Button('open') + .id('UIComponentTextTextEvasiveInput002_button') + .width(100) + .height(50) + .onClick(() => { + if (this.dialogController != null) { + this.dialogController.open() + } + }).backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput003.ets new file mode 100644 index 0000000000000000000000000000000000000000..7881e08796326ed4e5974182fff86c5f7bb2c4d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput003.ets @@ -0,0 +1,115 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@CustomDialog +@Component +struct CustomDialogExample003 { + controller?: CustomDialogController + cancel: () => void = () => { + } + confirm: () => void = () => { + } + + build() { + Column() { + Text('Whether to change a text?').fontSize(16).margin({ bottom: 10 }) + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Button('cancel') + .onClick(() => { + if (this.controller != undefined) { + this.controller.close() + this.cancel() + } + }).backgroundColor(0xffffff).fontColor(Color.Black) + Button('confirm') + .onClick(() => { + if (this.controller != undefined) { + this.controller.close() + this.confirm() + } + }).backgroundColor(0xffffff).fontColor(Color.Red) + }.margin({ bottom: 10 }) + + TextInput({ placeholder: 'input' }) + .height(60) + .width('90%') + .id('UIComponentTextTextEvasiveInput003_input') + .onChange((value: string) => { + }) + .margin({ top: 10, bottom: 10 }) + }.borderRadius(10) + } +} + +@Entry +@Component +struct UIComponentTextTextEvasiveInput003 { + dialogController: CustomDialogController | null = new CustomDialogController({ + builder: CustomDialogExample003({ + cancel: () => { + this.onCancel() + }, + confirm: () => { + this.onAccept() + } + }), + cancel: this.exitApp, + autoCancel: true, + onWillDismiss: (dismissDialogAction: DismissDialogAction) => { + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + }, + alignment: DialogAlignment.Center, + // offset: { dx: 0, dy: -35 }, + gridCount: 4, + customStyle: false, + cornerRadius: 10, + }) + + aboutToDisappear() { + this.dialogController = null + } + + onCancel() { + console.info('Callback when the first button is clicked') + } + + onAccept() { + console.info('Callback when the second button is clicked') + } + + exitApp() { + console.info('Click the callback in the blank area') + } + + build() { + Column() { + Button('open') + .id('UIComponentTextTextEvasiveInput003_button') + .width(100) + .height(50) + .onClick(() => { + if (this.dialogController != null) { + this.dialogController.open() + } + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput004.ets new file mode 100644 index 0000000000000000000000000000000000000000..41960cd7788f1b6500cbe1dc35496c77d1bcc33c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput004.ets @@ -0,0 +1,116 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@CustomDialog +@Component +struct CustomDialogExample004 { + controller?: CustomDialogController + cancel: () => void = () => { + } + confirm: () => void = () => { + } + + build() { + Column() { + Text('Whether to change a text?').fontSize(16).margin({ top: 10, bottom: 10 }) + + TextInput({ placeholder: 'input' }) + .height(60) + .width('90%') + .id('UIComponentTextTextEvasiveInput004_input') + .onChange((value: string) => { + }) + .margin({ top: 10, bottom: 10 }) + + Flex({ justifyContent: FlexAlign.SpaceAround }) { + Button('cancel') + .onClick(() => { + if (this.controller != undefined) { + this.controller.close() + this.cancel() + } + }).backgroundColor(0xffffff).fontColor(Color.Black) + Button('confirm') + .onClick(() => { + if (this.controller != undefined) { + this.controller.close() + this.confirm() + } + }).backgroundColor(0xffffff).fontColor(Color.Red) + }.margin({ bottom: 10 }) + }.borderRadius(10) + } +} + +@Entry +@Component +struct UIComponentTextTextEvasiveInput004 { + dialogController: CustomDialogController | null = new CustomDialogController({ + builder: CustomDialogExample004({ + cancel: () => { + this.onCancel() + }, + confirm: () => { + this.onAccept() + } + }), + cancel: this.exitApp, + autoCancel: true, + onWillDismiss: (dismissDialogAction: DismissDialogAction) => { + if (dismissDialogAction.reason == DismissReason.PRESS_BACK) { + dismissDialogAction.dismiss() + } + if (dismissDialogAction.reason == DismissReason.TOUCH_OUTSIDE) { + dismissDialogAction.dismiss() + } + }, + alignment: DialogAlignment.Center, + // offset: { dx: 0, dy: -35 }, + gridCount: 4, + customStyle: false, + cornerRadius: 10, + }) + + aboutToDisappear() { + this.dialogController = null + } + + onCancel() { + console.info('Callback when the first button is clicked') + } + + onAccept() { + console.info('Callback when the second button is clicked') + } + + exitApp() { + console.info('Click the callback in the blank area') + } + + build() { + Column() { + Button('open') + .id('UIComponentTextTextEvasiveInput004_button') + .width(100) + .height(50) + .onClick(() => { + if (this.dialogController != null) { + this.dialogController.open() + } + }) + .backgroundColor(0x317aff) + }.width('100%').margin({ top: 5 }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle001.ets new file mode 100644 index 0000000000000000000000000000000000000000..18db3b25a93073d5aa29558f06638f59051d8d00 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle001.ets @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle001 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + start: -1, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }, { + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle001') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0020.ets new file mode 100644 index 0000000000000000000000000000000000000000..ace1d8e5216850a74c63ffe49e92b65d4fc56305 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0020.ets @@ -0,0 +1,53 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0020 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + start: -1, + length: -10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }, { + start: 0, + length: 5, + styledKey: StyledStringKey.FONT, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0020') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..048dc52fd17f21ed949ae39a8b3ab55e370662ec --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0030.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 UIComponentTextTextGestureStyle0030 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + start: 10, + length: -10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0030') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..49b57eb67ceb63593be367399d4218ae789daf60 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0040.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 UIComponentTextTextGestureStyle0040 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: 10, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0040') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..961bb4eeaae95e0760ed808e36ab7253a6e623f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0050.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 UIComponentTextTextGestureStyle0050 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: -1, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0050') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..8a717a75df0098f283f1794773b43b50a195e18c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0060.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 UIComponentTextTextGestureStyle0060 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: -1, + length: -10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0060') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0070.ets new file mode 100644 index 0000000000000000000000000000000000000000..0f3b1d1b75eda7d4ae219749b255183d0bc036e1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0070.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 UIComponentTextTextGestureStyle0070 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: 10, + length: -10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0070') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0080.ets new file mode 100644 index 0000000000000000000000000000000000000000..dcfbe280742f903299a9e741c617eb501dd6ac13 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0080.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 UIComponentTextTextGestureStyle0080 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: 10, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0080') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle009.ets new file mode 100644 index 0000000000000000000000000000000000000000..6466b3758716c4d329e96b39d00d0847200db3e0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle009.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle009 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + styledKey: StyledStringKey.FONT, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle009') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle010.ets new file mode 100644 index 0000000000000000000000000000000000000000..8beb772093bc7cf468a557ac4664c5067ee29f39 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle010.ets @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle010 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + longPressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + styledKey: StyledStringKey.FONT, + styledValue: this.longPressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle010') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle011.ets new file mode 100644 index 0000000000000000000000000000000000000000..270ea5cb686c58ff3e99f3e2eadcf3647049aad7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle011.ets @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle011 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + + onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + styledKey: StyledStringKey.GESTURE, + styledValue: '' + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle011') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle012.ets new file mode 100644 index 0000000000000000000000000000000000000000..12bf12f405ca67bb9c6b865bd23c3c1a8f10856b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle012.ets @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle012 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + longPressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + start: 0, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.longPressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle012') + .copyOption(CopyOptions.InApp) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle013.ets new file mode 100644 index 0000000000000000000000000000000000000000..bdb1bdafb676dcfe96a94171e8ecb6611ecc89f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle013.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 UIComponentTextTextGestureStyle013 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle013') + .copyOption(CopyOptions.InApp) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle014.ets new file mode 100644 index 0000000000000000000000000000000000000000..12e5b85427ef1441407aa83f5e999f1ae961f304 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle014.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle014 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + longGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGesture + }, { + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.longGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle014') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle015.ets new file mode 100644 index 0000000000000000000000000000000000000000..464d17edd9e875a69a3c295a1134efe0bea6492c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle015.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle015 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '属性字符串点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle015') + .onClick(() => { + promptAction.showToast({ message: '组件点击事件触发' }) + }) + .onTouch(() => { + console.log(`onTouch enter`) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle016.ets new file mode 100644 index 0000000000000000000000000000000000000000..34303a4aac6db6a104de684a8d9dcaf14f5fa543 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle016.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle016 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + longPressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.longPressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle016') + .onTouch(() => { + promptAction.showToast({ message: '组件触摸事件触发' }) + }) + .onClick(() => { + promptAction.showToast({ message: '组件点击事件触发' }) + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle017.ets new file mode 100644 index 0000000000000000000000000000000000000000..809010ace7097906eae5d2254b3ca1fd434d85d5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle017.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 UIComponentTextTextGestureStyle017 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + @State textAlign: TextAlign = TextAlign.Center; + @State letterSpacing: number = 10; + @State lineHeight: number = 25; + longPressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + }, + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.longPressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('Modify attribute') + .id('updateAttribute') + .onClick(() => { + this.textAlign = TextAlign.Start; + this.letterSpacing = 25; + this.lineHeight = 50; + }) + + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle017') + .textAlign(this.textAlign) + .letterSpacing(this.letterSpacing) + .lineHeight(this.lineHeight) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018.ets new file mode 100644 index 0000000000000000000000000000000000000000..71457866d7cf40cb9679dcafc20eb1a68ec0221d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle018 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + @State clipValue: boolean = true; + pressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + }, + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456788888888888888888888888888888888888', [{ + start: 0, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('Modify clip') + .id('updateAttribute') + .onClick(() => { + this.clipValue = !this.clipValue; + }) + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle018') + .clip(this.clipValue) + .width('50px') + .height('100px') + .border({ width: 1 }) + } + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle019.ets new file mode 100644 index 0000000000000000000000000000000000000000..45dec1635ea2eee4717930b83e57bb88dbeb620b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle019.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle019 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + @State paddingSize: number = 10; + @State marginSize: number = 10; + @State borderStyles: BorderOptions = { width: 1, color: Color.Red }; + pressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + }, + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 5, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('Modify attribute') + .id('updateAttribute') + .onClick(() => { + this.paddingSize = 20; + this.marginSize = 30; + this.borderStyles = { width: 2, color: Color.Green }; + }) + + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle019') + .onClick(() => { + promptAction.showToast({ message: '组件点击事件触发' }) + }) + .padding(this.paddingSize) + .margin(this.marginSize) + .border(this.borderStyles) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle020.ets new file mode 100644 index 0000000000000000000000000000000000000000..6d1fba5b83abcc016865af9becaabb295394f8b5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle020.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 UIComponentTextTextGestureStyle020 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + }, + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle020') + .width(-100) + .height(-100) + .border({ width: 1, color: Color.Red }) + + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..0d664a9052f72cedda28d9c1779856c4352b914e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0210.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0210 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789110', [{ + start: 0, + length: 12, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text('This is an example for text obscured attribute.', { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0210') + .fontSize(30) + .width('100%') + .fontColor(Color.Black) + .border({ width: 1 }) + .obscured([ObscuredReasons.PLACEHOLDER]) + .privacySensitive(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/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..bea16896ac83a3daac4dadc6f401a941cc864891 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0220.ets @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0220 { + @State visibilityBool:Visibility = Visibility.Visible + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + clickGestureAttr1: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + this.visibilityBool = Visibility.Hidden + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: 0, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + },{ + start: 0, + length: 20, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr1 + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0220') + .visibility(this.visibilityBool) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..4208669a3eb9574728e0446044d16f25577006be --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0230.ets @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0230 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + clickGestureAttr1: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: 0, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + },{ + start: 11, + length: 6, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr1 + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0230') + .mask(new ProgressMask(5.0, 10.0, 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/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle024.ets new file mode 100644 index 0000000000000000000000000000000000000000..da378a1c57903edfc4a61ce66b20135d945280c1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle024.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle024 { + @State canFocus: boolean = true; + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + }, + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456788888888888888888888888888888', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle024') + .fontSize(50) + .width('100%') + .border({ width: 1, color: Color.Red }) + .focusable(this.canFocus) + + Button('change focusable') + .id('UIComponentTextTextGestureStyle024_button') + .width(100) + .height(50) + .onClick(event => { + this.canFocus = !this.canFocus; + }) + .margin({ top: 20 }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..8e085979f7096d87e8a86af63269f3edf52f5f13 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0250.ets @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0250 { + @State enable:boolean = true; + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + clickGestureAttr1: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + this.enable = true + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456', [{ + start: 0, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + },{ + start: 0, + length: 20, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr1 + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0250') + .enabled(this.enable) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..4577298d908c1251fae5298ad685e0c9c0f0ce75 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0260.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. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0260 { + @State longClickStart: number = 0; + @State clickStart: number = 0; + @State longClickLength: number = 0; + @State clickLength: number = 0; + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + clickGestureAttr1: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456789123456aaaaaaaaaaaaaaaaaaaaaaa', [{ + start: this.longClickStart, + length: this.longClickLength, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }, { + start: this.clickStart, + length: this.clickLength, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr1 + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0260') + .ellipsisMode(EllipsisMode.START) + .textOverflow({ + overflow: TextOverflow.Ellipsis + }) + .maxLines(1) + .width('10%') + Button('手势响应区间显示为部分文本部分省略') + .id('btnUIComponentTextTextGestureStyle0260_1') + .onClick(() => { + this.longClickStart = 0; + this.clickStart = -1; + this.longClickLength = 3; + this.clickLength = -10; + }) + Button('手势响应区间显示为全部省略') + .id('btnUIComponentTextTextGestureStyle0260_2') + .onClick(() => { + this.longClickStart = 0; + this.clickStart = 0; + this.longClickLength = 3; + this.clickLength = 3; + }) + Button('手势响应区间显示为部分文本') + .id('btnUIComponentTextTextGestureStyle0260_3') + .onClick(() => { + this.longClickStart = -1; + this.clickStart = -1; + this.longClickLength = -10; + this.clickLength = -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/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..198fe373ef83563783c6949cde1a542c9b20acc4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0270.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0270 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + clickGestureAttr1: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('18700000000', [{ + start: 0, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }, { + start: 11, + length: 6, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr1 + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle0270') + .enableDataDetector(true) + .dataDetectorConfig({ + types: [TextDataDetectorType.PHONE_NUMBER], + color: Color.Red, + decoration:{ + type: TextDecorationType.Underline, + style: TextDecorationStyle.SOLID + } + }) + .copyOption(CopyOptions.InApp) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..2f803acfda497a99d5e177063b2477a810e23061 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0280.ets @@ -0,0 +1,96 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle0280 { + @State selectionStart: number = 0; + @State selectionEnd: number = 0; + controller: TextController = new TextController(); + options: TextOptions = { controller: this.controller }; + mutableStyledString: MutableStyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + clickGestureAttr1: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('18700000000', [{ + start: 0, + length: 10, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }, { + start: 11, + length: 6, + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr1 + }]); + this.options.controller.setStyledString(this.mutableStyledString); + } + + @Builder + RightClickTextCustomMenu() { + Column() { + Menu() { + MenuItemGroup() { + MenuItem({ startIcon: $r('app.media.app_icon'), content: "Right Click Menu 1", labelInfo: "" }) + .onClick((event) => { + this.controller.closeSelectionMenu(); + }) + MenuItem({ startIcon: $r('app.media.app_icon'), content: "Right Click Menu 2", labelInfo: "" }) + MenuItem({ startIcon: $r('app.media.app_icon'), content: "Right Click Menu 3", labelInfo: "" }) + } + } + .MenuStyles() + } + } + + build() { + Row() { + Column() { + Text(undefined, this.options) + .id('UIComponentTextTextGestureStyle0280') + .bindSelectionMenu(TextSpanType.TEXT, this.RightClickTextCustomMenu, TextResponseType.RIGHT_CLICK, { + onDisappear: () => { + console.info(`自定义选择菜单关闭时回调`); + }, + onAppear: () => { + this.selectionStart = 5; + this.selectionEnd = 8; + } + }) + .copyOption(CopyOptions.InApp) + .selection(this.selectionStart, this.selectionEnd) + } + .width('100%') + } + .height('100%') + } +} + +@Extend(Menu) +function MenuStyles() { + .radius($r('sys.float.ohos_id_corner_radius_card')) + .clip(true) + .backgroundColor('#F0F0F0') +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle029.ets new file mode 100644 index 0000000000000000000000000000000000000000..54dc1f777d16eb35cd113ed9d389fcf716ef4a55 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle029.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle029 { + @State start: number = 0; + @State end: number = 0; + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + console.log(`qjq 029 onLongPress enter`) + promptAction.showToast({ message: '长按事件触发' }) + }, + onClick: () => { + console.log(`qjq 029 onClick enter`) + this.start = 0; + this.end = 7; + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456788888888888888888888888888888', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle029') + .fontSize(50) + .width('100%') + .border({ width: 1, color: Color.Red }) + .copyOption(CopyOptions.None) + .selection(this.start, this.end) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle030.ets new file mode 100644 index 0000000000000000000000000000000000000000..b77280ec1021f37437efeea676a75794fbc87f82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle030.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle030 { + @State styledValue: string = ""; + textController: TextController = new TextController(); + mStyledString: StyledString | undefined = undefined; + clickGestureAttr: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mStyledString = new StyledString('13213221312', [{ + styledKey: StyledStringKey.GESTURE, + styledValue: this.clickGestureAttr + }]); + this.textController.setStyledString(this.mStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle030') + + Text(`styledValue: ${this.styledValue}`) + .margin({ top: 20 }) + + Button('getStyles') + .id('UIComponentTextTextGestureStyle030_button') + .width(100) + .height(50) + .margin({ top: 20 }) + .onClick(event => { + let styles = this.mStyledString?.getStyles(0, this.mStyledString.length) + this.styledValue = JSON.stringify(styles?.[0].styledValue); + }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle031.ets new file mode 100644 index 0000000000000000000000000000000000000000..1701d181104de78d614d87aca539d0d75a7b6093 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle031.ets @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle031 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + textController2: TextController = new TextController(); + mutableStyledString2: MutableStyledString | undefined = undefined; + @State isEquals: string = ''; + longPressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + }, + }) + pressGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.longPressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + this.mutableStyledString2 = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController2.setStyledString(this.mutableStyledString2); + } + + build() { + Row() { + Column() { + Button('IsEquals') + .id('equals') + .onClick(() => { + if (this.mutableStyledString && this.mutableStyledString2) { + if (this.mutableStyledString.equals(this.mutableStyledString2)) { + this.isEquals = 'true'; + } else { + this.isEquals = 'false'; + } + } + }) + Text(this.isEquals) + .margin({ bottom: 50 }) + Text(undefined, { controller: this.textController }) + Text(undefined, { controller: this.textController2 }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle032.ets new file mode 100644 index 0000000000000000000000000000000000000000..3b4259588e651f591df2a571f43815ae8162d086 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle032.ets @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle032 { + @State result: string = ''; + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + }, + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('0123456788888888888888888888888888888', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle032') + .fontSize(50) + .width('100%') + .border({ width: 1, color: Color.Red }) + + Text(`result: ${this.result}`) + .margin({ top: 20 }) + + Button('subStyledString') + .id('UIComponentTextTextGestureStyle032_button') + .width(100) + .height(50) + .onClick(event => { + let style = this.mutableStyledString?.subStyledString(0, 5) + this.result = JSON.stringify(style?.getStyles(0, 5)) + }) + .margin({ top: 20 }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle033.ets new file mode 100644 index 0000000000000000000000000000000000000000..75a846fa1342283b54809090a400b9d3e0fbff35 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle033.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 UIComponentTextTextGestureStyle033 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + }, + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('replaceStyle') + .id('replaceStyle') + .onClick(() => { + this.mutableStyledString?.replaceStyle({ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }) + this.textController.setStyledString(this.mutableStyledString); + }) + .margin({ bottom: 50 }) + Text(undefined, { controller: this.textController }) + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle034.ets new file mode 100644 index 0000000000000000000000000000000000000000..a75835661883b7fd0000c217c66f8e416a199bc4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle034.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 { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle034 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + }, + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('setStyle') + .id('setStyle') + .onClick(() => { + this.mutableStyledString?.setStyle({ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Green }) + }) + this.textController.setStyledString(this.mutableStyledString); + }) + .margin({ bottom: 50 }) + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle034') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle035.ets new file mode 100644 index 0000000000000000000000000000000000000000..c382cae91613fd61a600919a761602ea32e80e0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle035.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle035 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + }, + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('removeStyle') + .id('removeStyle') + .onClick(() => { + this.mutableStyledString?.removeStyle(0, 8, StyledStringKey.GESTURE); + this.textController.setStyledString(this.mutableStyledString); + }) + .margin({ bottom: 50 }) + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle035') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle036.ets new file mode 100644 index 0000000000000000000000000000000000000000..b431d99e97aeae8c175ab855c73bcac42d57f074 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle036.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle036 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + }, + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }, + { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Orange }) + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('removeStyles') + .id('removeStyles') + .onClick(() => { + this.mutableStyledString?.removeStyles(0, 8); + this.textController.setStyledString(this.mutableStyledString); + }) + .margin({ bottom: 50 }) + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle036') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle037.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle037.ets new file mode 100644 index 0000000000000000000000000000000000000000..908f02e06e27dd226cdfd70f9d5d105cc27cde65 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle037.ets @@ -0,0 +1,64 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextGestureStyle037 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + pressGesture: GestureStyle = new GestureStyle({ + onClick: () => { + promptAction.showToast({ message: '点击事件触发' }) + }, + onLongPress: () => { + promptAction.showToast({ message: '长按事件触发' }) + } + }) + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 4, + styledKey: StyledStringKey.GESTURE, + styledValue: this.pressGesture + }, + { + start: 4, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Orange }) + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Row() { + Column() { + Button('insertString') + .id('insertString') + .onClick(() => { + this.mutableStyledString?.insertString(0, 'insert new string'); + this.textController.setStyledString(this.mutableStyledString); + }) + .margin({ bottom: 50 }) + Text(undefined, { controller: this.textController }) + .id('UIComponentTextTextGestureStyle037') + } + .width('100%') + } + .height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt004.ets new file mode 100644 index 0000000000000000000000000000000000000000..2507c86f9cad6ebea71bce191ecc05337456f710 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt004.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 UIComponentTextTextImageSpanAlt004 { + build() { + Column() { + Text() { + ImageSpan('cat.jpg') + .width(40) + .height(40) + .padding(10) + .border({ width: 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/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt005.ets new file mode 100644 index 0000000000000000000000000000000000000000..a78340ea98e678cc7fd3a5a18f81d41b6cb270c0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt005.ets @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' +import { image } from '@kit.ImageKit' + +@Entry +@Component +struct UIComponentTextTextImageSpanAlt005 { + @State imageAlt: PixelMap | 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 aboutToAppear() { + this.imageAlt = await this.getPixmapFromMedia($r('app.media.icon')) + } + + build() { + Column() { + Text() { + ImageSpan('cat.jpg') + .alt(this.imageAlt) + .width(40) + .height(40) + .padding(10) + .border({ width: 1 }) + .onComplete((event) => { + promptAction.showToast({ message: '触发onComplete回调' }) + }) + } + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt006.ets new file mode 100644 index 0000000000000000000000000000000000000000..86c33ed06d222723d7f395d669218e6f658abf9a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt006.ets @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { promptAction } from '@kit.ArkUI' +import { image } from '@kit.ImageKit' + +@Entry +@Component +struct UIComponentTextTextImageSpanAlt006 { + @State imageAlt: PixelMap | 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 aboutToAppear() { + this.imageAlt = await this.getPixmapFromMedia($r('app.media.icon')) + } + + build() { + Column() { + Text() { + ImageSpan('catt.jpg') + .alt(this.imageAlt) + .width(40) + .height(40) + .padding(10) + .border({ width: 1 }) + .onError((err)=>{ + promptAction.showToast({ message: '触发onError回调' }) + }) + } + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt007.ets new file mode 100644 index 0000000000000000000000000000000000000000..fcac4f450f6ec63a661c2dcec18b091efb205e0e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt007.ets @@ -0,0 +1,66 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit' + +@Entry +@Component +struct UIComponentTextTextImageSpanAlt007 { + @State imageAlt: PixelMap | 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 aboutToAppear() { + this.imageAlt = await this.getPixmapFromMedia($r('app.media.icon')) + } + + build() { + Column() { + Text() { + ImageSpan('cat.jpg') + .width(40) + .height(40) + .border({ width: 1 }) + .margin({ right: 20 }) + + ImageSpan('catt.jpg') + .alt(this.imageAlt) + .width(40) + .height(40) + .border({ width: 1 }) + .margin({ right: 20 }) + + ImageSpan('cat.jpg') + .alt(this.imageAlt) + .width(40) + .height(40) + .border({ width: 1 }) + .margin({ right: 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/UIComponentTextTextInterface/UIComponentTextTextInterface029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface029.ets new file mode 100644 index 0000000000000000000000000000000000000000..1f4e86c83f1280e344740d5971d37b70e6f2939d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface029.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 UIComponentTextTextInterface029 { + build() { + Column() { + Text('这是一段测试文字') + .lineHeight(getContext().resourceManager.getStringSync($r("app.string.lineHeightSize"))) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface187.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface187.ets new file mode 100644 index 0000000000000000000000000000000000000000..35d344df795fbf0bd7c535809b694decc46aed16 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface187.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 UIComponentTextTextInterface187 { + build() { + Column() { + Text('这是一段测试文字') + .fontSize(getContext().resourceManager.getStringSync($r("app.string.testFontSize"))) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface202.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface202.ets new file mode 100644 index 0000000000000000000000000000000000000000..2e54ca9180237660e1d8b5f12485cdf27e42e3f0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface202.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 UIComponentTextTextInterface202 { + build() { + Column() { + Text('这是一段测试文字') + .fontSize(25) + .fontWeight(undefined) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress010.ets new file mode 100644 index 0000000000000000000000000000000000000000..a9075fcdd96f896ac3e0067433891dd532f036d6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress010.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 { LengthUnit } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextLongPress010 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Column() { + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .id('UIComponentTextTextLongPress010') + .gesture( + LongPressGesture({ repeat: true }) + .onAction((event: GestureEvent) => { + this.mutableStyledString?.replaceStyle({ + start: 0, + length: 7, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ + fontSize: { value: 200, unit: LengthUnit.PX }, + fontWeight: 400, + fontColor: Color.Green + }) + }) + this.textController.setStyledString(this.mutableStyledString); + }) + ) + .selection(0, 7) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress011.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0aeb93229db27b40a9f69462f64216ab5796502 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress011.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 UIComponentTextTextLongPress011 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Column() { + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .id('UIComponentTextTextLongPress011') + .gesture( + LongPressGesture({ repeat: true }) + .onActionEnd((event: GestureEvent) => { + this.mutableStyledString?.removeString(0, 6); + this.textController.setStyledString(this.mutableStyledString); + }) + ) + .selection(0, 6) + }.width('100%').height('100%') + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress012.ets new file mode 100644 index 0000000000000000000000000000000000000000..73966106ca37eb52d10893dacf2571e687dc70a0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress012.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 UIComponentTextTextLongPress012 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Column() { + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .id('UIComponentTextTextLongPress012') + .selection(0, 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/UIComponentTextTextLongPress/UIComponentTextTextLongPress013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress013.ets new file mode 100644 index 0000000000000000000000000000000000000000..e55ceeb918e5e0de14d66a64c0bb7fab9ea0bec4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress013.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 UIComponentTextTextLongPress013 { + textController: TextController = new TextController(); + mutableStyledString: MutableStyledString | undefined = undefined; + + async onPageShow() { + this.mutableStyledString = new MutableStyledString('01234567', [{ + start: 0, + length: 8, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontColor: Color.Red }) + }]); + this.textController.setStyledString(this.mutableStyledString); + } + + build() { + Column() { + Text(undefined, { controller: this.textController }) + .copyOption(CopyOptions.InApp) + .id('UIComponentTextTextLongPress013') + .selection(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/UIComponentTextTextMarquee/UIComponentTextTextMarquee001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee001.ets new file mode 100644 index 0000000000000000000000000000000000000000..2bb2bb1b1d11250a8a91d1169639e793ea8ae0d4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee001.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextMarquee001 { + @State overflowValue: TextOverflow = TextOverflow.None; + + build() { + Column() { + Button('Set overflow MARQUEE') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.MARQUEE; + }) + Row() { + Text() { + ImageSpan('cat.jpg') + .width(500) + .height(500) + }.textOverflow({ overflow: this.overflowValue }) + } + .width(300) + + Row() { + Text() { + Span("当文本溢出其尺寸时,文本将滚动显示。Hello worldHello worldHello worldHello worldHello worldHello worldHello world.") + }.textOverflow({ overflow: this.overflowValue }) + } + .width(300) + + Row() { + Text() { + Span("当文本溢出其尺寸时,文本将滚动显示。Hello worldHello worldHello worldHello worldHello worldHello worldHello world.") + }.textOverflow({ overflow: this.overflowValue }) + } + .width(300) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee002.ets new file mode 100644 index 0000000000000000000000000000000000000000..993735ab35d09174fb3c422a23de28325a299a93 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee002.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 UIComponentTextTextMarquee002 { + @State overflowValue: TextOverflow = TextOverflow.None; + build() { + Column() { + Button('Set overflow Ellipsis') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.Ellipsis; + }) + Row() { + Text() { + ImageSpan('cat.jpg') + .width(500) + .height(500) + } + .width(300) + .textOverflow({ overflow: this.overflowValue }) + .maxLines(2) + } + + Row() { + Text() { + Span("Hello worldHello worldHello worldHello worldHello worldHello worldHello worldHello worldHello worldHello worldHello world.") + } + .textOverflow({ overflow: this.overflowValue }) + .maxLines(2) + } + .width(300) + .borderWidth(1) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee003.ets new file mode 100644 index 0000000000000000000000000000000000000000..9314a52d8378659f6aa0df12fb4144edcafd7968 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee003.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 UIComponentTextTextMarquee003 { + @State overflowValue: TextOverflow = TextOverflow.None; + build() { + Column() { + Button('Set overflow MARQUEE') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.MARQUEE; + }) + Row() { + Text() { + ImageSpan('cat.jpg') + .width(500) + .height(500) + } + .textOverflow({ overflow: this.overflowValue }) + } + .width(300) + + Row() { + Text() { + Span("Hello worldHello worldHello worldHello worldHello worldHello worldHello worldHello worldHello worldHello worldHello world.") + } + .textOverflow({ overflow: this.overflowValue }) + } + .width(300) + + Row() { + Text() { + SymbolSpan($r('sys.symbol.ohos_trash')) + .fontWeight(FontWeight.Lighter) + .fontSize(96) + } + .textOverflow({ overflow: this.overflowValue }) + } + .width(50) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee004.ets new file mode 100644 index 0000000000000000000000000000000000000000..58625b405fde5e8087f00bb16f361d5c9e474658 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee004.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 UIComponentTextTextMarquee004 { + @State overflowValue: TextOverflow = TextOverflow.None; + + build() { + Column() { + Button('Set overflow MARQUEE') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.MARQUEE; + }) + Row() { + Text() { + ContainerSpan() { + ImageSpan('cat.jpg') + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span(' Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! ') + .fontSize('16fp') + .fontColor(Color.White) + } + .textBackgroundStyle({ color: "#7F007DFF", radius: "12vp" }) + } + .margin({ top: 15 }) + .textOverflow({ overflow: this.overflowValue }) + } + + Row() { + Text() { + ContainerSpan() { + ImageSpan('cat.jpg') + .width('40vp') + .height('40vp') + .verticalAlign(ImageSpanAlignment.CENTER) + Span(' Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! Hello World ! ') + .fontSize('16fp') + .fontColor(Color.White) + } + .textBackgroundStyle({ color: "#7F007DFF", radius: "12vp" }) + } + .margin({ top: 15 }) + .textOverflow({ overflow: this.overflowValue }) + } + + }.width('100%').alignItems(HorizontalAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee005.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee005.ets new file mode 100644 index 0000000000000000000000000000000000000000..f1f237c27dd9134e42f5b208eb3ca887215e7b52 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee005.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 UIComponentTextTextMarquee005 { + @State overflowValue: TextOverflow = TextOverflow.None; + @State textAlignValue: TextAlign = TextAlign.Center; + + build() { + Column() { + Button('Set overflow MARQUEE') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.MARQUEE; + }) + .margin({ bottom: 20 }) + Button('Set textAlign to End') + .id('setTextAlign') + .onClick(() => { + this.textAlignValue = TextAlign.End; + }) + .margin({ bottom: 20 }) + Row() { + Text() { + ImageSpan('cat.jpg') + .width('40vp') + .height('40vp') + Span("Hello world.") + } + .textOverflow({ overflow: this.overflowValue }) + .textAlign(this.textAlignValue) + .width(300) + .border({ width: 1 }) + } + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee006.ets new file mode 100644 index 0000000000000000000000000000000000000000..3d2410ac532641b8250b158e05d7fe583d0e88cb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee006.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 UIComponentTextTextMarquee006 { + @State overflowValue: TextOverflow = TextOverflow.None; + @State imageSize: number = 20; + + build() { + Column() { + Button('Set overflow MARQUEE') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.MARQUEE; + }) + .margin({ bottom: 20 }) + Button('Set image size') + .id('setSize') + .onClick(() => { + this.imageSize = 100; + }) + .margin({ bottom: 20 }) + Text() { + ImageSpan('cat.jpg') + .width(this.imageSize) + .height(this.imageSize) + Span("Hello world.") + } + .width(150) + .textOverflow({ overflow: this.overflowValue }) + + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee008.ets new file mode 100644 index 0000000000000000000000000000000000000000..6270cb0dac035ab80ca98d730d3f23758dc890c3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee008.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 UIComponentTextTextMarquee008 { + @State overflowValue: TextOverflow = TextOverflow.None; + @State paddingSize: number = 0; + + build() { + Column() { + Button('Set overflow MARQUEE') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.MARQUEE; + }) + .margin({ bottom: 20 }) + + Button('Set padding') + .id('setPadding') + .onClick(() => { + this.paddingSize = 10; + }) + .margin({ bottom: 20 }) + + Text() { + ImageSpan('cat.jpg') + .width('40vp') + .height('40vp') + Span("Hello world Hello world Hello world.") + Span("Hi Hi Hi Hi Hi Hi Hi Hi Hi Hi .") + } + .border({ width: 1 }) + .width(100) + .textOverflow({ overflow: this.overflowValue }) + .padding(this.paddingSize) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee009.ets new file mode 100644 index 0000000000000000000000000000000000000000..8d87adbde7966dcfb3cabd261963fb3980416920 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee009.ets @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextMarquee009 { + @State overflowValue: TextOverflow = TextOverflow.None; + @State spanAlign: ImageSpanAlignment = ImageSpanAlignment.CENTER; + @State paddingSize: number = 0; + + build() { + Column() { + Button('Set overflow MARQUEE') + .id('setOverflow') + .onClick(() => { + this.overflowValue = TextOverflow.MARQUEE; + }) + .margin({ bottom: 20 }) + + Button('Set verticalAlign to bottom') + .id('setVerticalAlign') + .onClick(() => { + this.spanAlign = ImageSpanAlignment.BOTTOM; + }) + .margin({ bottom: 20 }) + + Text() { + ImageSpan('cat.jpg') + .width('40vp') + .height('40vp') + .verticalAlign(this.spanAlign) + Span("Hello world Hello world Hello world.") + Span("Hi Hi Hi Hi Hi Hi Hi Hi Hi Hi .") + } + .border({ width: 1 }) + .width(300) + .textOverflow({ overflow: this.overflowValue }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextPrivacyMask/UIComponentTextTextPrivacyMask028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextPrivacyMask/UIComponentTextTextPrivacyMask028.ets new file mode 100644 index 0000000000000000000000000000000000000000..795a1a46fe93d613ca149c2c135b04cd9d66b97c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextPrivacyMask/UIComponentTextTextPrivacyMask028.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 UIComponentTextTextPrivacyMask028 { + build() { + Column() { + Text('This is"遮罩Text"') + .obscured([ObscuredReasons.PLACEHOLDER]) + .copyOption(CopyOptions.InApp) + .id('UIComponentTextTextPrivacyMask028') + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle006.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle006.ets new file mode 100644 index 0000000000000000000000000000000000000000..78544ad3bb294414e1bd42e38cac1952368fdb45 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle006.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 UIComponentTextTextStringParagraphStyle006 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ wordBreak: WordBreak.NORMAL }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.styleString.appendStyledString(new MutableStyledString('这是一段测试中文断行的文字', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.styleString.appendStyledString(new MutableStyledString('これは日本語の断行をテストするためのテキストです', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.styleString.appendStyledString(new MutableStyledString('이것은 한글의 줄을 끊는 것을 시험하는 문장이다', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextTextStringParagraphStyle006') + .copyOption(CopyOptions.InApp) + .width(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle007.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle007.ets new file mode 100644 index 0000000000000000000000000000000000000000..7e13ab1222812d8a45c4322e846d6eb6d1af2abc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle007.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 UIComponentTextTextStringParagraphStyle007 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ wordBreak: WordBreak.BREAK_ALL }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.styleString.appendStyledString(new MutableStyledString('这是一段测试中文断行的文字', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.styleString.appendStyledString(new MutableStyledString('これは日本語の断行をテストするためのテキストです', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.styleString.appendStyledString(new MutableStyledString('이것은 한글의 줄을 끊는 것을 시험하는 문장이다', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextTextStringParagraphStyle007') + .copyOption(CopyOptions.InApp) + .width(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle008.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle008.ets new file mode 100644 index 0000000000000000000000000000000000000000..3e4bc3c5535d8bf262acf5d62e2b4727c47d06bb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle008.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 UIComponentTextTextStringParagraphStyle008 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ wordBreak: WordBreak.BREAK_WORD }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.styleString.appendStyledString(new MutableStyledString('这是一段测试中文断行的文字', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.styleString.appendStyledString(new MutableStyledString('これは日本語の断行をテストするためのテキストです', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.styleString.appendStyledString(new MutableStyledString('이것은 한글의 줄을 끊는 것을 시험하는 문장이다', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }])) + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextTextStringParagraphStyle008') + .wordBreak(WordBreak.BREAK_WORD) + .copyOption(CopyOptions.InApp) + .width(200) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle009.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle009.ets new file mode 100644 index 0000000000000000000000000000000000000000..74a4dd51a2252718626cee15c1dee9a0b0f5a47e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle009.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle009 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ maxLines: 2, overflow: TextOverflow.None }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is test text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextTextStringParagraphStyle009') + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle010.ets new file mode 100644 index 0000000000000000000000000000000000000000..afbfda9a0fed5f871afc744a2f25578f9acb9509 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle010.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle010 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ maxLines: 2, overflow: TextOverflow.Clip }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is test text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .id('UIComponentTextTextStringParagraphStyle010') + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle011.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle011.ets new file mode 100644 index 0000000000000000000000000000000000000000..d7c626a63a19c970272b93a5b3af132082fa281e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle011.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 UIComponentTextTextStringParagraphStyle011 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ maxLines: 2, overflow: TextOverflow.Ellipsis }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is test text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle012.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle012.ets new file mode 100644 index 0000000000000000000000000000000000000000..94ca4138c6a1ce3d703b730ee52f503c5b521d1a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle012.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 UIComponentTextTextStringParagraphStyle012 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ maxLines: 2, overflow: TextOverflow.MARQUEE }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is test text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle013.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle013.ets new file mode 100644 index 0000000000000000000000000000000000000000..758d2178b41ddab8c562772b558da167d82773ac --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle013.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle013 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Start }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is test text', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(50) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle014.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle014.ets new file mode 100644 index 0000000000000000000000000000000000000000..053cc3614ee048794b3af9b3595a23a02d520c48 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle014.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle014 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Center }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is test text', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(50) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle015.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle015.ets new file mode 100644 index 0000000000000000000000000000000000000000..22a978662ae92c5bdb94d0e1dd0e06e74ef0b1cd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle015.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle015 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.End }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is test text', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(50) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle016.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle016.ets new file mode 100644 index 0000000000000000000000000000000000000000..329d74a63d40e731ba53ed77a1385a97a0362143 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle016.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 UIComponentTextTextStringParagraphStyle016 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.JUSTIFY }); + + async onPageShow() { + this.styleString = + new MutableStyledString('Helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle017.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle017.ets new file mode 100644 index 0000000000000000000000000000000000000000..496c993e569a9f225f2eaab8708bd279eefb1df9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle017.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 UIComponentTextTextStringParagraphStyle017 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: undefined }); + + async onPageShow() { + this.styleString = + new MutableStyledString('Helloooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle018.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle018.ets new file mode 100644 index 0000000000000000000000000000000000000000..b2c181c98ae7f4b9f084fe82786ede79aafc90a3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle018.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle018 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(-100) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('Hello', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle019.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle019.ets new file mode 100644 index 0000000000000000000000000000000000000000..ca5aa1d5aefe3890bc7fe88be7b73d651d830f1f --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle019.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle019 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(0) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('Hello', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle020.ets new file mode 100644 index 0000000000000000000000000000000000000000..3e43bb6a86eba7ea8407ad9b43b60b6c8a533755 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle020.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle020 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(30) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('Hello', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle021.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle021.ets new file mode 100644 index 0000000000000000000000000000000000000000..406f65f41fbdf93b9d6d431e948d514326bcafc0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle021.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle021 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.percent(30) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('Hello', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle022.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle022.ets new file mode 100644 index 0000000000000000000000000000000000000000..99756312e300ff0d1c14ef1cce620da0e6a22ff1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle022.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle022 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: undefined }); + + async onPageShow() { + this.styleString = + new MutableStyledString('Hello', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle023.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle023.ets new file mode 100644 index 0000000000000000000000000000000000000000..3d2fe791efc1645c6b92c1a7d6524a8b4a6fd3f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle023.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle023 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Center }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hellooooo\nhi', + [{ + start: 0, + length: 2, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle024.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle024.ets new file mode 100644 index 0000000000000000000000000000000000000000..7f34d8a1b07a7944944cfc907b4d8635e677cf82 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle024.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle024 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Center }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\nhi', + [{ + start: 1, + length: 6, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle025.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle025.ets new file mode 100644 index 0000000000000000000000000000000000000000..6ef8e239f1c2caff56fb1a126067dda8feb18788 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle025.ets @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle025 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Center }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\nhi\nhey', + [{ + start: 1, + length: 9, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle026.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle026.ets new file mode 100644 index 0000000000000000000000000000000000000000..cb200f9159ce19370babef702f3118d7b827ed40 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle026.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 UIComponentTextTextStringParagraphStyle026 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Center }); + paragraphStyleAttr1: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Start }); + paragraphStyleAttr2: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.End }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + length: 3, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }, { + start: 0, + length: 3, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr1 + }, { + start: 0, + length: 3, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr2 + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .textAlign(TextAlign.Center) + .textAlign(TextAlign.Start) + .textAlign(TextAlign.End) + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle027.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle027.ets new file mode 100644 index 0000000000000000000000000000000000000000..fa426f1c4af24df0587da576230379235f4c189c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle027.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 UIComponentTextTextStringParagraphStyle027 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + async onPageShow() { + this.styleString = + new MutableStyledString('hello', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: DecorationStyle + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle028.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle028.ets new file mode 100644 index 0000000000000000000000000000000000000000..e4a7a5c7d1a70564717f58984cce1230812bc287 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle028.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 { LengthMetrics, LengthUnit } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle028 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(15) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }, { + start: 0, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: new LineHeightStyle(new LengthMetrics(-100, LengthUnit.VP)) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle029.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle029.ets new file mode 100644 index 0000000000000000000000000000000000000000..01af3bb93dddcfc19d75b8f91a6294d9472b86eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle029.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 { LengthMetrics, LengthUnit } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle029 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(15) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }, { + start: 0, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: new LineHeightStyle(new LengthMetrics(30, LengthUnit.VP)) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle030.ets new file mode 100644 index 0000000000000000000000000000000000000000..8f34d6413e62f3ffbb0673e20ae32bafcba0747e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle030.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 { LengthMetrics, LengthUnit } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle030 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(15) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }, { + start: 0, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: new LineHeightStyle(new LengthMetrics(0, LengthUnit.PX)) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .textIndent(10) + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle031.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle031.ets new file mode 100644 index 0000000000000000000000000000000000000000..7587ed6724decb20c0f5d8816e1af6fa5cb7ccf4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle031.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle031 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(15)}); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .lineHeight(undefined) + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle032.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle032.ets new file mode 100644 index 0000000000000000000000000000000000000000..46c4f89353f4ef4c96f32b9a4d81a5966cb67328 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle032.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle032 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ maxLines: undefined }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle033.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle033.ets new file mode 100644 index 0000000000000000000000000000000000000000..63e8aca4cd4232d26b728734e1e41e45a64ae6a7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle033.ets @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics, LengthUnit } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle033 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + @State fontSize: number = 16; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(15) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }, + { + start: 0, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: new LineHeightStyle(new LengthMetrics(0, LengthUnit.VP)) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Button('Change fontSize') + .id('changeSize') + .onClick(() => { + this.fontSize = 40; + }) + .margin({ bottom: 20 }) + Text(undefined, { controller: this.controller }) { + } + .fontSize(this.fontSize) + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle034.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle034.ets new file mode 100644 index 0000000000000000000000000000000000000000..b7a43e6a590d6b0d2dfceadf89d26187f42c45fa --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle034.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle034 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ leadingMargin: LengthMetrics.vp(-100) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle035.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle035.ets new file mode 100644 index 0000000000000000000000000000000000000000..f8fe26919ff739a4fb81cbe756437bc5c1331b62 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle035.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle035 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ leadingMargin: LengthMetrics.vp(0) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle036.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle036.ets new file mode 100644 index 0000000000000000000000000000000000000000..9598abc1309f1bd70773a65419ccae3505774604 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle036.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle036 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ leadingMargin: LengthMetrics.percent(80) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle037.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle037.ets new file mode 100644 index 0000000000000000000000000000000000000000..fea38b2690e34ff26e871032a6cf6828c50016dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle037.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle037 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ leadingMargin: LengthMetrics.vp(30) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle038.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle038.ets new file mode 100644 index 0000000000000000000000000000000000000000..1a6998b182b2836260c604277193697fd36abd7a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle038.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle038 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ leadingMargin: LengthMetrics.px(100) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle039.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle039.ets new file mode 100644 index 0000000000000000000000000000000000000000..2870213121fe6a2dd650e6e12a683214c689eb7b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle039.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle039 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ leadingMargin: undefined }); + + async onPageShow() { + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle040.ets new file mode 100644 index 0000000000000000000000000000000000000000..77d7fd544925c3db3712becfaa1af9e067fd9ade --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle040.ets @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle040 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.fly')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: [50, 50] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle041.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle041.ets new file mode 100644 index 0000000000000000000000000000000000000000..7cce979421c788499596cfa7f26bae5aaa320f68 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle041.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle041 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: [50, 50] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle042.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle042.ets new file mode 100644 index 0000000000000000000000000000000000000000..7dfc4bb744061fdb3e2f12a567e0b6f49c3f3676 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle042.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle042 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.image2')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: [50, 50] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle043.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle043.ets new file mode 100644 index 0000000000000000000000000000000000000000..d5c60f7218b8391e9173bad1f041ee8efcab86ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle043.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle043 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.bird_people')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: [50, 50] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle044.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle044.ets new file mode 100644 index 0000000000000000000000000000000000000000..67461980ccb25dd4e057f1a5aca9c7535185cf15 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle044.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle044 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.fan')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: [50, 50] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle045.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle045.ets new file mode 100644 index 0000000000000000000000000000000000000000..79d2280a1fedd6accfb94662a481b417d8a0d5eb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle045.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle045 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: ['20%', '20%'] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle046.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle046.ets new file mode 100644 index 0000000000000000000000000000000000000000..6b587da4294502a0e534701fcc24b86aeaa34dc8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle046.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle046 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: [0, 0] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle047.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle047.ets new file mode 100644 index 0000000000000000000000000000000000000000..ad8e2444137badd00b406bb398176928828ff20e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle047.ets @@ -0,0 +1,68 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { image } from '@kit.ImageKit'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle047 { + controller: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + imagePixelMap: image.PixelMap | undefined = undefined; + paragraphStyleAttr: ParagraphStyle | undefined = undefined; + leadingMarginPlaceholder1: LeadingMarginPlaceholder | 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(); + await imageSource.release(); + return createPixelMap; + } + + async onPageShow() { + this.imagePixelMap = await this.getPixmapFromMedia($r('app.media.cat')).then(); + if (this.imagePixelMap !== undefined) { + this.leadingMarginPlaceholder1 = { + pixelMap: this.imagePixelMap, + size: [$r('app.string.10vp'), $r('app.string.10vp')] + } + this.paragraphStyleAttr = new ParagraphStyle({ leadingMargin: this.leadingMarginPlaceholder1 }); + this.styleString = + new MutableStyledString('hello\n' + + 'hi', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + } + + build() { + Column() { + Text(undefined, { controller: this.controller }) { + } + .width(200) + .height(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle048.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle048.ets new file mode 100644 index 0000000000000000000000000000000000000000..4cd66e486fe0e5a9e4b86060fa65569a685c6944 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle048.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 UIComponentTextTextStringParagraphStyle048 { + controller: TextController = new TextController(); + controller1: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + styleString1: MutableStyledString | undefined = undefined; + getStyle: Array = []; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.End }); + + async onPageShow() { + this.styleString = + new MutableStyledString('TextAlign as end', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Button('getStyles') + .id('getStyles') + .onClick(() => { + this.getStyle = this.styleString!.getStyles(0, 4, StyledStringKey.PARAGRAPH_STYLE); + this.styleString1 = new MutableStyledString('这是获取的返回样式', this.getStyle); + this.controller1.setStyledString(this.styleString1); + }) + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + .margin({ bottom: 20 }) + + Text(undefined, { controller: this.controller1 }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle049.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle049.ets new file mode 100644 index 0000000000000000000000000000000000000000..fb1366c380e3bf370e7e3cbe15f2c03f32d0363b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle049.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle049 { + controller: TextController = new TextController(); + controller1: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + styleString1: MutableStyledString | undefined = undefined; + getStyle: Array = []; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ textIndent: LengthMetrics.vp(30) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('TextIndent as 30vp', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Button('getStyles') + .id('getStyles') + .onClick(() => { + this.getStyle = this.styleString!.getStyles(0, 4, StyledStringKey.PARAGRAPH_STYLE); + this.styleString1 = new MutableStyledString('这是获取的返回样式', this.getStyle); + this.controller1.setStyledString(this.styleString1); + }) + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + .margin({ bottom: 20 }) + + Text(undefined, { controller: this.controller1 }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle050.ets new file mode 100644 index 0000000000000000000000000000000000000000..ba2ffc9c6b17c3c09d035d4593c117627282aad2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle050.ets @@ -0,0 +1,59 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle050 { + controller: TextController = new TextController(); + controller1: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + styleString1: MutableStyledString | undefined = undefined; + getStyle: Array = []; + + + async onPageShow() { + this.styleString = + new MutableStyledString('LineHeight as 50', + [{ + start: 0, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: new LineHeightStyle(new LengthMetrics(50)) + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Button('getStyles') + .id('getStyles') + .onClick(() => { + this.getStyle = this.styleString!.getStyles(0, 4, StyledStringKey.LINE_HEIGHT); + this.styleString1 = new MutableStyledString('这是获取的返回样式', this.getStyle); + this.controller1.setStyledString(this.styleString1); + }) + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + .margin({ bottom: 20 }) + + Text(undefined, { controller: this.controller1 }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle051.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle051.ets new file mode 100644 index 0000000000000000000000000000000000000000..c24b53924b1a125722e1bd1fe3ccdb10cab3b3f2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle051.ets @@ -0,0 +1,169 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { LengthMetrics } from '@kit.ArkUI' + +const canvasWidth = 1000 +const canvasHeight = 100 + +class LeadingMarginCreator { + private settings: RenderingContextSettings = new RenderingContextSettings(true) + private offscreenCanvas: OffscreenCanvas = new OffscreenCanvas(canvasWidth, canvasHeight) + private offContext: OffscreenCanvasRenderingContext2D = this.offscreenCanvas.getContext("2d", this.settings) + public static instance: LeadingMarginCreator = new LeadingMarginCreator() + + public genSquareMark(fontSize: number): PixelMap { + this.offContext = this.offscreenCanvas.getContext("2d", this.settings) + this.clearCanvas() + const coordinate = fontSize * (1 - 1 / 1.5) / 2 + const sideLength = fontSize / 1.5 + this.offContext.fillRect(coordinate, coordinate, sideLength, sideLength) + return this.offContext.getPixelMap(0, 0, fontSize, fontSize) + } + + private clearCanvas() { + this.offContext.clearRect(0, 0, canvasWidth, canvasHeight) + } +} + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle051 { + @State overflowText: string | undefined = ''; + private leadingMarkCreatorInstance = LeadingMarginCreator.instance + leadingMarginPlaceholder1: LeadingMarginPlaceholder = { + pixelMap: this.leadingMarkCreatorInstance.genSquareMark(24), + size: [15, 15] + } + titleParagraphStyleAttr: ParagraphStyle = new ParagraphStyle({ textAlign: TextAlign.Center }); + //第一段落首行缩进15vp + paragraphStyleAttr1: ParagraphStyle = new ParagraphStyle({ textIndent: LengthMetrics.vp(15) }); + //第二段落缩进15vp且首行有placeholder占位显示 + paragraphStyleAttr2: ParagraphStyle = + new ParagraphStyle({ textAlign: TextAlign.Start, leadingMargin: this.leadingMarginPlaceholder1 }); + //第三段落不设置缩进配置最大行数及超长显示方式 + paragraphStyleAttr3: ParagraphStyle = new ParagraphStyle({ + textAlign: TextAlign.End, + maxLines: 1, + wordBreak: WordBreak.BREAK_ALL, + overflow: TextOverflow.Ellipsis + }); + //行高样式对象 + lineHeightStyle1: LineHeightStyle = new LineHeightStyle(new LengthMetrics(24)); + //创建含段落样式的对象paragraphStyledString1 + paragraphStyledString1: StyledString = + new StyledString("段落标题\n正文第一段落开始0123456789正文第一段落结束\n正文第二段落开始hello world正文第二段落结束\n正文第三段落ABCDEFGHIJKLMNOPQRSTUVWXYZ。", + [ + { + start: 0, + length: 4, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.titleParagraphStyleAttr + }, + { + start: 0, + length: 4, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: new LineHeightStyle(new LengthMetrics(50)) + }, { + start: 0, + length: 4, + styledKey: StyledStringKey.FONT, + styledValue: new TextStyle({ fontSize: LengthMetrics.vp(24), fontWeight: FontWeight.Bolder }) + }, + { + start: 5, + length: 3, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr1 + }, + { + start: 5, + length: 20, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: this.lineHeightStyle1 + }, + { + start: 32, + length: 5, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr2 + }, + { + start: 32, + length: 20, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: this.lineHeightStyle1 + }, + { + start: 60, + length: 5, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr3 + }, + { + start: 60, + length: 5, + styledKey: StyledStringKey.LINE_HEIGHT, + styledValue: this.lineHeightStyle1 + } + ]); + controller: TextController = new TextController(); + + async onPageShow() { + this.controller.setStyledString(this.paragraphStyledString1) + } + + build() { + Row() { + Column({ space: 5 }) { + Text(undefined, { controller: this.controller }) + .width(240) + .borderWidth(1) + .copyOption(CopyOptions.InApp) + .draggable(true) + + //查询段落样式 + Button('查询overflow') + .id('getStyles') + .onClick(() => { + let styles = this.paragraphStyledString1.getStyles(0, this.paragraphStyledString1.length) + if (styles.length !== 0) { + for (let i = 0; i < styles.length; i++) { + console.info('paragraphStyledString1 style object start:' + styles[i].start) + console.info('paragraphStyledString1 style object length:' + styles[i].length) + console.info('paragraphStyledString1 style object key:' + styles[i].styledKey) + if (styles[i].styledKey === 200) { + let paraAttr = styles[i].styledValue as ParagraphStyle; + console.info('paragraphStyledString1 textAlign:' + paraAttr.textAlign) + console.info('paragraphStyledString1 textIndent:' + paraAttr.textIndent) + console.info('paragraphStyledString1 maxLines:' + paraAttr.maxLines) + console.info('paragraphStyledString1 wordBreak:' + paraAttr.wordBreak) + console.info('paragraphStyledString1 leadingMargin:' + paraAttr.leadingMargin) + console.info('paragraphStyledString1 overflow:' + paraAttr.overflow) + if (paraAttr.overflow === 2){ + this.overflowText = 'TextOverflow.Ellipsis' + } + } + } + } + }) + .margin({ top: 10 }) + Text(this.overflowText) + } + .width('100%') + } + .height('100%') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle052.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle052.ets new file mode 100644 index 0000000000000000000000000000000000000000..4f2a3599f755f2ae5a05764247f39aa24557b716 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle052.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 UIComponentTextTextStringParagraphStyle052 { + controller: TextController = new TextController(); + controller1: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + styleString1: MutableStyledString | undefined = undefined; + getStyle: Array = []; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ wordBreak: WordBreak.BREAK_ALL }); + + async onPageShow() { + this.styleString = + new MutableStyledString('This is set wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Button('getStyles') + .id('getStyles') + .onClick(() => { + this.getStyle = this.styleString!.getStyles(0, 4, StyledStringKey.PARAGRAPH_STYLE); + this.styleString1 = + new MutableStyledString('This is get wordBreak to WordBreak text Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiwhenuakitanatahu', + this.getStyle); + this.controller1.setStyledString(this.styleString1); + }) + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + .margin({ bottom: 20 }) + + Text(undefined, { controller: this.controller1 }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle053.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle053.ets new file mode 100644 index 0000000000000000000000000000000000000000..9e9bab1cc678e6f97d5a5ed554cf5649a7a0a777 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle053.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 { LengthMetrics } from '@kit.ArkUI'; + +@Entry +@Component +struct UIComponentTextTextStringParagraphStyle053 { + controller: TextController = new TextController(); + controller1: TextController = new TextController(); + styleString: MutableStyledString | undefined = undefined; + styleString1: MutableStyledString | undefined = undefined; + getStyle: Array = []; + paragraphStyleAttr: ParagraphStyle = + new ParagraphStyle({ leadingMargin: LengthMetrics.vp(40) }); + + async onPageShow() { + this.styleString = + new MutableStyledString('leadingMargin as 40vp', + [{ + start: 0, + styledKey: StyledStringKey.PARAGRAPH_STYLE, + styledValue: this.paragraphStyleAttr + }]); + this.controller.setStyledString(this.styleString); + } + + build() { + Column() { + Button('getStyles') + .id('getStyles') + .onClick(() => { + this.getStyle = this.styleString!.getStyles(0, 4, StyledStringKey.PARAGRAPH_STYLE); + this.styleString1 = + new MutableStyledString('这是获取的返回样式', + this.getStyle); + this.controller1.setStyledString(this.styleString1); + }) + Text(undefined, { controller: this.controller }) { + } + .width(200) + .border({ width: 1 }) + .margin({ bottom: 20 }) + + Text(undefined, { controller: this.controller1 }) { + } + .width(200) + .border({ width: 1 }) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0030.ets new file mode 100644 index 0000000000000000000000000000000000000000..73456f2dc7c573de3109515948aa58c5c4ba3adb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0030.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 UIComponentTextTransparency0030 { + build() { + Column() { + Text('这是一段测试文字') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..776e7cac5ebaa49552df8bedc8ade9e362ce20d1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0170.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 UIComponentTextTransparency0170 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(FontWeight.Bolder) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..02f0e026be4eb8a83538d6d4b2dc68ae3721a366 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0180.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 UIComponentTextTransparency0180 { + build() { + Column() { + Text('这是一段测试文字') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..6233a87c21987aada768561cdcc9954e47e26bb2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0190.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 UIComponentTextTransparency0190 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(-1) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..1cdcd9df49a04ed315a2df5ba355a1603303c232 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0200.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 UIComponentTextTransparency0200 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(0) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..ae801c30044f64a20691f76bc67be5d38e2df2ce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0210.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 UIComponentTextTransparency0210 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(99) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..dcfb9bda7e389bc18057ab913b34d8cbd8a9b284 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0220.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 UIComponentTextTransparency0220 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(100) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..8175b69888297896aa011601179ff99d3603cc50 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0230.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 UIComponentTextTransparency0230 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(400) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c6391b3d6d8275ea39a5972f66f9db5dbab214b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0240.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 UIComponentTextTransparency0240 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(900) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..f5e928870f01bd43d5f325bcc6bc7a1e3c58b2e7 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0250.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 UIComponentTextTransparency0250 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(901) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d682ab3dd0cacd36f4752fd962b42f3abd22b9c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0260.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 UIComponentTextTransparency0260 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight(1000) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..4611ca4b1584692de9fc5cb9f916917cc4215e0a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0270.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 UIComponentTextTransparency0270 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight('0') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..469e4e0bf94253d82cc9a0d798da98b2c2ce31c8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0280.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 UIComponentTextTransparency0280 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight('100') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0290.ets new file mode 100644 index 0000000000000000000000000000000000000000..43228b1cc1028242e1d53915abf3c00892d7b38e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0290.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 UIComponentTextTransparency0290 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight('900') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..3a48a3b1dc28432ff6915ae0083b5c528bfa5916 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0300.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 UIComponentTextTransparency0300 { + build() { + Column() { + Text('这是一段测试文字') + .fontWeight('1000') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..f40065c49d12a3782ed01aef1e3f983b455fe72c --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0310.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 UIComponentTextTransparency0310 { + build() { + Column() { + Text('这是一段测试文字') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..54c59494b1c3e8528410ed4cb1ffee18e2884238 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0320.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 UIComponentTextTransparency0320 { + build() { + Column() { + Text('这是一段测试文字') + .fontFamily('HarmonyOS Sans') + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..a7d611bf4e0c018a0a9f00977012e91f144bb552 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0330.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 UIComponentTextTransparency0330 { + build() { + Column() { + Text('这是一段测试文字') + .fontFamily($r('app.string.fontfamily_1')) + }.height('100%') + .width('100%') + .alignItems(HorizontalAlign.Center) + .justifyContent(FlexAlign.Center) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency003.ets new file mode 100644 index 0000000000000000000000000000000000000000..9585ebe056631b16ff5bd28800de16d2df64d10a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency003.ets @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import { ImageModifier } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentTextTransparency003 { + @State myModifier: ImageAttribute = new ImageModifier().opacity(1) + build() { + Text('这是一段测试文字') + .width('90%') + .height(50) + .id('UIComponentTextTransparency003') + .draggable(true) + .border({ width: 1 }) + .fontColor(Color.Brown) + .copyOption(CopyOptions.InApp) + .selection(0, 8) + .opacity(0.4) + .dragPreviewOptions({modifier: this.myModifier}) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0040.ets new file mode 100644 index 0000000000000000000000000000000000000000..402dbb47762429ebb410f8a6a56e25f0abbc39cd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0040.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 { ImageModifier } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentTextTransparency0040 { + @State myModifier: ImageAttribute = new ImageModifier().opacity(1) + + build() { + Text('这是一段测试文字') + .width('90%') + .height(50) + .id('UIComponentTextTransparency0040') + .draggable(true) + .border({ width: 1 }) + .fontColor(Color.Brown) + .copyOption(CopyOptions.InApp) + .textShadow({ + radius: 10, + color: Color.Black, + offsetX: 0, + offsetY: 0 + }) + .selection(0, 8) + .opacity(0.4) + .dragPreviewOptions({ modifier: this.myModifier }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0050.ets new file mode 100644 index 0000000000000000000000000000000000000000..fd6de8f368a57f507fd064f668aabc2da7595ff2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0050.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 { ImageModifier } from '@kit.ArkUI' + +@Entry +@Component +struct UIComponentTextTransparency0050 { + @State myModifier: ImageAttribute = new ImageModifier().opacity(1) + + build() { + Text('这是一段测试文字') + .width('90%') + .height(50) + .id('UIComponentTextTransparency0050') + .draggable(true) + .border({ width: 1 }) + .fontColor(Color.Brown) + .copyOption(CopyOptions.InApp) + .textShadow({ + radius: 10, + color: Color.Black, + offsetX: 0, + offsetY: 0 + }) + .decoration({ + type: TextDecorationType.Underline, + color: Color.Red, + style: TextDecorationStyle.WAVY + }) + .selection(0, 8) + .opacity(0.4) + .dragPreviewOptions({ modifier: this.myModifier }) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0060.ets new file mode 100644 index 0000000000000000000000000000000000000000..dec21d0b1e5c87f07d2a21621a7b603494b886d5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0060.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 UIComponentTextTransparency0060 { + + build() { + Text('这是一段测试文字bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb') + .width('50%') + .height(50) + .id('UIComponentTextTransparency0060') + .draggable(true) + .border({ width: 1 }) + .fontColor(Color.Brown) + .copyOption(CopyOptions.InApp) + .textShadow({ + radius: 10, + color: Color.Black, + offsetX: 0, + offsetY: 0 + }) + .textOverflow({ overflow: TextOverflow.Ellipsis }) + .maxLines(1) + .selection(0, 20) + .opacity(0.4) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor092.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor092.ets deleted file mode 100644 index 8b7ca931315cb31a0d97f030fd143e3423562bc5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor092.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor092 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { - Column() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentUISupportColor0920') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor093.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor093.ets deleted file mode 100644 index 64d725c4de9bbf62bbd8245bb0429a7073293e18..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor093.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor093 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { - Column() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentUISupportColor0930') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor094.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor094.ets deleted file mode 100644 index aeba0c2b9a760c7a057e76ae177cd8b8572fb1f5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor094.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor094 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { - Column() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentUISupportColor0940') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor095.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor095.ets deleted file mode 100644 index 1e2cb5c95437fb4cf1269c169e20b21d0d593e67..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor095.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor095 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { - Column() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentUISupportColor0950') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor096.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor096.ets deleted file mode 100644 index ec1aea79d47fbfa0afbae84cfa0723af6a1b05a9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor096.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor096 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.LIGHT }) { - Column() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentUISupportColor0960') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor097.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor097.ets deleted file mode 100644 index d3093894331fcd4c66de212c5826c9bea13a31c0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor097.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor097 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.DARK }) { - Column() { - Radio({ value: 'Radio', group: 'radioGroup' }) - .height(50) - .width(50) - .checked(false) - .id('UIComponentUISupportColor0970') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor098.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor098.ets deleted file mode 100644 index b987e92d0164a7d2e01d29965ff0173f023f56c9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor098.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor098 { - @State rating: number = 3.5; - - build() { - Flex({ direction: FlexDirection.Row, justifyContent: FlexAlign.Center, alignItems: ItemAlign.Center }) { - Column() { - Row() { - Radio({ value: 'Radio1', group: 'radioGroup' }) - .checked(false) - .width(300) - .height(100) - .id('UIComponentUISupportColor0980') - } - } - } - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor099.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor099.ets deleted file mode 100644 index d3cd7976ce0c8f953c67e6f77f7d7511ce6b290e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor099.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import uiAppearance from '@ohos.uiAppearance' - -@Entry -@Component -struct UIComponentUISupportColor099 { - @State rating: number = 3.5; - - build() { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .id('UIComponentUISupportColor0990') - .onChange((value: number) => { - this.rating = value - }) - Button('切换模式') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentUISupportColor0991') - .onClick(() => { - if (uiAppearance.getDarkMode() === uiAppearance.DarkMode.ALWAYS_LIGHT) { - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); - } - }) - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor100.ets deleted file mode 100644 index dc20d4467e8b0bd1ec1ff66bfff5794028ddc362..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor100.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import uiAppearance from '@ohos.uiAppearance' - -@Entry -@Component -struct UIComponentUISupportColor100 { - @State rating: number = 3.5; - - build() { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .id('UIComponentUISupportColor1000') - .onChange((value: number) => { - this.rating = value - }) - Button('切换模式') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentUISupportColor1001') - .onClick(() => { - if (uiAppearance.getDarkMode() === uiAppearance.DarkMode.ALWAYS_DARK) { - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_LIGHT); - } else { - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK); - } - }) - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor101.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor101.ets deleted file mode 100644 index 9bbb7979f9f935f80012e40a425ccce352ef2daf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor101.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor101 { - @State rating: number = 3.5; - - build() { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - Button('切换模式') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentUISupportColor1011') - }.width('100%').height('100%') - .backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor102.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor102.ets deleted file mode 100644 index d9f966d413fb2882bf23b3b5f460f93f0c2f29f1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor102.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import uiAppearance from '@ohos.uiAppearance' - -@Entry -@Component -struct UIComponentUISupportColor102 { - @State rating: number = 3.5; - - build() { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .id('UIComponentUISupportColor1020') - .onChange((value: number) => { - this.rating = value - }) - Button('切换模式') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentUISupportColor1021') - .onClick(() => { - if (uiAppearance.getDarkMode() === uiAppearance.DarkMode.ALWAYS_DARK) { - uiAppearance.setDarkMode(uiAppearance.DarkMode.ALWAYS_DARK); - } - }) - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor103.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor103.ets deleted file mode 100644 index 63d2eb94fda3034f9a8d5c156370fab287790dc9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor103.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor103 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.LIGHT }) { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .id('UIComponentUISupportColor1030') - .onChange((value: number) => { - this.rating = value - }) - Button('切换模式') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentUISupportColor1031') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor104.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor104.ets deleted file mode 100644 index f7aa9be27051da9b57702419dd993460abefaf7f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor104.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor104 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.DARK }) { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .id('UIComponentUISupportColor1040') - .onChange((value: number) => { - this.rating = value - }) - Button('切换模式') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentUISupportColor1041') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor105.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor105.ets deleted file mode 100644 index cee5efd6e3a21dabf411ed4489b68cd1f6c58dce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor105.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UIComponentUISupportColor105 { - @State rating: number = 3.5; - - build() { - WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { - Column() { - Rating({ rating: this.rating, indicator: false }) - .stars(5) - .stepSize(0.5) - .margin({ top: 24 }) - .id('UIComponentUISupportColor1050') - .onChange((value: number) => { - this.rating = value - }) - Button('切换模式') - .fontSize(20) - .fontColor(Color.Blue) - .width('200px') - .id('UIComponentUISupportColor1051') - }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor204.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor204.ets new file mode 100644 index 0000000000000000000000000000000000000000..d528f71efc4dd912a8ace4cebcd69160e6fafee3 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor204.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 UIComponentUISupportColor204 { + build() { + Column() { + Button('切换模式') + .fontSize(20) + .fontColor(Color.Blue) + .width('200px') + .id('UIComponentUISupportColor204') + .margin({ bottom: 20 }) + + Text('测试文字').fontSize(30) + }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor205.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor205.ets new file mode 100644 index 0000000000000000000000000000000000000000..add3be77552cb2fe12f3b1e6ddb2b67b92ec07e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor205.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 UIComponentUISupportColor205 { + build() { + Column() { + Button('切换模式') + .fontSize(20) + .fontColor(Color.Blue) + .width('200px') + .id('UIComponentUISupportColor205') + .margin({ bottom: 20 }) + + Text('测试文字').fontSize(30) + }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor206.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor206.ets new file mode 100644 index 0000000000000000000000000000000000000000..63e8ecea267aa6a36ec1454e7f1fda391fc975e5 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor206.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 UIComponentUISupportColor206 { + build() { + Column() { + Button('切换模式') + .fontSize(20) + .fontColor(Color.Blue) + .width('200px') + .id('UIComponentUISupportColor206') + .margin({ bottom: 20 }) + + Text('测试文字').fontSize(30) + }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor207.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor207.ets new file mode 100644 index 0000000000000000000000000000000000000000..0fda8c6a449735875711bd7d23cb5208c1e408f4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor207.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 UIComponentUISupportColor207 { + build() { + Column() { + Button('切换模式') + .fontSize(20) + .fontColor(Color.Blue) + .width('200px') + .id('UIComponentUISupportColor207') + .margin({ bottom: 20 }) + + Text('测试文字').fontSize(30) + }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor208.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor208.ets new file mode 100644 index 0000000000000000000000000000000000000000..28aba4b399ae203af4f252060f75e807888c49a1 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor208.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 UIComponentUISupportColor208 { + build() { + WithTheme({ colorMode: ThemeColorMode.LIGHT }) { + Column() { + Text('测试文字').fontSize(30) + }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor209.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor209.ets new file mode 100644 index 0000000000000000000000000000000000000000..35dfa2513e7d6049ebaf8aca26665bd46f1c0777 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor209.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 UIComponentUISupportColor209 { + build() { + WithTheme({ colorMode: ThemeColorMode.DARK }) { + Column() { + Text('测试文字').fontSize(30) + }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) + } + + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor210.ets new file mode 100644 index 0000000000000000000000000000000000000000..35e8154d0711f0853ec57c250ab3da53b2651e98 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UIComponentUISupportColor/UIComponentUISupportColor210.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 UIComponentUISupportColor210 { + build() { + WithTheme({ colorMode: ThemeColorMode.SYSTEM }) { + Column() { + Text('测试文字').fontSize(30) + }.width('100%').height('100%').backgroundColor($r('sys.color.background_primary')) + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150.ets new file mode 100644 index 0000000000000000000000000000000000000000..1e0a88915a2ed72159cd0b703d07b4de6d564a42 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150.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 UICustomTextShortCutKeyReplacement0150 { + @State msg: string = 'HH测试223% U测72试#'; + @State start: number = 0 + @State end: number = 0 + build() { + Text(this.msg) + .width('100%') + .height(60) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160.ets new file mode 100644 index 0000000000000000000000000000000000000000..6b3297dd1c9c2d04c6ef603b9b3a11774d9c1426 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160.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 UICustomTextShortCutKeyReplacement0160 { + @State msg: string = 'HH测试223% U测72试#'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Text(this.msg) + .width('100%') + .height(60) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=1) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170.ets new file mode 100644 index 0000000000000000000000000000000000000000..02ff1187993515cdbd45d44fa3d25e3715689fc2 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170.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 UICustomTextShortCutKeyReplacement0170 { + @State msg: string = 'HH测试223% U测72试# 1/2 @&*ئاھ چوڭ \uD83D\uDE00'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Text(this.msg) + .width('100%') + .height(60) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=1) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180.ets new file mode 100644 index 0000000000000000000000000000000000000000..1d4b70bcec92203a56c4f2276d54ce5f92f24ba4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180.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 UICustomTextShortCutKeyReplacement0180 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试XXX2!'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=-1) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190.ets new file mode 100644 index 0000000000000000000000000000000000000000..324983114d0ac69e6e070863a14934308c34c4dd --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190.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 UICustomTextShortCutKeyReplacement0190 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200.ets new file mode 100644 index 0000000000000000000000000000000000000000..d663a25d6388838842e3b2268f240c7a9dfa7cd8 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200.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 UICustomTextShortCutKeyReplacement0200 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210.ets new file mode 100644 index 0000000000000000000000000000000000000000..5545ddb2c8ca2e802fcbdf41dfec23b0525c5878 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210.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 UICustomTextShortCutKeyReplacement0210 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220.ets new file mode 100644 index 0000000000000000000000000000000000000000..6713c6bd51c5781fe79b3056a18e693fcbf35385 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220.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 UICustomTextShortCutKeyReplacement0220 { + @State msg: string = '测试数据12ZXC'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(1) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230.ets new file mode 100644 index 0000000000000000000000000000000000000000..0ddf46fe359ced1a09ae4e20d37536b399ca85ea --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230.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 UICustomTextShortCutKeyReplacement0230 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240.ets new file mode 100644 index 0000000000000000000000000000000000000000..6faa65631bf44f4155a342b34ced4113e2ea1051 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240.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 UICustomTextShortCutKeyReplacement0240 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0 + @State end: number = 3 + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250.ets new file mode 100644 index 0000000000000000000000000000000000000000..72d300fe02c37a7cb3a42cca9f47c52f91d5a16b --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250.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 UICustomTextShortCutKeyReplacement0250 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 10; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260.ets new file mode 100644 index 0000000000000000000000000000000000000000..2ae850c6c627214687de1d33e10b76d04d0567e6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260.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 UICustomTextShortCutKeyReplacement0260 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 10; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270.ets new file mode 100644 index 0000000000000000000000000000000000000000..8f6eaac819941d51db4f7c26b331db13b29fdb26 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270.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 UICustomTextShortCutKeyReplacement0270 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280.ets new file mode 100644 index 0000000000000000000000000000000000000000..319067ee443cb41c7cabec8297c036e75706f904 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280.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 UICustomTextShortCutKeyReplacement0280 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300.ets new file mode 100644 index 0000000000000000000000000000000000000000..2b8a66b159325cad43e3a5330f6c5c22ce15ad63 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300.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 UICustomTextShortCutKeyReplacement0300 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310.ets new file mode 100644 index 0000000000000000000000000000000000000000..ae4ce8845351e929a9b6986154bbf079153f6244 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310.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 UICustomTextShortCutKeyReplacement0310 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320.ets new file mode 100644 index 0000000000000000000000000000000000000000..d998c5ff307517770417632875e0da54bcb543ad --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320.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 UICustomTextShortCutKeyReplacement0320 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330.ets new file mode 100644 index 0000000000000000000000000000000000000000..5bbc5d856ca301466c9c4453fb562611c8a41b9d --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330.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 UICustomTextShortCutKeyReplacement0330 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340.ets new file mode 100644 index 0000000000000000000000000000000000000000..eaf5dd10420120e7cdfc1e90c625a95f821d4a66 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340.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 UICustomTextShortCutKeyReplacement0340 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350.ets new file mode 100644 index 0000000000000000000000000000000000000000..851d4d630e8aebc108c1417e369ff10fa47b6fcb --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350.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 UICustomTextShortCutKeyReplacement0350 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360.ets new file mode 100644 index 0000000000000000000000000000000000000000..0c71867c4fee6f34a7a69992f3a7815361f38e2e --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360.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 UICustomTextShortCutKeyReplacement0360 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370.ets new file mode 100644 index 0000000000000000000000000000000000000000..bfd428d2307b94a69fed5266420dde1c6088e4d0 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370.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 UICustomTextShortCutKeyReplacement0370 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380.ets new file mode 100644 index 0000000000000000000000000000000000000000..e147dbce219ebb3bed84c4e2a94d7510253a4cf4 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380.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 UICustomTextShortCutKeyReplacement0380 { + @State msg: string = '测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0; + @State end: number = 3; + build() { + Column() { + Button('changeText') + .id('changeText') + .onClick(() => { + this.msg = '测试数据1234 数据99987@测试'; + }) + Text(this.end+'') + Text(this.msg) + .width('100%') + .height(60) + .maxLines(3) + .selection(this.start,this.end) + .copyOption(CopyOptions.InApp) + .id('text') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end!=0) + this.end-- + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0400.ets new file mode 100644 index 0000000000000000000000000000000000000000..81748f789ed518dcd3af2d3327abf2370fbad060 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0400.ets @@ -0,0 +1,91 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0400 { + @State msg: string = ' 1测试数据12ZXC、! 2测试KW23!数据'; + @State maxLines: number | undefined = undefined + txt: string = '测试数据1234 数据99987@测试' + @State start: number = 3 + @State end: number = 7 + isRlt: boolean = false; + isReverse: boolean = false; + + build() { + Column({ space: 10 }) { + Row({ space: 10 }) { + Button('切换文字') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = + '测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试'; + }) + Button('设置单行') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.maxLines = 1 + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(300) + .height(100) + .fontSize(16) + .enabled(true) + .draggable(true) + .maxLines(this.maxLines) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + if (this.isReverse) { + if (this.end+3 <= this.txt.length + 1) { + this.end +=3 + }else { + this.end = this.txt.length + 1 + } + } else { + if (this.end = this.start) { + this.start = this.end + this.isReverse = true; + } else { + if (this.start != 0) { + this.start++ + } + } + } + }) + + + TextInput({ text: 'get:' }) + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0410.ets new file mode 100644 index 0000000000000000000000000000000000000000..fab933e2d846159288e29d89d1206c1483ed8c87 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0410.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 UICustomTextShortCutKeyReplacement0410 { + @State msg: string = ' 1测试数据12ZXC、! 2测试KW23!数据'; + @State maxLines: number | undefined = undefined + txt: string = '测试数据1234 数据99987@测试' + @State start: number = 0 + @State end: number = this.txt.length + isRlt:boolean = false; + isReverse:boolean = false; + + build() { + Column({ space: 10 }) { + Row({ space: 10 }) { + Button('切换文字') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = + '测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试'; + }) + Button('设置单行') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.maxLines = 1 + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(300) + .height(100) + .fontSize(16) + .enabled(true) + .draggable(true) + .maxLines(this.maxLines) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end+=this.txt.length+1 + }) + + + TextInput({ text: 'get:' }) + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0420.ets new file mode 100644 index 0000000000000000000000000000000000000000..df44d71f3cc937dbbb8d174b4c951f2a4350ffc6 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0420.ets @@ -0,0 +1,85 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0420 { + @State msg: string = ' 1测试数据12ZXC、! 2测试KW23!数据'; + @State maxLines: number | undefined = undefined + txt: string = '测试数据1234 数据99987@测试' + @State start: number = 5 + @State end: number = 10 + isRlt:boolean = false; + isReverse:boolean = false; + + build() { + Column({ space: 10 }) { + Row({ space: 10 }) { + Button('切换文字') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = + '测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试'; + }) + Button('设置单行') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.maxLines = 1 + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(300) + .height(100) + .fontSize(16) + .enabled(true) + .draggable(true) + .maxLines(this.maxLines) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + if (this.isReverse) { + this.end += this.txt.length; + } else { + if (this.end = this.start) { + } else { + if (this.start != 0) { + this.start++ + } + } + } + }) + + + TextInput({ text: 'get:' }) + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0430.ets new file mode 100644 index 0000000000000000000000000000000000000000..d0e438ba716f5c4257b00e24ee0e4c255ad82437 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0430.ets @@ -0,0 +1,93 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0430 { + @State msg: string = ' 1测试数据12ZXC、! 2测试KW23!数据'; + @State maxLines: number | undefined = undefined + txt: string = '测试数据1234 数据99987@测试' + @State start: number = 5 + @State end: number = 10 + isRlt: boolean = true; + isReverse: boolean = false; + + build() { + Column({ space: 10 }) { + Row({ space: 10 }) { + Button('切换文字') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = + '测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试'; + }) + Button('设置单行') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.maxLines = 1 + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(300) + .height(100) + .fontSize(16) + .enabled(true) + .draggable(true) + .maxLines(this.maxLines) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + if (this.isRlt) { + if (this.isReverse) { + if (this.start == 0) { + this.end = this.msg.length + } else { + this.start--; + } + } else { + if (this.end = this.start) { + this.end = this.start + this.isReverse = true; + } else { + if (this.end != 0) { + this.end-- + } + } + } + } + }) + + + TextInput({ text: 'get:' }) + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0440.ets new file mode 100644 index 0000000000000000000000000000000000000000..cab8b17309d9731e26fcf7ea66688e7711a82094 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0440.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 UICustomTextShortCutKeyReplacement0440 { + @State msg: string = ' 1测试数据12ZXC、! 2测试KW23!数据'; + @State maxLines: number | undefined = undefined + txt: string = '测试数据1234 数据99987@测试' + @State start: number = 3 + @State end: number = 6 + + build() { + Column({ space: 10 }) { + + Row({ space: 10 }) { + Button('切换文字') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = + '测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试'; + }) + Button('设置单行') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.maxLines = 1 + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(300) + .height(100) + .fontSize(16) + .enabled(true) + .draggable(true) + .maxLines(this.maxLines) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + .keyboardShortcut(FunctionKey.DPAD_DOWN, [ModifierKey.SHIFT], () => { + this.end += this.txt.length + }) + .keyboardShortcut(FunctionKey.DPAD_UP, [ModifierKey.SHIFT], () => { + this.start -= this.txt.length + }) + + + TextInput({ text: 'get:' }) + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0460.ets new file mode 100644 index 0000000000000000000000000000000000000000..33be65e4ff53ff0d729c072698bbbea1815f366a --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0460.ets @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0460 { + @State msg: string = ' 1测试数据12ZXC、! 2测试KW23!数据'; + @State maxLines: number | undefined = undefined + txt: string = '测试数据1234 数据99987@测试' + @State start: number = this.txt.length*3+5 + @State end: number = this.txt.length*3+10 + + build() { + Column({ space: 10 }) { + + Row({ space: 10 }) { + Button('切换文字') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = + '测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试'; + }) + Button('设置多行') + .id('TextShortCutKey_btn2') + .onClick(() => { + this.msg = '设置多行设置多行设置多行设置多行'; + }) + Button('设置单行') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.msg = ' 设置单行'; + this.maxLines = 1 + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(300) + .height(100) + .fontSize(16) + .enabled(true) + .draggable(true) + .maxLines(this.maxLines) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + .keyboardShortcut(FunctionKey.DPAD_DOWN, [ModifierKey.SHIFT], () => { + this.end += this.txt.length + }) + .keyboardShortcut(FunctionKey.DPAD_UP, [ModifierKey.SHIFT], () => { + this.start -= this.txt.length + }) + + + TextInput({ text: 'get:' }) + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0490.ets new file mode 100644 index 0000000000000000000000000000000000000000..9632102bbce1ad9231cb466578ec16cc06258f56 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0490.ets @@ -0,0 +1,84 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0490 { + @State msg: string = ' 1测试数据12ZXC、! 2测试KW23!数据'; + @State start: number = 0 + @State end: number = 0 + @State maxLines: number | undefined = undefined + txt: string = '测试数据1234 数据99987@测试' + + build() { + Column({ space: 10 }) { + + Row({ space: 10 }) { + Button('切换文字') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = + '测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试' + + '\n测试数据1234 数据99987@测试' + '\n测试数据1234 数据99987@测试'; + }) + Button('设置多行') + .id('TextShortCutKey_btn2') + .onClick(() => { + this.msg = '设置多行设置多行设置多行设置多行'; + }) + Button('设置单行') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.msg = ' 设置单行'; + this.maxLines = 1 + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(300) + .height(100) + .fontSize(16) + .enabled(true) + .draggable(true) + .maxLines(this.maxLines) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + .keyboardShortcut(FunctionKey.DPAD_DOWN, [ModifierKey.SHIFT], () => { + this.end += this.txt.length + }) + + + TextInput({ text: 'get:' }) + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0500.ets new file mode 100644 index 0000000000000000000000000000000000000000..626ef094ec614a8b66ad8df000d606c1ed634862 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0500.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 UICustomTextShortCutKeyReplacement0500 { + @State msg: string = 'Text测试:添加子组件,span、imagespan、symbolspan、containerspan,Shift +方向键查看索引内容'; + @State start: number = 0 + @State end: number = 3 + + build() { + Column() { + Text(this.msg) { + ContainerSpan() { + ImageSpan($r('app.media.app_icon')) + .width(60) + .height(60).obscured([ObscuredReasons.PLACEHOLDER]) + Span("测试12zx!").width('90%').obscured([ObscuredReasons.PLACEHOLDER]) + }.textBackgroundStyle({color: "#7F007DFF", radius: "12vp"}) + SymbolSpan($r('sys.symbol.ohos_wifi')) + .fontSize(96) + .effectStrategy(SymbolEffectStrategy.NONE) + } + .width('90%') + .height(100) + .enabled(true) + .draggable(true) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + + TextInput({ text: 'get:' }) + .width('90%') + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0510.ets new file mode 100644 index 0000000000000000000000000000000000000000..6cfa9218b6f6ba08195b1e3b52a2f3158d210e08 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0510.ets @@ -0,0 +1,88 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0510 { + @State msg: string = 'Text:测试数据测试数据'; + @State start: number = 0 + @State end: number = 5 + @State textIndent: Length | undefined = undefined + @State txt: string = 'Text:测试数据测试数据'; + @State textOverflowOp: TextOverflowOptions | undefined = undefined + @State maxLines: number | undefined = undefined + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Column({ space: 10 }) { + Row({ space: 10 }) { + Button('TextOverflow.Ellipsis') + .id('TextShortCutKey_btn4') + .onClick(() => { + this.maxLines = 1; + this.textOverflowOp = { overflow: TextOverflow.Ellipsis } + this.msg += ' text:test TextOverflow.Ellipsis' + ' text:test TextOverflow.Ellipsis' + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(200) + .height(60) + .maxLines(this.maxLines) + .draggable(true) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_1') + .borderWidth(5) + .textIndent(this.textIndent) + .textOverflow(this.textOverflowOp) + .selection(this.start, this.end) + .textSelectable(TextSelectableMode.SELECTABLE_FOCUSABLE) + .onTextSelectionChange((selectionStart: number, selectionEnd: number) => { + this.txt = 'Callback onTextSelectionChange:{' + selectionStart + ',' + selectionEnd + '}'; + }) + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + .keyboardShortcut(FunctionKey.DPAD_UP, [ModifierKey.SHIFT], () => { + this.end -= 10 + }) + .keyboardShortcut(FunctionKey.DPAD_DOWN, [ModifierKey.SHIFT], () => { + this.end += 30 + }) + + RichEditor(this.options) + .onReady(() => { + }) + .id('TextShortCutKey_4') + .width('90%') + .height(100) + .borderWidth(2) + Text(this.txt).width('80%') + .height(60).borderWidth(5).borderColor(Color.Orange) + } + .width('95%') + .height('90%') + .borderWidth(2) + .borderColor(Color.Brown) + .alignItems(HorizontalAlign.Center) + .margin(10) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610.ets new file mode 100644 index 0000000000000000000000000000000000000000..c85e9fb02f5928c588bc846ec15e660e73bb9413 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610.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. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0610 { + @State msg: string = 'Text:测试数据测试数据'; + @State start: number = 0 + @State end: number = 5 + @State textIndent: Length | undefined = undefined + @State txt: string = 'Text:测试数据测试数据'; + @State textOverflowOp: TextOverflowOptions | undefined = undefined + @State maxLines: number | undefined = undefined + + build() { + Column({ space: 10 }) { + + Row({ space: 10 }) { + Button('change Selection') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.start = 2; + this.end = 10; + }) + Button('设置textIndent') + .id('TextShortCutKey_btn2') + .onClick(() => { + this.msg += '\ntext:test textIndent' + '\ntext:test textIndent'; + this.textIndent = 5 + }) + Button('设置maxLines') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.msg = ' text:test maxLines' + ' text:test maxLines' + ' text:test maxLines'; + this.maxLines = 2 + }) + }.margin({ bottom: 50 }) + + Row({ space: 10 }) { + Button('TextOverflow.Ellipsis') + .id('TextShortCutKey_btn4') + .onClick(() => { + this.maxLines = 1; + this.textOverflowOp = { overflow: TextOverflow.Ellipsis } + this.msg += ' text:test TextOverflow.Ellipsis' + ' text:test TextOverflow.Ellipsis' + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width(200) + .height(60) + .maxLines(this.maxLines) + .draggable(true) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_1') + .borderWidth(5) + .textIndent(this.textIndent) + .textOverflow(this.textOverflowOp) + .selection(this.start, this.end) + .textSelectable(TextSelectableMode.SELECTABLE_FOCUSABLE) + .onTextSelectionChange((selectionStart: number, selectionEnd: number) => { + this.txt = 'Callback onTextSelectionChange:{' + selectionStart + ',' + selectionEnd + '}'; + }) + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + .keyboardShortcut(FunctionKey.DPAD_UP, [ModifierKey.SHIFT], () => { + this.end -= 10 + }) + .keyboardShortcut(FunctionKey.DPAD_DOWN, [ModifierKey.SHIFT], () => { + this.end += 30 + }) + + TextInput({ text: 'get:' }) + .width('100%') + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + TextInput({ text: 'copy结果:' }) + .width('100%') + .height('50') + .margin(20) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_3') + + Text(this.txt).width('80%') + .height(60).borderWidth(5).borderColor(Color.Orange) + } + .width('95%') + .height('90%') + .borderWidth(2) + .borderColor(Color.Brown) + .alignItems(HorizontalAlign.Center) + .margin(10) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0620.ets new file mode 100644 index 0000000000000000000000000000000000000000..70761e68bde6576c18961218598a15fca40a68fc --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0620.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. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0620 { + @State msg: string = 'Text:测试数据测试数据'; + @State start: number = 0 + @State end: number = 5 + @State visibilityVal: Visibility | undefined = undefined + @State txt: string = 'Text:测试数据测试数据'; + + build() { + Column({ space: 10 }) { + + Row({ space: 10 }) { + Button('Visibility.Visible') + .id('TextShortCutKey_btn8') + .onClick(() => { + this.msg = 'text:test Visibility.Visible'; + this.visibilityVal = Visibility.Visible; + this.txt = '当前Visibility.Visible' + }) + Button('Visibility.None') + .id('TextShortCutKey_btn9') + .onClick(() => { + this.msg = 'text:test Visibility.None'; + this.visibilityVal = Visibility.None; + this.txt = '当前Visibility.None,原本的Text不见啦' + }) + Button('Visibility.Hidden') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = 'text:test Visibility.Hidden'; + this.visibilityVal = Visibility.Hidden; + this.txt = '当前Visibility.Hidden,原本的Text不见啦' + }) + }.margin({ bottom: 50 }) + + Column() { + Text(this.msg) + .width(200) + .height(60) + .maxLines(1) + .draggable(true) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_1') + .visibility(this.visibilityVal) + .borderWidth(5) + .selection(this.start, this.end) + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + Text(this.txt).width('100%') + .height(60).borderWidth(5).borderColor(Color.Orange) + }.width(200) + .height(60) + } + .width('95%') + .height('90%') + .borderWidth(2) + .borderColor(Color.Brown) + .alignItems(HorizontalAlign.Center) + .margin(10) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660.ets new file mode 100644 index 0000000000000000000000000000000000000000..2ed4b461d8ea438b28f01863a674a10aace26fce --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660.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. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0660 { + @State msg: string = 'Text:测试数据测试数据'; + @State start: number = 0 + @State end: number = 5 + @State directionVal: Direction | undefined = undefined + @State clipVal: boolean | undefined = undefined + @State enableVal: boolean | undefined = undefined + @State visibilityVal: Visibility | undefined = undefined + controller: RichEditorController = new RichEditorController(); + options: RichEditorOptions = { controller: this.controller }; + + build() { + Column({ space: 10 }) { + Row({ space: 10 }) { + Button('Direction.Ltr') + .id('TextShortCutKey_btn1') + .onClick(() => { + this.msg = 'text:test Direction.Ltr'; + this.directionVal = Direction.Ltr; + this.enableVal = true; + }) + Button('Direction.Rtl') + .id('TextShortCutKey_btn2') + .onClick(() => { + this.msg = 'text:test Direction.Rtl'; + this.directionVal = Direction.Rtl; + this.enableVal = true; + }) + Button('Direction.Auto') + .id('TextShortCutKey_btn3') + .onClick(() => { + this.msg = 'text:test Direction.Auto'; + this.directionVal = Direction.Auto; + this.enableVal = true; + }) + } + + Row({ space: 10 }) { + Button('clip=true') + .id('TextShortCutKey_btn4') + .onClick(() => { + this.msg = + 'text:testclip=truetruetruetruetruetruetruetruetruetruetruetruetruetruetruetruetruetruetruetruetrue'; + this.clipVal = true; + this.enableVal = true; + }) + Button('clip=false') + .id('TextShortCutKey_btn5') + .onClick(() => { + this.msg = + 'text:testclip=falsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefalsefal'; + this.clipVal = false; + this.enableVal = true; + }) + } + + Row({ space: 10 }) { + Button('enableVal=true') + .id('TextShortCutKey_btn6') + .onClick(() => { + this.msg = 'text:test enableVal=true'; + this.enableVal = true; + }) + Button('enableVal=false') + .id('TextShortCutKey_btn7') + .onClick(() => { + this.msg = 'text:test enableVal=false'; + this.enableVal = false; + }) + }.margin({ bottom: 50 }) + + Text(this.msg) + .width('60%') + .height(60) + .maxLines(1) + .draggable(true) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_1') + .direction(this.directionVal) + .clip(this.clipVal) + .wordBreak(WordBreak.NORMAL) + .enabled(this.enableVal) + .borderWidth(5) + .selection(this.start, this.end) + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + + RichEditor(this.options) + .onReady(() => { + }) + .id('TextShortCutKey_3') + .width('90%') + .height(100) + .borderWidth(2) + + TextInput({ text: 'get:' }) + .width('100%') + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + .width('95%') + .height('90%') + .borderWidth(2) + .borderColor(Color.Brown) + .alignItems(HorizontalAlign.Center) + .margin(10) + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0670.ets new file mode 100644 index 0000000000000000000000000000000000000000..138443a6ba70c8eca635ec8d5ae17c85362b9986 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0670.ets @@ -0,0 +1,60 @@ +/* + * Copyright (C) 2024 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the 'License') + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an 'AS IS' BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +@Entry +@Component +struct UICustomTextShortCutKeyReplacement0670 { + @State msg: string = 'Text测试:obscured'; + @State start: number = 0 + @State end: number = 3 + + build() { + Column() { + Text(this.msg) { + ImageSpan($r('app.media.app_icon')) + .width(60) + .height(60).obscured([ObscuredReasons.PLACEHOLDER]) + Span("HelloWorld").width('90%').obscured([ObscuredReasons.PLACEHOLDER]) + } + .width('90%') + .height(100) + .enabled(true) + .draggable(true) + .copyOption(CopyOptions.InApp) + .selection(this.start, this.end) + .id('TextShortCutKey_1') + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + + TextInput({ text: 'get:' }) + .width('90%') + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710.ets new file mode 100644 index 0000000000000000000000000000000000000000..3f33cc6930f747cc249b8316d4f4fd03d2caf2f9 --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710.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 UICustomTextShortCutKeyReplacement0710 { + @State msg: string = 'Text:测试数据测试数据'; + @State start: number = 0 + @State end: number = 5 + + build() { + Column() { + Column() { + Text(this.msg) + .margin(20) + .fontSize(16) + .enabled(true) + .draggable(true) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_1') + .selection(this.start, this.end) + .textSelectable(TextSelectableMode.SELECTABLE_FOCUSABLE) + .keyboardShortcut(FunctionKey.DPAD_LEFT, [ModifierKey.SHIFT], () => { + if (this.end != 0) { + this.end-- + } + }) + .keyboardShortcut(FunctionKey.DPAD_RIGHT, [ModifierKey.SHIFT], () => { + this.end++ + }) + + TextInput({ text: 'get:' }) + .width('100%') + .height('50') + .margin(20) + .draggable(true) + .fontSize(16) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_2') + .onDragEnter(() => { + console.log('onDragEnter'); + }) + } + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0720.ets new file mode 100644 index 0000000000000000000000000000000000000000..87292626dd3b5f3e2a2f6720da6f1482774f9eee --- /dev/null +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0720.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 UICustomTextShortCutKeyReplacement0720 { + @State msg: string = 'Text:测试数据测试数据'; + @State start: number = 0 + @State end: number = 5 + + build() { + Column() { + Column() { + Text(this.msg) + .margin(20) + .fontSize(16) + .enabled(true) + .draggable(true) + .copyOption(CopyOptions.InApp) + .id('TextShortCutKey_1') + .textSelectable(TextSelectableMode.SELECTABLE_FOCUSABLE) + } + } + } +} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase001.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase001.ets deleted file mode 100644 index 6a9ba5b75143f47e4b8aa90828153fbf076ddf6a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase001.ets +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UITestCase001 { - @State rating: number = 3.5; - @State handlePopup: boolean = false; - - @Builder - indicatorBuilder() { - Text('on') - .bindPopup(this.handlePopup, this.popupOptions) - } - - popupOptions: PopupOptions = { - message: 'this is a popup', - enableArrow: true, - showInSubWindow: true, - placement: Placement.Top, - autoCancel: true, - onWillDismiss: true, - width: '200px', - primaryButton: { - value: 'Cancel', - action: () => { - this.handlePopup = !this.handlePopup; - } - } - }; - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height(50) - .width(50) - .checked(false) - .id('UITestCase0010') - .onChange(() => { - this.handlePopup = !this.handlePopup; - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase002.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase002.ets deleted file mode 100644 index 501982f1b1d515c5804665943c670578520b5f74..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase002.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UITestCase002 { - @State rating: number = 3.5; - @State handlePopup: boolean = false; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - .width('20vp') - .height('20vp') - } - - build() { - Row() { - Column() { - Text('Radio设置宽高为50,image设置宽高为20') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height('50vp') - .width('50vp') - .checked(false) - .id('UITestCase0020') - .onChange(() => { - this.handlePopup = !this.handlePopup; - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase003.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase003.ets deleted file mode 100644 index 56d9e72d5ecd3195f2d7e89be2442870a670cafb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase003.ets +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UITestCase003 { - @State rating: number = 3.5; - @State handlePopup: boolean = false; - - @Builder - indicatorBuilder() { - Image('cat.jpg') - .width('100vp') - .height('100vp') - } - - build() { - Row() { - Column() { - Text('Radio设置宽高为50,image设置宽高为100') - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height(50) - .width(50) - .checked(false) - .id('UITestCase0030') - .onChange(() => { - this.handlePopup = !this.handlePopup; - }) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase004.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase004.ets deleted file mode 100644 index 8bf806f2f1c4d71b268b1268d3493a602a87c58e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UITestCase/UITestCase004.ets +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UITestCase004 { - - @Builder - indicatorBuilder() { - Checkbox() - .id('UITestCase0041') - .width(60) - .height(60) - } - - build() { - Row() { - Column() { - Radio( - { - value: 'Radio', - group: 'radioGroup', - indicatorType: RadioIndicatorType.CUSTOM, - indicatorBuilder: () => this.indicatorBuilder() - }) - .height(80) - .width(80) - .checked(true) - } - .width('200px') - .height('80px') - } - .width('100%') - .height('100%') - .alignItems(VerticalAlign.Center) - .justifyContent(FlexAlign.Center) - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0010.ets deleted file mode 100644 index daf382ba79c5f33f1539bd227540214c8c99ca86..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0010.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0010 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth(OptionWidthMode.FIT_CONTENT) - .id("UiComponentButtonSelectAlign0010_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0020.ets deleted file mode 100644 index 142f9e4eb177e7276e3b405a478d6ab2c9a42c86..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0020.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0020 { - text: string = "TTTTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth(OptionWidthMode.FIT_TRIGGER) - .id("UiComponentButtonSelectAlign0020_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0030.ets deleted file mode 100644 index d40c7c41b483add449ae62ff66a4a26903c16118..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0030.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0030 { - text: string = "TTTTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('50px') - .id("UiComponentButtonSelectAlign0030_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0040.ets deleted file mode 100644 index b033602d3f88bd3cd84ac3db118e2c9375068ed9..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0040.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0040 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('0px') - .id("UiComponentButtonSelectAlign0040_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0050.ets deleted file mode 100644 index 39fce8dc895c761dc4698ea102fb327bd0528496..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0050.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0050 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('-50px') - .id("UiComponentButtonSelectAlign0050_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0060.ets deleted file mode 100644 index 00b0222d4c944a9932745898616b677a9b89b513..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0060.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0060 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('50vp') - .id("UiComponentButtonSelectAlign0060_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0070.ets deleted file mode 100644 index 17eceae904f7b533c588dca526adf055da04ecaf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0070.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0070 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('0vp') - .id("UiComponentButtonSelectAlign0070_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0080.ets deleted file mode 100644 index 059679f7af39f1546faf0f0adbe8a1a80323962d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0080.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0080 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('-50vp') - .id("UiComponentButtonSelectAlign0080_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0090.ets deleted file mode 100644 index f3f77a80b7047caee87954bfccb1444c8eb0a623..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0090.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0090 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('50fp') - .id("UiComponentButtonSelectAlign0090_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0100.ets deleted file mode 100644 index 29ec775c655372ccbbdc1780cec962c81badb25a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0100.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0100 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('0fp') - .id("UiComponentButtonSelectAlign0100_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0110.ets deleted file mode 100644 index 2a2fe7afb96e4aa6a97160cf1c5e3d4a60480b3c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0110.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0110 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('0fp') - .id("UiComponentButtonSelectAlign0110_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0120.ets deleted file mode 100644 index 5e73f6cb5240dec057496a0ddfce930207409339..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0120.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0120 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('50lpx') - .id("UiComponentButtonSelectAlign0120_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0130.ets deleted file mode 100644 index e395742bf8ecfbf71f0b7d93e270be45a77977ff..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0130.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0130 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('0lpx') - .id("UiComponentButtonSelectAlign0130_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0140.ets deleted file mode 100644 index d080a2cb0d5e5ca4e8530be92c7494125bd7e018..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0140.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0140 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('-50lpx') - .id("UiComponentButtonSelectAlign0140_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0150.ets deleted file mode 100644 index 5c9cb662a890527fd101aaf059597a60d7e4e41a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0150.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0150 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('80%') - .id("UiComponentButtonSelectAlign0150_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0160.ets deleted file mode 100644 index 6d9d834f837658a4a7cb299198675273552bcd7f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0160.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0160 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth(0) - .id("UiComponentButtonSelectAlign0160_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0170.ets deleted file mode 100644 index 284c9ef1f0649df5ad6d06329a4e3d38bbe6a5f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0170.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0170 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('-50%') - .id("UiComponentButtonSelectAlign0170_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0180.ets deleted file mode 100644 index 1c510f90333290c9ef8ff99491e9b3d136bcffaf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0180.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0180 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth(getContext().resourceManager.getNumber($r('app.integer.integer100')) + 'vp' as VP) - .id("UiComponentButtonSelectAlign0180_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0190.ets deleted file mode 100644 index 0d0d65832574dcd24ab21227c8217cfb57b89567..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0190.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0190 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('50000vp') - .id("UiComponentButtonSelectAlign0190_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0200.ets deleted file mode 100644 index 5b828c4cf095d55aabce67251fe9312922540d34..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0200.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0200 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('50px') - .id("UiComponentButtonSelectAlign0200_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0210.ets deleted file mode 100644 index 5700c56863209589c6e8e1b45617bc858b51c60d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0210.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0210 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('0px') - .id("UiComponentButtonSelectAlign0210_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0220.ets deleted file mode 100644 index d1c45767722c5cfb2d92b0526cec014ff75029cb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0220.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0220 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('-50fp') - .id("UiComponentButtonSelectAlign0220_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0230.ets deleted file mode 100644 index 52279eeb8bb09305651ec6c4cd79fdee48aa3e16..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0230.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0230 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('50vp') - .id("UiComponentButtonSelectAlign0230_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0240.ets deleted file mode 100644 index 2db0613837e369fadb7c0f46254081848c9124b4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0240.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0240 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('0vp') - .id("UiComponentButtonSelectAlign0240_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0250.ets deleted file mode 100644 index 81d68b683ebfec346329e414bc3a3133cc19aeab..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0250.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0250 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('-50vp') - .id("UiComponentButtonSelectAlign0250_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0260.ets deleted file mode 100644 index ad9feaf26e0a8e6d66e49f55e19dc12b47b4266a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0260.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0260 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('50fp') - .id("UiComponentButtonSelectAlign0260_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0270.ets deleted file mode 100644 index 7a530fd4d7591c39a9577eea67e7346175f7b05d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0270.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0270 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('0fp') - .id("UiComponentButtonSelectAlign0270_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0280.ets deleted file mode 100644 index b8f74e33cf3d9fbc7633d5e9650a487f11f1b796..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0280.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0280 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('-50fp') - .id("UiComponentButtonSelectAlign0280_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0290.ets deleted file mode 100644 index 9eaf45acc32dc5c594c663d473e663211f3067a5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0290.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0290 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .optionHeight('50lpx') - .value(this.text) - .id("UiComponentButtonSelectAlign0290_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0300.ets deleted file mode 100644 index 0698e91875748896f25a4ad7d2976a68ca5a1ab5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0300.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0300 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('0lpx') - .id("UiComponentButtonSelectAlign0300_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0310.ets deleted file mode 100644 index d5cf18c3d43a8f7d405787b7e10cf7a233dc7a8d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0310.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0310 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('-50lpx') - .id("UiComponentButtonSelectAlign0310_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0320.ets deleted file mode 100644 index 1e3531bb9d027a6cf36b105bbb58fb951ff228a0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0320.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0320 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('80%') - .id("UiComponentButtonSelectAlign0320_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0330.ets deleted file mode 100644 index 6aaaf7b3bad7891634dd9d422dffa120ca5fea56..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0330.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0330 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight(0) - .id("UiComponentButtonSelectAlign0330_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0340.ets deleted file mode 100644 index ce8949caa6227011c37ae8cf8ffe50a3b9152859..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0340.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0340 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight('-50%') - .id("UiComponentButtonSelectAlign0340_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0350.ets deleted file mode 100644 index d7b7af1504162e2bc308e8b545f312d9a2ebfb97..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0350.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0350 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionHeight(getContext().resourceManager.getStringSync($r('app.string.size_30')) as VP) - .id("UiComponentButtonSelectAlign0350_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0360.ets deleted file mode 100644 index 29fbf068111592f91f52004ca222dae2e60f43d4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0360.ets +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0360 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select(this.getOptions()) - .value(this.text) - .optionHeight('-50000vp') - .id("UiComponentButtonSelectAlign0360_001") - } - .width('100%') - .height('100%') - } - } - - getOptions(): Array { - const options: Array = []; - options.push({ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }); - for (let i = 4; i <= 30; i++) { - options.push({ value: `item${i}` }); - } - return options; - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0370.ets deleted file mode 100644 index 5a39c5e8afa1d57c672decb6833dba9716e64ad7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0370.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0370 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionFont({ size: '8vp' }) - .optionHeight('50vp') - .id("UiComponentButtonSelectAlign0370_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0380.ets deleted file mode 100644 index 20823ff10fff8d6518e2c2e38a304c7abc43c08d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0380.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0380 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionFont({ size: '50vp' }) - .optionHeight('20vp') - .id("UiComponentButtonSelectAlign0380_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0390.ets deleted file mode 100644 index 203ab7094d6de7a40f02a4dc515e786fd3d2c5a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0390.ets +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0390 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionWidth('10vp') - .menuItemContentModifier(new MenuItemContentModifierAlign0390()) - .id("UiComponentButtonSelectAlign0390_001") - } - .width('100%') - .height('100%') - } - } -} - -class MenuItemContentModifierAlign0390 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MenuItemBuilderAlign0390); - } -} - -@Builder -function MenuItemBuilderAlign0390(configuration: MenuItemConfiguration) { - Row() { - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .width('100%') - .height('10%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0400.ets deleted file mode 100644 index e932def524d22597cc50776b4a114ee3b876c0d7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0400.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0400 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .optionFont({ size: '50vp' }) - .optionHeight('20vp') - .optionWidth('20vp') - .id("UiComponentButtonSelectAlign0400_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0410.ets deleted file mode 100644 index 987e573d6da87cfce8bc0d1d7a8e3db53174b972..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0410.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0410 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - .backgroundColor(Color.Red) - .id("UiComponentButtonSelectAlign0410_001") - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0420.ets deleted file mode 100644 index 1e424cb2009664763c5939624ba2e0f8220832ce..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0420.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectAlign0420 { - text: string = "a" - build() { - Row() { - Column() { - Select([{ - value: '早上好中午好晚上好', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安', - }, { - value: '你好我的朋友上午好早上好中午好晚上好晚安上午好早上好中午好晚上好晚安', - }]) - .value(this.text) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0030.ets deleted file mode 100644 index 21dd43a78d4ab6ab523c817a554297d08e3fca1e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0030.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0030 { - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .width('20%') - .height('100%') - .linearGradient({ - direction: GradientDirection.Bottom, - colors: [[Color.Red, 0], [Color.Yellow, 0.3], [Color.Blue, 0.6]] - }) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0040.ets deleted file mode 100644 index aa895faff9fd3fcf5586ed1aacc47216667879b3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0040.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0040 { - text: string = "TTTTT" - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .value(this.text) - .padding('150px') - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0050.ets deleted file mode 100644 index 1b752fc20655c3aa5e0593757689e0032c0f69c8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0050.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0050 { - text: string = "test" - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .value(this.text) - .width('1000vp') - .space('800vp') - .font({ size: '300vp' }) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0060.ets deleted file mode 100644 index d0969ee1c37af874337ef0f0fd08a876d38d32f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0060.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0060 { - text: string = "测试长度受限文本" - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .value(this.text) - .width('300vp') - .space('180vp') - .font({ size: '10vp' }) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0070.ets deleted file mode 100644 index 059758050e9778855d254f04e16b644435a09f57..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0070.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { common } from '@kit.AbilityKit' -import { window } from '@kit.ArkUI' - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0070 { - text: string = "测试长度受限文本测试长度受限文本测试长度受限文本" - @State isChange: boolean = false - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .value(this.text) - .width('3000vp') - .space('1100vp') - .font({ size: '100vp' }) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0080.ets deleted file mode 100644 index 11b618ad0ebb7c52f1fb1cdb44155a5229838f50..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0080.ets +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0080 { - text: string = "test" - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .value(this.text) - .width('500vp') - .space('300vp') - .font({ size: '100vp' }) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0090.ets deleted file mode 100644 index 1300b85f3003ba6a90897699dfff355edfe258c5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0090.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0090 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '111', - }, { - value: '222', - }, { - value: '333', - }, { - value: '444', - }, { - value: '555', - }]) - .value(this.text) - .width(0) - .height(0) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0100.ets deleted file mode 100644 index b1525730a45f89bcef659710acf2173609cb9584..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0100.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0100 { - - build() { - Row() { - Column() { - Select([{ - value: '111', - }, { - value: '222', - }, { - value: '333', - }, { - value: '444', - }, { - value: '555', - }]) - .width('100%') - .height('100%') - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0110.ets deleted file mode 100644 index 5fc95e9257caedc429e839425dbf2217c71accc8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0110.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0110 { - - build() { - Row() { - Column() { - Select([{ - value: '111', - }, { - value: '222', - }, { - value: '333', - }, { - value: '444', - }, { - value: '555', - }]) - .width('60%') - .height('60%') - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0120.ets deleted file mode 100644 index 2f37b78fc9780801ddbbf7a309215f392653af18..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0120.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0120 { - - build() { - Row() { - Column() { - Select([{ - value: '111', - }, { - value: '222', - }, { - value: '333', - }, { - value: '444', - }, { - value: '555', - }]) - .width('80%') - .height('80%') - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0130.ets deleted file mode 100644 index cef8e41d9097759bbefb272bb0803f3d4160057e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0130.ets +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0130 { - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ - value: '111', - }, { - value: '222', - }, { - value: '333', - }, { - value: '444', - }, { - value: '555', - }]) - .value(this.text) - .width(-1) - .height(-1) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0140.ets deleted file mode 100644 index dae8cef34cd07902acd553723e2b7db9b664ac58..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0140.ets +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0140 { - text: string = "测试较长文本早餐午餐晚餐" - build() { - Row() { - Column() { - Select([{ value: '较短文本' }]) - .value(this.text) - .menuItemContentModifier(new MyMenuItemContentModifierEnhancement0140()) - .id('UiComponentButtonSelectEnhancement0140_001') - .borderImage({ - source: { - direction: GradientDirection.RightBottom, - colors: [[Color.Green, 0.0], [Color.Pink, 0.3], [Color.Orange, 1.0]] - }, - slice: { top: 10, bottom: 10, left: 10, right: 10 }, - width: { top: "10px", bottom: "10px", left: "10px", right: "10px" }, - repeat: RepeatMode.Stretch, - fill: false - }) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} - -class MyMenuItemContentModifierEnhancement0140 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilderEnhancement0140); - } -} - -@Builder -function MyMenuItemBuilderEnhancement0140(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`UiComponentButtonSelectEnhancement0140_${configuration.index}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0150.ets deleted file mode 100644 index ea4d2336b70fc1ac5a8db8bf50b42b216b44f012..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0150.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0150 { - build() { - Row() { - Column() { - Select([{ value: '' }]) - .value(getContext().resourceManager.getNumber($r('app.float.boardSize_10')) + '') - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0160.ets deleted file mode 100644 index 56195c864ef8fcfcec762a0794fbd8f5262f9d0b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0160.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0160 { - text: string = "TTTTT" - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .value(this.text) - .padding(20) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0170.ets deleted file mode 100644 index c4a471de2954c70cb8668b014f4bbd90340e8d92..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0170.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0170 { - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .backgroundImage($r('app.media.icon')) - .backgroundImageSize(ImageSize.Cover) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0180.ets deleted file mode 100644 index 0163cf71850ea40f825449b902d3be39394d4f19..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0180.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0180 { - - build() { - Row() { - Column() { - Select([{ value: ''}]) - .width('90%') - .height('90%') - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0190.ets deleted file mode 100644 index 8550fcc0de2891e69b73e960bdc776d4636ec062..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0190.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0190 { - - text: string = "TTTTT" - build() { - Row() { - Column() { - Select([{ value: ''}]) - .width('50%') - .height('50%') - .value(this.text) - .linearGradient({ - direction: GradientDirection.RightBottom, - repeating: false, - colors: [[0xff0000, 0.0], [0x0000ff, 0.3], [0xffff00, 0.5]] - }) - .onSelect(() => { - - }) - } - .width('100%') - .height('100%') - } - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0220.ets deleted file mode 100644 index 1543f4156063be7cf248fc9fa6caab98eef2d018..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0220.ets +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import window from '@ohos.window'; -import common from '@ohos.app.ability.common'; - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0220 { - @State optionWidth: Dimension = '50vp' - @State isChange: boolean = false - - build() { - Row() { - Column() { - Select([{ - value: '200vp', - }, { - value: '250vp', - }, { - value: '300vp', - }, { - value: '350vp', - }, { - value: '400vp', - }]) - .value('切换菜单项宽度') - .optionWidth(this.optionWidth) - .keyboardShortcut(FunctionKey.F1, []) - .menuItemContentModifier(new MenuItemContentModifier0220()) - .onSelect((index: number, text?: string)=>{ - this.optionWidth = text as VP - }) - } - .width('50%') - Column() { - Button("横竖切换") - .onClick(() => { - this.changeOrientation() - }) - .keyboardShortcut(FunctionKey.F2, []) - } - .width('50%') - } - } - - changeOrientation() { - let context = getContext(this) as common.UIAbilityContext; - window.getLastWindow(context) - .then((lastWindow) => { - this.isChange = !this.isChange - lastWindow.setPreferredOrientation(this.isChange ? window.Orientation.LANDSCAPE : window.Orientation.PORTRAIT) - }) - } -} - -class MenuItemContentModifier0220 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder0220); - } -} - -@Builder -function MyMenuItemBuilder0220(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) - .tabIndex(1) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0230.ets deleted file mode 100644 index 6204482adb6c10f47ea8ffc0a3e70662207dfbd7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0230.ets +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import window from '@ohos.window'; -import common from '@ohos.app.ability.common'; - -@Entry -@Component -struct UiComponentButtonSelectEnhancement0230 { - @State optionWidth: Dimension = '60vp' - - build() { - Row() { - Column() { - Select([{ - value: '200vp', - }, { - value: '250vp', - }, { - value: '300vp', - }, { - value: '350vp', - }, { - value: '400vp', - }]) - .value('切换菜单项宽度') - .optionWidth(this.optionWidth) - .keyboardShortcut(FunctionKey.DPAD_UP, []) - .menuItemContentModifier(new MenuItemContentModifier0230()) - .onSelect((index: number, text?: string)=>{ - this.optionWidth = text as VP - }) - } - .width('100%') - .height('100%') - } - } -} - -class MenuItemContentModifier0230 implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(MyMenuItemBuilder0230); - } -} - -@Builder -function MyMenuItemBuilder0230(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - } - .keyboardShortcut(FunctionKey.F1, []) - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectInterface/UiComponentButtonSelectInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectInterface/UiComponentButtonSelectInterface0240.ets deleted file mode 100644 index 6709f3595f8afa6946f3130ff6fa48c59c0d5860..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentButtonSelectInterface/UiComponentButtonSelectInterface0240.ets +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentButtonSelectInterface0240 { - @State text: string = "" - @State index: number = 2 - - build() { - Row() { - Column() { - Select([{ - value: '111', - }, { - value: '222', - }, { - value: '333', - }, { - value: '444', - }, { - value: '555', - }]) - .width('100%') - .selected(this.index) - .menuItemContentModifier(new InterfaceMenuItemContentModifier()) - .onSelect((index:number, text?: string | undefined)=>{ - console.info('Select:' + index) - this.index = index; - if(text){ - this.text = text; - } - }) - .id("UiComponentButtonSelectInterface0240_001") - Row() { - Text('Index: ' + this.index) - Text('Value: ' + this.text) - } - } - .width('100%') - .height('100%') - } - } -} - -class InterfaceMenuItemContentModifier implements ContentModifier { - applyContent(): WrappedBuilder<[MenuItemConfiguration]> { - return wrapBuilder(InterfaceMenuItemBuilder); - } -} - -@Builder -function InterfaceMenuItemBuilder(configuration: MenuItemConfiguration) { - Row() { - Image(configuration.icon).size({ width: 40, height: 40 }) - Text(configuration.value) - .fontColor(configuration.selected ? Color.Blue : Color.Black) - .id(`UiComponentButtonSelectInterface0240_${configuration.value}`) - } - .width('100%') - .backgroundColor(configuration.selected ? '#CBE6FD' : Color.White) - .onClick(() => { - configuration.triggerSelect(configuration.index, configuration.value.valueOf().toString()); - }) -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0010.ets deleted file mode 100644 index b38f3d1c419d88f78f277ab6ca18aa608803166c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0010.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0010 { - selectedDate: Date = new Date("1970-1-1") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("1888-1-1"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0010_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0020.ets deleted file mode 100644 index d0ec57402823ebd54320a2beeca5aa43eaac527b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0020.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0020 { - selectedDate: Date = new Date("1970-1-1") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("-1970-1-1"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0020_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0030.ets deleted file mode 100644 index b05199c7a916266200d4f8dd7dc85a9c9107cb9d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0030.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0030 { - selectedDate: Date = new Date("1970-1-1") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("1970-13-1"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0030_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0040.ets deleted file mode 100644 index bf19e7034aacaa83d2711962ef45007196e51499..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0040.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0040 { - selectedDate: Date = new Date("1970-1-1") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("1970-1-32"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0040_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0050.ets deleted file mode 100644 index 374c40dbce51601378f2388eae773663e3961190..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0050.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0050 { - selectedDate: Date = new Date("1970-1-1") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("1970-1-1"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0050_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0060.ets deleted file mode 100644 index 326e999c86f2b7aa2c61b5b4f0695fa76c29af5b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0060.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0060 { - selectedDate: Date = new Date("2023-5-16") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("2023-5-16"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0060_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0070.ets deleted file mode 100644 index a06693233cd6e016875812e907cdc1b5906ac951..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0070.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0070 { - selectedDate: Date = new Date("2100-12-31") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - end: new Date("2111-1-1"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0070_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0080.ets deleted file mode 100644 index 8827c3d998a2e125b7e3a33e39b7884c758fad85..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0080.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0080 { - selectedDate: Date = new Date("2100-12-31") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - end: new Date("-2100-1-1"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0080_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0090.ets deleted file mode 100644 index 97882ce85bc877738021dd0dfad2453133f3c597..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0090.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0090 { - selectedDate: Date = new Date("2100-12-31") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - end: new Date("2100-13-1"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0090_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0100.ets deleted file mode 100644 index 664e59f9d06558cd417349fa0db81a296cd5127f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0100.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0100 { - selectedDate: Date = new Date("2100-12-31") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - end: new Date("2100-1-32"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0100_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0110.ets deleted file mode 100644 index 2488127c8cc1c19ee97b0ed9e02c9e074e914466..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0110.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0110 { - selectedDate: Date = new Date("2100-12-31") - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - end: new Date("2100-12-31"), - selected: this.selectedDate, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0110_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0120.ets deleted file mode 100644 index 1d16512dd0b41c49af3abd79eac70034ac850dd3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0120.ets +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0120 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - start: new Date("2100-12-31"), - end: new Date("1970-1-1"), - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0120_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0130.ets deleted file mode 100644 index 87473aa8aeb58ddf2708f644305d8fe3cd54ef87..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0130.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0130 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selected: new Date("2023-5-18"), - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0130_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0140.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0140.ets deleted file mode 100644 index d534067f89be7aaefcbca3a67d6c7dfecf8c5f7d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0140.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0140 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selected: new Date("9999-99-99"), - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0140_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0150.ets deleted file mode 100644 index e747b9fdafe2d2140950709d5e464d502ddc4112..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0150.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0150 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - lunar: true - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0150_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0160.ets deleted file mode 100644 index dab459774e2709e8211983bca9452d23dc99afef..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0160.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0160 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - lunar: false - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0160_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0170.ets deleted file mode 100644 index 1619099ad60216b2ce2d08b9355171f69a06255e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0170.ets +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0170 { - selectedDate: Date = new Date('2024-11-04T09:05:00') - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selected: this.selectedDate, - showTime: true - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0170_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0180.ets deleted file mode 100644 index 811c6a2cf8db379d76cf7bf8f0f8aa3eab588994..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0180.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0180 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - showTime: false - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0180_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0190.ets deleted file mode 100644 index c78c1bb561b82b368cf50a720251827974ea5b59..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0190.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0190 { - selectTime: Date = new Date('2020-12-25T15:30:00') - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selected: this.selectTime, - useMilitaryTime: true, - showTime: true, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0190_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0200.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0200.ets deleted file mode 100644 index 5574dc48f44c80897409b2bb553596fd641db46d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0200.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0200 { - selectTime: Date = new Date('2020-12-25T08:30:00') - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selected: this.selectTime, - useMilitaryTime: false, - showTime: true, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0200_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0210.ets deleted file mode 100644 index 6794a35c5c851c56833d9fc8f16d330bf099e958..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0210.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0210 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {color: Color.Blue}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0210_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0220.ets deleted file mode 100644 index d56d43ec568cf2e4352170ed2f7cc25fac601000..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0220.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0220 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {color: 0x0000ff}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0220_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0230.ets deleted file mode 100644 index 4ca92ed5ec800011a0a3afe4e5cc89e9dbb144ac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0230.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0230 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {color: "rgb(255,0,0)"}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0230_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0240.ets deleted file mode 100644 index f0ad1c30530475919c6b2b81c7a5686ee9fdab55..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0240.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0240 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {color: getContext().resourceManager.getColorSync($r("app.color.blue"))}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0240_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0250.ets deleted file mode 100644 index b98cecb609f0bc841139f5ee73e56a32ebd6bf80..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0250.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0250 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {size: "10px"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0250_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0260.ets deleted file mode 100644 index 6b2f003183c5d99f8bba5f9673773db89cf60de2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0260.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0260 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {size: 10}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0260_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0270.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0270.ets deleted file mode 100644 index 05baa13c8ff81732a199d04f5ba0320f333966e5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0270.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0270 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {size: getContext().resourceManager.getNumber($r("app.integer.integer100"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0270_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0280.ets deleted file mode 100644 index 5d3537321f123f5bdb1f208e861d54dfcec2c6b2..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0280.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0280 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: FontWeight.Lighter}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0280_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0290.ets deleted file mode 100644 index 8cae7306b836fa257b8e5c84750feb3c055f2ea5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0290.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0290 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: FontWeight.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0290_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0300.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0300.ets deleted file mode 100644 index ad00cb007835ffc6f3316214e3b318fd88cbda92..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0300.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0300 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: FontWeight.Regular}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0300_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0310.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0310.ets deleted file mode 100644 index 42e41a99015a5d5a4be61b787e1a99ef8e35577c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0310.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0310 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: FontWeight.Medium}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0310_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0320.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0320.ets deleted file mode 100644 index 4289d143be8ee1df15c23c5281e9f2b0d6d9e5df..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0320.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0320 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: FontWeight.Bold}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0320_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0330.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0330.ets deleted file mode 100644 index b65c1eb43fcdb5eaf1e0067b9aef92a59acea12f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0330.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0330 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: FontWeight.Bolder}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0330_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0340.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0340.ets deleted file mode 100644 index 28426308efa772368e183f45be615dbb16819dee..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0340.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0340 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: 400}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0340_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0350.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0350.ets deleted file mode 100644 index 174bc9a28bb7b788cf2edf85fcb0670ea686ceb6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0350.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0350 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: 500}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0350_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0360.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0360.ets deleted file mode 100644 index 93d7cdbae014cb1d728024704e747511d34e197c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0360.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0360 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {weight: "500"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0360_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0370.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0370.ets deleted file mode 100644 index 478d4236501041f8b4174e0029be0ddd9af75fd3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0370.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0370 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {family: "HarmonyOS Sans"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0370_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0380.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0380.ets deleted file mode 100644 index 5ef2f68e1f302061cb6c071dbe9e938baf6217ed..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0380.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0380 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {family: getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0380_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0390.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0390.ets deleted file mode 100644 index d19f938b300879b5948abed6de195893b5148552..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0390.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0390 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {style: FontStyle.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0390_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0400.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0400.ets deleted file mode 100644 index c0596be65bcc987e3495e109ea4dd49f58da9b6b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0400.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0400 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - disappearTextStyle: {font: {style: FontStyle.Italic}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0400_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0410.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0410.ets deleted file mode 100644 index e69f55bb1cbf36b1644b9f9fbe5864005db2b2f0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0410.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0410 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {color: Color.Blue}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0410_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0420.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0420.ets deleted file mode 100644 index 9fa5dcdfb3f7f72e4c3560eb5a18f467b61147ac..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0420.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0420 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {color: 0x0000ff}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0420_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0430.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0430.ets deleted file mode 100644 index 9fe9bb45b890da46b2c4755d6d9085ed15d05d98..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0430.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0430 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {color: "rgb(255,0,0)"}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0430_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0440.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0440.ets deleted file mode 100644 index c8de1226d40fa858287d7a4bb36fc403697b91bc..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0440.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0440 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {color: getContext().resourceManager.getColorSync($r("app.color.blue"))}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0440_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0450.ets deleted file mode 100644 index a78639f3f5f6eb41b0f30141e929c5f460f19c91..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0450.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0450 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {size: "10px"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0450_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0460.ets deleted file mode 100644 index 49183cc4e9cedf65b5b6380a4662d64c2571edb8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0460.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0460 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {size: 10}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0460_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0470.ets deleted file mode 100644 index 1ccec1e256927a8945055b0897583bca54dca27d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0470.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0470 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {size: getContext().resourceManager.getNumber($r("app.integer.integer100"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0470_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0480.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0480.ets deleted file mode 100644 index 6fd37afb06ce0d586d6e01d4b3ac90b575eafe44..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0480.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0480 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: FontWeight.Lighter}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0480_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0490.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0490.ets deleted file mode 100644 index 81e1992e222f19788c596910829f34748d5bf925..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0490.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0490 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: FontWeight.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0490_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0500.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0500.ets deleted file mode 100644 index a874c1d3d013d5ae7c5776c7a77067e870bcb8ba..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0500.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0500 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: FontWeight.Regular}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0500_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0510.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0510.ets deleted file mode 100644 index 7ae1e2e022e09a23fc810ee57204cc22de956b16..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0510.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0510 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: FontWeight.Medium}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0510_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0520.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0520.ets deleted file mode 100644 index 23480fcf04d5f56e328eb740239716260b132031..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0520.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0520 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: FontWeight.Bold}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0520_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0530.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0530.ets deleted file mode 100644 index 281306464cb28613c037cf480d4637e84bfab7ed..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0530.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0530 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: FontWeight.Bolder}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0530_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0540.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0540.ets deleted file mode 100644 index 4b9a42fc5c9dd8aa233413ee9bf6dd1612ab3b2d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0540.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0540 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: 400}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0540_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0550.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0550.ets deleted file mode 100644 index 2e5d2b4e100457a3e8c7ca52477b54c25e0c8c59..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0550.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0550 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: 500}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0550_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0560.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0560.ets deleted file mode 100644 index 865eaa2b040ecded30aca8c350e48ee55aac3fcb..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0560.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0560 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {weight: "500"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0560_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0570.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0570.ets deleted file mode 100644 index 9e4fd1083a1d8495022fb63fd5dbc38bde776c3a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0570.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0570 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {family: "HarmonyOS Sans"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0570_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0580.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0580.ets deleted file mode 100644 index 335bf45470e374ac64bc90a663a8fbb728ae31b6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0580.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0580 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {family: getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0580_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0590.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0590.ets deleted file mode 100644 index fd7d47756ecd0a4be4a98d1cc81c1e8279acb562..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0590.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0590 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {style: FontStyle.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0590_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0600.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0600.ets deleted file mode 100644 index b21a4a6b55f2a4adb5df74b5a250b1c2844ff0f6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0600.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0600 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - textStyle: {font: {style: FontStyle.Italic}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0600_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0610.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0610.ets deleted file mode 100644 index 7800edc54c1cf53e28440e914ef79e1457acaac7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0610.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0610 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {size: "10px"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0610_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0620.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0620.ets deleted file mode 100644 index 352e4e01809b97d4c8bfd9969b80478c7c55328e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0620.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0620 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {size: 10}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0620_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0630.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0630.ets deleted file mode 100644 index b99959439804f03aed92b02da944f00a630a5801..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0630.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0630 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {size: getContext().resourceManager.getNumber($r("app.integer.integer100"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0630_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0640.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0640.ets deleted file mode 100644 index 470d6afd7f1edd65041f98f6322c00009613aba6..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0640.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0640 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: FontWeight.Lighter}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0640_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0650.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0650.ets deleted file mode 100644 index 2ef158105f8de6843a388167f05ba54f2560827e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0650.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0650 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: FontWeight.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0650_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0660.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0660.ets deleted file mode 100644 index e691bd3051b3c5cc63c222b564a933e9031f5308..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0660.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0660 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: FontWeight.Regular}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0660_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0670.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0670.ets deleted file mode 100644 index 294398da5eb4a01c50119a09c2711c4f22b10bf1..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0670.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0670 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: FontWeight.Medium}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0670_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0680.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0680.ets deleted file mode 100644 index db8ac6ee7900b73caf9b4f9c8ec3e2bd7086541d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0680.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0680 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: FontWeight.Bold}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0680_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0690.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0690.ets deleted file mode 100644 index b09ede2ea0cfac9cf772d144c184a6da58b09177..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0690.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0690 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: FontWeight.Bolder}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0690_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0700.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0700.ets deleted file mode 100644 index 486b4d762fa17310d9845d34e3ab3de6381745c5..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0700.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0700 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: 400}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0700_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0710.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0710.ets deleted file mode 100644 index 8290fcfb32f7be8c0648a3385f54dee4c68c1e44..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0710.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0710 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: 500}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0710_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0720.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0720.ets deleted file mode 100644 index efddc5a9be82a08d96ee31d87ee6c30d5674aaec..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0720.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0720 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {weight: "500"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0720_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0730.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0730.ets deleted file mode 100644 index 292334493f237933f1248b10203bcf49bf21aa8a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0730.ets +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0730 { - - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {family: "HarmonyOS Sans"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0730_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0740.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0740.ets deleted file mode 100644 index 2431304fa06df18dcae1bd34b3b5b019dcde9312..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0740.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0740 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {family: getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0740_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0750.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0750.ets deleted file mode 100644 index cf791c8209d7fd6bd9471fd10236a60f394c830f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0750.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0750 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {style: FontStyle.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0750_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0760.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0760.ets deleted file mode 100644 index 06963335c7ef370b560d1bba6052e71e7f8ac46f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0760.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0760 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - selectedTextStyle: {font: {style: FontStyle.Italic}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0760_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0770.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0770.ets deleted file mode 100644 index 8c30a8a9843f1f6952b20f19fa178cc1aae013df..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0770.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0770 { - @State text: string = "" - build() { - Column() { - Text(this.text) - .margin(20) - Button("showDatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - acceptButtonStyle: { primary: true }, - onAccept: (value: DatePickerResult) => { - this.text = `onAccept(year: ${value.year}年, month: ${value.month}月, day: ${value.day}日)`; - } - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0770_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0780.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0780.ets deleted file mode 100644 index e6f0af4ca38e12093df2af8d8513c2716cac8f29..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0780.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0780 { - private selectedDate: Date = new Date('2018-11-04T09:05:00') - @State text: string = "" - build() { - Column() { - Text(this.text) - .margin(20) - Button("showDatePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showDatePickerDialog({ - cancelButtonStyle: { primary: true }, - onCancel: () => { - const year = this.selectedDate.getFullYear(); - this.text = `onCancel(year: ${year}年)`; - } - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0780_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0790.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0790.ets deleted file mode 100644 index b58c012c2baef4ed528522ab42663ae70ffcaece..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0790.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0790 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - let uiContext = this.getUIContext() - uiContext.showDatePickerDialog({ - selectedTextStyle: {color: Color.Red}, - }) - uiContext.showDatePickerDialog({ - selectedTextStyle: {color: Color.Blue}, - }) - uiContext.showDatePickerDialog({ - selectedTextStyle: {color: Color.Yellow}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0790_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0830.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0830.ets deleted file mode 100644 index de7d3f58b638d034563b477499aab41ed8bb307f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0830.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0830 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - disappearTextStyle: {font: {size: "10px" }}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0830_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0840.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0840.ets deleted file mode 100644 index c6b940bce006324f2fda8ab87a838fed1efe966d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0840.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0840 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - disappearTextStyle: {font: {size: 10 }}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0840_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0850.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0850.ets deleted file mode 100644 index 4bcfb254c6dd9e57a89ad3a1d8cb0fc827579077..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0850.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0850 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - disappearTextStyle: {font: {size: getContext().resourceManager.getNumber($r("app.integer.50"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0850_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0880.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0880.ets deleted file mode 100644 index adf0919ae02a7a9773d768606c7897e009f22a0e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0880.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0880 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {size: '10px'}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0880_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0890.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0890.ets deleted file mode 100644 index 46d4499f09bbf64b240a27976452d9896f3f1294..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0890.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0890 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {size: 10}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0890_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0900.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0900.ets deleted file mode 100644 index 5e2bccf6e2b3f06ec92d581b16501102e0a56c81..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0900.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0900 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {size: getContext().resourceManager.getNumber($r("app.integer.20"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0900_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0910.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0910.ets deleted file mode 100644 index 6aa96528f7c0abd413b7d78c03efe24dc0e55153..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0910.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0910 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {weight: FontWeight.Lighter}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0910_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0920.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0920.ets deleted file mode 100644 index 96292df1ef1b57ce9d999d5f1311c02107ea249a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0920.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0920 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {weight: FontWeight.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0920_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0930.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0930.ets deleted file mode 100644 index 8b1aa5d5151334475bb8a7ead8bbbb15fc1ea935..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0930.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0930 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {weight: FontWeight.Regular}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0930_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0940.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0940.ets deleted file mode 100644 index 983c0d146c42964b988bfc8f798d4af4aa40fb72..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0940.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0940 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {weight: FontWeight.Medium}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0940_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0950.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0950.ets deleted file mode 100644 index e918e44ac0c2da2e0c642a55b49ceea31d77cb1f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0950.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0950 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {weight: FontWeight.Bold}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0950_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0960.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0960.ets deleted file mode 100644 index 452f0e2a64df08ed56f03a8e21eb4f59767b121f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0960.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface0960 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {weight: FontWeight.Bolder}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface0960_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1000.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1000.ets deleted file mode 100644 index be86c0f008b3a0342e3dc1c2c6274e806fd526f8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1000.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1000 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {family: 'HarmonyOS Sans'}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1000_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1010.ets deleted file mode 100644 index df31d8b218a2a94d555ea8478169c081e8c3cb81..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1010.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1010 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {family: getContext().resourceManager.getStringSync($r("app.string.popup_font_family"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1010_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1020.ets deleted file mode 100644 index bef3f133df9f33fbb1882c70674247260663db11..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1020.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1020 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {style: FontStyle.Normal}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1020_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1030.ets deleted file mode 100644 index c161aa7cc95b20c72e58856d4bfb830a6bb00d64..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1030.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1030 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - textStyle: {font: {style: FontStyle.Italic}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1030_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1070.ets deleted file mode 100644 index e7a99ad9aca9c37db368717e65ff76d0f5778a13..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1070.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1070 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selectedTextStyle: {font: {size: "10px"}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1070_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1080.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1080.ets deleted file mode 100644 index 821ba556894939af494db3ae31929e759c7aa046..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1080.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1080 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selectedTextStyle: {font: {size: 10}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1080_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1090.ets deleted file mode 100644 index 01ba972a5cffbff8de3449e2516f44dc4eb3c7cf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1090.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1090 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selectedTextStyle: {font: {size: getContext().resourceManager.getNumber($r("app.integer.30"))}}, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1090_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1170.ets deleted file mode 100644 index 1cc9f21c1222c69cc2e0a0d52e1058510b3f1f90..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1170.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1170 { - @State text: string = "" - build() { - Column() { - Text(this.text) - .margin(20) - Button("showDatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - acceptButtonStyle: { primary: true }, - onAccept: (value: DatePickerResult) => { - this.text = `onAccept(year: ${value.year}年, month: ${value.month}月, day: ${value.day}日)`; - }, - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1170_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1180.ets deleted file mode 100644 index 3f11cafa719e057dcdef66b474b29f4ecd9985cf..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1180.ets +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1180 { - @State text: string = "" - build() { - Column() { - Text(this.text) - .margin(20) - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - cancelButtonStyle: { primary: true }, - onCancel: () => { - this.text = "DatePickerDialog:onCancel()" - } - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1180_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1450.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1450.ets deleted file mode 100644 index 0587377f7675f56f6552fe30c15c936e21a3ffb4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1450.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1450 { - @State text: string = "" - build() { - Column() { - Text(this.text) - .margin(20) - Button("showDatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - start: new Date("1970-1-1"), - end: new Date("2100-12-31"), - acceptButtonStyle: { primary: true }, - onAccept: (value: DatePickerResult) => { - this.text = `onAccept(year: ${value.year}年, month: ${value.month}月, day: ${value.day}日)`; - } - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1450_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1460.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1460.ets deleted file mode 100644 index 4b31fb3f1a03f1699ca71b2bc499dc48aa3dceed..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1460.ets +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1460 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State text: string = "" - build() { - Column() { - Text(this.text) - .margin(20) - Button("showDatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - start: new Date("1970-1-1"), - end: new Date("2100-12-31"), - cancelButtonStyle: { primary: true }, - onCancel: () => { - const year = this.selectedDate.getFullYear(); - const month = this.selectedDate.getMonth(); - const day = this.selectedDate.getDate(); - this.text = `onCancel(year: ${year}年, month: ${month}月, day: ${day}日)`; - } - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1460_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1470.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1470.ets deleted file mode 100644 index 9edd6d47123ef011822ee68e7da5d5c39dac9384..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1470.ets +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogInterface1470 { - @State text: string = "" - build() { - Column() { - Text(this.text) - .margin(20) - Button("showDatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - start: new Date("2000-1-1"), - end: new Date("2003-12-31"), - onChange: (value: DatePickerResult) => { - this.text = `onChange(year: ${value.year}年, month: ${value.month}月, day: ${value.day}日)`; - } - }) - }) - .id("UiComponentPopupboxDatePickerDialogInterface1470_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0010.ets deleted file mode 100644 index 99fad85fe6f73d59bad58e65b17ae40a459a8b8c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0010.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogScenarios0010 { - private selectTime: Date = new Date('2020-12-25T08:30:00') - private selectTime1: Date = new Date('2099-12-25T08:30:00') - build() { - Column() { - Button("TimePickerDialog") - .margin(20) - .onClick(() => { - this.getUIContext().showTimePickerDialog({ - selected: this.selectTime, - alignment: DialogAlignment.Top - }) - TimePickerDialog.show({ - selected: this.selectTime1, - alignment: DialogAlignment.Bottom, - maskRect: { x: 0, y: 400, width: "100%", height: "50%" } - }) - }) - .id("UiComponentPopupboxDatePickerDialogScenarios0010_001") - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0020.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0020.ets deleted file mode 100644 index 86192b918e6745c947a21ab935f0e3f0fa4a5a3e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0020.ets +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogScenarios0020 { - private selectTime: Date = new Date('2050-12-25T08:30:00') - private selectTime1: Date = new Date('2060-12-25T08:30:00') - build() { - Column() { - Button("TimePickerDialog") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime1, - alignment: DialogAlignment.Top - }) - this.getUIContext().showTimePickerDialog({ - selected: this.selectTime, - alignment: DialogAlignment.Bottom, - maskRect: { x: 0, y: 400, width: "100%", height: "50%" } - }) - }) - .id("UiComponentPopupboxDatePickerDialogScenarios0020_001") - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0090.ets deleted file mode 100644 index 0d07ed3baf94ff6b5630e70bdbf109ef1faaf1c0..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0090.ets +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogScenarios0090 { - build() { - Column() { - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - acceptButtonStyle: { primary: true }, - }) - }) - .id("UiComponentPopupboxDatePickerDialogScenarios0090_001") - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110.ets deleted file mode 100644 index f37bfb956642c627e523e54fd2cb3c4244aabb11..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110.ets +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -import { router } from '@kit.ArkUI' - -function onJumpClick(): void { - router.pushUrl({ - url: "testability/pages/UiComponentPopupboxDatePickerDialogScenarios/" + - "UiComponentPopupboxDatePickerDialogScenarios0110Page", - }, router.RouterMode.Standard, (err) => { - if (err) { - console.error(`Invoke pushUrl failed, code is ${err.code}, message is ${err.message}`); - return; - } - console.info('Invoke pushUrl succeeded.'); - }); -} - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogScenarios0110 { - @State isDisable: boolean = false; - build() { - Column() { - Button("日期滑动选择器弹窗") - .margin(20) - .onClick(() => { - this.isDisable = !this.isDisable - }) - .id("UiComponentPopupboxDatePickerDialogScenarios0110_001") - if (this.isDisable) { - Button("IndexPage") - .margin(20) - .onClick(() => { - onJumpClick() - }) - .id("UiComponentPopupboxDatePickerDialogScenarios0110_002") - } - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110Page.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110Page.ets deleted file mode 100644 index e4bd67e33114db3aeb6f810aff0be76cd8c77d4e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110Page.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -@Entry -@Component -struct UiComponentPopupboxDatePickerDialogScenarios0110Page { - @State uiContext: UIContext | null = null - private selectTime: Date = new Date('2024-12-31T08:30:00') - build() { - Column() { - Text("通过getUIContext()获取UIContext对象,调用showDatePickerDialog()") - .margin(20) - .onClick(() => { - this.uiContext = this.getUIContext(); - }) - .id("UiComponentPopupboxDatePickerDialogScenarios0110Page_001") - Button("DatePickerDialog") - .margin(20) - .onClick(() => { - if (this.uiContext) { - this.uiContext.showDatePickerDialog({ - selected: this.selectTime, - }) - } - }) - .id("UiComponentPopupboxDatePickerDialogScenarios0110Page_002") - }.width('100%') - } -} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0010.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0010.ets deleted file mode 100644 index 7dc349f290840cf6fd817ff8311e0773fe57d333..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0010.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0010 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - build() { - Column() { - Button("TimePickerDialog 12小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: false, - dateTimeOptions: {hour: "2-digit", minute: "numeric"} - }) - }) - .id("UiComponentPopupboxZero0010_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0030.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0030.ets deleted file mode 100644 index a8ab1437c6e71a59ac449feb0a5eccc671a949c7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0030.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0030 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("null") - .onClick(() => { - this.timeOptions = {hour: "", minute: ""} - }) - .id("UiComponentPopupboxZero0030_001") - Button("TimePickerDialog 12小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0030_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0040.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0040.ets deleted file mode 100644 index 0a8174f959764207008b9add95f042967b2a4b8c..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0040.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0040 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("参数设置undefined") - .onClick(() => { - this.timeOptions = {hour: undefined, minute: undefined} - }) - .id("UiComponentPopupboxZero0040_001") - Button("TimePickerDialog 12小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0040_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0050.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0050.ets deleted file mode 100644 index ee2cd0f47240ac408e21bc8955829c60db8f757e..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0050.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0050 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("minute前置0") - .onClick(() => { - this.timeOptions = {hour: "numeric", minute: "2-digit"} - }) - .id("UiComponentPopupboxZero0050_001") - Button("TimePickerDialog 12小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0050_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0060.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0060.ets deleted file mode 100644 index cc544566ca895a21ba4dc3fc2243a41e86176314..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0060.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0060 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("异常值") - .onClick(() => { - this.timeOptions = {hour: "hour", minute: "minute"} - }) - .id("UiComponentPopupboxZero0060_001") - Button("TimePickerDialog 12小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0060_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0070.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0070.ets deleted file mode 100644 index 42f5a8c5247bad7b924bde047214e7b5d81b5a13..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0070.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0070 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - build() { - Column() { - Button("DatePickerDialog 12小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: false, - dateTimeOptions: {hour: "2-digit", minute: "numeric"} - }) - }) - .id("UiComponentPopupboxZero0070_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0090.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0090.ets deleted file mode 100644 index 8c0fd571c886099c787e92fd90a6ee5e0318c367..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0090.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0090 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("null") - .onClick(() => { - this.timeOptions = {hour: "", minute: ""} - }) - .id("UiComponentPopupboxZero0090_001") - Button("DatePickerDialog 12小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0090_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0100.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0100.ets deleted file mode 100644 index faf8beff7e3a6a2dc6dc9cdb539cf0aac20107a7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0100.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0100 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("参数设置undefined") - .onClick(() => { - this.timeOptions = {hour: undefined, minute: undefined} - }) - .id("UiComponentPopupboxZero0100_001") - Button("DatePickerDialog 12小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0100_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0110.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0110.ets deleted file mode 100644 index 189dd47e7d85e28cc05675d50e55f8395ced108a..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0110.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0110 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("minute前置0") - .onClick(() => { - this.timeOptions = {hour: "numeric", minute: "2-digit"} - }) - .id("UiComponentPopupboxZero0110_001") - Button("DatePickerDialog 12小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0110_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0120.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0120.ets deleted file mode 100644 index 16d7ade8822cb1582a8b1171ca114110ab313321..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0120.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0120 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("异常值") - .onClick(() => { - this.timeOptions = {hour: "hour", minute: "minute"} - }) - .id("UiComponentPopupboxZero0120_001") - Button("DatePickerDialog 12小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0120_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0130.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0130.ets deleted file mode 100644 index 6f1f88edc53daa70d4d45590f3fbe79f5c0f9f59..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0130.ets +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0130 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - build() { - Column() { - Button("TimePickerDialog 24小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: true, - dateTimeOptions: {hour: "2-digit", minute: "numeric"} - }) - }) - .id("UiComponentPopupboxZero0130_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0150.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0150.ets deleted file mode 100644 index a11c0c145f9c8c57f80597a99eec205acd24c51f..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0150.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0150 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("null") - .onClick(() => { - this.timeOptions = {hour: "", minute: ""} - }) - .id("UiComponentPopupboxZero0150_001") - Button("TimePickerDialog 24小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0150_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0160.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0160.ets deleted file mode 100644 index e019068800a058f7e2b36af97d01e11444168073..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0160.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0160 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("参数设置undefined") - .onClick(() => { - this.timeOptions = {hour: undefined, minute: undefined} - }) - .id("UiComponentPopupboxZero0160_001") - Button("TimePickerDialog 24小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0160_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0170.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0170.ets deleted file mode 100644 index 2619b7dd77cad31b2634b80ba330d4a1680bccf3..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0170.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0170 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("minute前置0") - .onClick(() => { - this.timeOptions = {hour: "numeric", minute: "2-digit"} - }) - .id("UiComponentPopupboxZero0170_001") - Button("TimePickerDialog 24小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0170_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0180.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0180.ets deleted file mode 100644 index 30dde8561b0aab97e3080103c1496fce0b64e68d..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0180.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0180 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("异常值") - .onClick(() => { - this.timeOptions = {hour: "hour", minute: "minute"} - }) - .id("UiComponentPopupboxZero0180_001") - Button("TimePickerDialog 24小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0180_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0190.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0190.ets deleted file mode 100644 index 7a6e669fbcfc1cd0facf1cb78b769b4fe4491d2b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0190.ets +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0190 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - build() { - Column() { - Button("DatePickerDialog 24小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: true, - dateTimeOptions: {hour: "2-digit", minute: "numeric"} - }) - }) - .id("UiComponentPopupboxZero0190_001") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0210.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0210.ets deleted file mode 100644 index a927464db6e70d75e63f26efcadfdf81ab2e65f4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0210.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0210 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("null") - .onClick(() => { - this.timeOptions = {hour: "", minute: ""} - }) - .id("UiComponentPopupboxZero0210_001") - Button("DatePickerDialog 24小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0210_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0220.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0220.ets deleted file mode 100644 index 5e35088074bd8de7380100554f554ddf6282caa8..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0220.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0220 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("参数设置undefined") - .onClick(() => { - this.timeOptions = {hour: undefined, minute: undefined} - }) - .id("UiComponentPopupboxZero0220_001") - Button("DatePickerDialog 24小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0220_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0230.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0230.ets deleted file mode 100644 index 1394b5205b128f73bf5b05c70ab35da8910656f4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0230.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0230 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("minute前置0") - .onClick(() => { - this.timeOptions = {hour: "numeric", minute: "2-digit"} - }) - .id("UiComponentPopupboxZero0230_001") - Button("DatePickerDialog 24小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0230_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0240.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0240.ets deleted file mode 100644 index d318d2c4b88c3653aed8d4e42dd8912d0b9f1195..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0240.ets +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0240 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("异常值") - .onClick(() => { - this.timeOptions = {hour: "hour", minute: "minute"} - }) - .id("UiComponentPopupboxZero0240_001") - Button("DatePickerDialog 24小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0240_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0250.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0250.ets deleted file mode 100644 index cf5e7131dc09491c946309b2d66f8698bc049cb4..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0250.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0250 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("minute前置0") - .onClick(() => { - this.timeOptions = {hour: "numeric", minute: "2-digit"} - }) - .id("UiComponentPopupboxZero0250_001") - Button("DatePickerDialog 24小时制,选中显示农历") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - lunar: true, - showTime:true, - useMilitaryTime: true, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0250_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0260.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0260.ets deleted file mode 100644 index 5337ab38a34cb217fb36ba40f13b12d21e82e110..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0260.ets +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0260 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State timeOptions: DateTimeOptions = {} - build() { - Column() { - Button("minute前置0") - .onClick(() => { - this.timeOptions = {hour: "numeric", minute: "2-digit"} - }) - .id("UiComponentPopupboxZero0260_001") - Button("DatePickerDialog 12小时制,选中显示农历") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - lunar: true, - showTime:true, - useMilitaryTime: false, - dateTimeOptions: this.timeOptions - }) - }) - .id("UiComponentPopupboxZero0260_002") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0280.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0280.ets deleted file mode 100644 index 3093746b1a7a534ecba58ba115cf5e7eac9f9b2b..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0280.ets +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0280 { - private selectedDate: Date = new Date('2024-11-04T09:05:00') - @State hour: string = "" - @State minute: string = "" - @State hourCycle: string = "" - @State timeStyle: string = "" - build() { - Column() { - Button("minute前置0") - .margin(20) - .onClick(() => { - this.hour = "numeric" - this.minute = "2-digit" - }) - .id("UiComponentPopupboxZero0280_001") - Button("hourCycle为24/timeStyle设置full") - .margin(20) - .onClick(() => { - this.hourCycle = "h24" - this.timeStyle = "full" - }) - .id("UiComponentPopupboxZero0280_002") - Button("DatePickerDialog 24小时制") - .margin(20) - .onClick(() => { - DatePickerDialog.show({ - selected: this.selectedDate, - showTime:true, - useMilitaryTime: true, - dateTimeOptions: {hour: this.hour, minute: this.minute, hourCycle: this.hourCycle, timeStyle: this.timeStyle} - }) - }) - .id("UiComponentPopupboxZero0280_003") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0290.ets b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0290.ets deleted file mode 100644 index 249ffbfb87ba3063231dd4279ae6f8e5f3891857..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0290.ets +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright (C) 2024 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the 'License') - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an 'AS IS' BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -@Entry -@Component -struct UiComponentPopupboxZero0290 { - private selectTime: Date = new Date('2024-11-04T09:05:00') - @State hour: string = "" - @State minute: string = "" - @State hourCycle: string = "" - @State timeStyle: string = "" - build() { - Column() { - Button("minute前置0") - .margin(20) - .onClick(() => { - this.hour = "numeric" - this.minute = "2-digit" - }) - .id("UiComponentPopupboxZero0290_001") - Button("hourCycle为24/timeStyle设置full") - .margin(20) - .onClick(() => { - this.hourCycle = "h24" - this.timeStyle = "full" - }) - .id("UiComponentPopupboxZero0290_002") - Button("TimePickerDialog 24小时制") - .margin(20) - .onClick(() => { - TimePickerDialog.show({ - selected: this.selectTime, - useMilitaryTime: true, - dateTimeOptions: {hour: this.hour, minute: this.minute, hourCycle: this.hourCycle, timeStyle: this.timeStyle} - }) - }) - .id("UiComponentPopupboxZero0290_003") - }.width('100%') - } -} diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts index c26fa1d9efb5d54d5e6b7e39ca0f440e53f4db12..ea68b2798cc9f9e970f9db3e7164eecfb36534a9 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts @@ -48,8 +48,7 @@ export default class OpenHarmonyTestRunner implements TestRunner { abilityDelegator.addAbilityMonitor(lMonitor, addAbilityMonitorCallback) var cmd = 'aa start -d 0 -a TestAbility' + ' -b ' + abilityDelegatorArguments.bundleName var debug = abilityDelegatorArguments.parameters['-D'] - if (debug == 'true') - { + if (debug == 'true') { cmd += ' -D' } hilog.info(0x0000, 'testTag', 'cmd : %{public}s', cmd); 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..0ca82d22aeecefad17f8c6efbf855b83605a89b6 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/module.json5 @@ -1,54 +1,53 @@ { - "module": { - "name": "entry_test", - "type": "feature", - "description": "$string:module_test_desc", - "mainElement": "TestAbility", - "deviceTypes": [ - "default", - "tablet" - ], - "deliveryWithInstall": true, - "installationFree": false, - "pages": "$profile:test_pages", - "requestPermissions": [ + module: { + name: "entry_test", + type: "feature", + description: "$string:module_test_desc", + mainElement: "TestAbility", + deviceTypes: ["default", "tablet"], + deliveryWithInstall: true, + installationFree: false, + pages: "$profile:test_pages", + requestPermissions: [ + { + name: "ohos.permission.GRANT_SENSITIVE_PERMISSIONS", + }, + { + name: "ohos.permission.WRITE_MEDIA", + }, { - "name": "ohos.permission.WRITE_MEDIA" + name: "ohos.permission.READ_MEDIA", }, { - "name": "ohos.permission.READ_MEDIA" + name: "ohos.permission.UPDATE_CONFIGURATION", }, { - "name":"ohos.permission.UPDATE_CONFIGURATION" + name: "ohos.permission.RUNNING_LOCK", }, { - "name":"ohos.permission.RUNNING_LOCK" + name: "ohos.permission.INTERNET", }, { - "name":"ohos.permission.INTERNET" - } + name: "ohos.permission.CAPTURE_SCREEN", + }, ], - "abilities": [ - { - "name": "TestAbility", - "srcEntry": "./ets/testability/TestAbility.ets", - "description": "$string:TestAbility_desc", - "icon": "$media:icon", - "label": "$string:TestAbility_label", - "exported": true, - "startWindowIcon": "$media:icon", - "startWindowBackground": "$color:start_window_background", - "skills": [ + abilities: [ + { + name: "TestAbility", + srcEntry: "./ets/testability/TestAbility.ets", + description: "$string:TestAbility_desc", + icon: "$media:icon", + label: "$string:TestAbility_label", + exported: true, + startWindowIcon: "$media:icon", + startWindowBackground: "$color:start_window_background", + skills: [ { - "actions": [ - "action.system.home" - ], - "entities": [ - "entity.system.home" - ] - } - ] - } - ] - } + actions: ["action.system.home"], + entities: ["entity.system.home"], + }, + ], + }, + ], + }, } 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..34ef4a9e48a121eb4f06388886fcde8b90857c09 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 @@ -47,22 +47,6 @@ { "name": "color_gray", "value": "#9effffff" - }, - { - "name": "Code_color", - "value": "#121212" - }, - { - "name": "tab_text_activated", - "value": "#00FFFF" - }, - { - "name": "category_background", - "value": "#ffc0cb" - }, - { - "name": "search_placeholder", - "value": "#FFCFA613" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json index 4038f619b6a75b6e28b75700455d382845eeaec6..989acc491a1f2c97ded461ca1dc60a58faa0b666 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/float.json @@ -3,14 +3,6 @@ { "name": "boardSize_10", "value": "10" - }, - { - "name": "strokewidth_10", - "value": "10" - }, - { - "name": "bbb", - "value": "5" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json index ce65c09bf1f31a1214be8ab75ed207896afea2d3..54b17e8e8d6095803d023e54f0b7c3c32e0ad9a5 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/string.json @@ -52,10 +52,6 @@ "name": "abc", "value": "abc" }, - { - "name": "font_20", - "value": "20" - }, { "name": "attributeUpdater", "value": "resource font" @@ -152,14 +148,6 @@ "name": "50_percent", "value": "50%" }, - { - "name": "60_negative_percent", - "value": "-60%" - }, - { - "name": "60_percent", - "value": "60%" - }, { "name": "24_percent", "value": "24%" @@ -180,26 +168,6 @@ "name": "time_picker_10fp", "value": "10fp" }, - { - "name": "mixRefreshText", - "value": "中英文abc" - }, - { - "name": "specifalRefreshText", - "value": "+-*<>!@#$" - }, - { - "name": "width_20", - "value": "20" - }, - { - "name": "height_20", - "value": "20" - }, - { - "name": "size_10vp", - "value": "10vp" - }, { "name": "ok", "value": "ok" @@ -221,28 +189,12 @@ "value": "confirm" }, { - "name": "message", - "value": "message" - }, - { - "name": "toast_message_1", - "value": "王子变青蛙,哇哈哈哈啊" - }, - { - "name": "toast_message_2", - "value": "showActionMenu" - }, - { - "name": "toast_message_3", - "value": "我们说过不分离要一直一直一直在一起" - }, - { - "name": "button_font_sans", - "value": "#0000ff" + "name": "10vp", + "value": "10vp" }, { - "name": "20string", - "value": "20" + "name": "20vp", + "value": "20vp" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/test.json b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/test.json index 659398ec00e537c5a20e8e62de6983bc6893f4d3..c2cb5c9385ece41f4fd175ce3f8be9c6cb75a4a2 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/test.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/element/test.json @@ -2,7 +2,7 @@ "string": [ { "name": "testFontSize", - "value": "100px" + "value": "-100px" } ] } \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/magnifier.svg b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/magnifier.svg deleted file mode 100644 index a8e61ed1727ca0731eba11de69342da854ce3452..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/magnifier.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - Public/ic_public_search_filled - - - - - - - - - - \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/tick.svg b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/tick.svg deleted file mode 100644 index 74490ce3029b43130497e0efbba02cda2de6edf7..0000000000000000000000000000000000000000 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/tick.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - Public/ic_public_select all - - - - - - - - - - \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/waterFlowTest.jpg b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/waterFlowTest.jpg deleted file mode 100644 index e7134f381c8218491244fb6c34fcc608d4dd65e9..0000000000000000000000000000000000000000 Binary files a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/media/waterFlowTest.jpg and /dev/null 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..c5b34eed811a7668b44e06b00dc611f86fa19410 100644 --- a/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json +++ b/function/ui_compare_rh/uicompare/entry/src/ohosTest/resources/base/profile/test_pages.json @@ -1,1806 +1,563 @@ { "src": [ - "testability/pages/Index", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0001", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0002", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0003", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0004", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0005", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0006", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0007", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0008", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0009", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0010", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0011", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0012", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0013", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0014", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0015", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0016", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0017", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0018", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0019", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0020", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0021", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0022", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0023", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0024", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0025", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0026", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0027", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0028", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0029", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0030", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0031", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0032", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0033", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0034", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0035", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0036", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0037", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0038", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0039", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0040", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0041", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0042", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0043", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0044", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0045", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0046", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0047", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0048", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0049", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0050", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0051", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0052", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0053", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0054", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0055", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0056", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0057", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0058", - "testability/pages/ComponentTextRicheditorFontfeatureTest/ComponentTextRicheditorFontfeature0059", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0001", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0002", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0003", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0004", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0005", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0006", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0007", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0008", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0009", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0010", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0011", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0012", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0013", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0014", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0015", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0016", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0017", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0018", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0019", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0020", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0021", - "testability/pages/ComponentTextRicheditorWordbreakTest/ComponentTextRicheditorWordbreak0022", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0001", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0002", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0003", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0004", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0005", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0006", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0007", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0008", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0009", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0010", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0011", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0012", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0013", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0014", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0015", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0016", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0017", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0018", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0019", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0020", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0021", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0022", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0023", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0025", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0026", - "testability/pages/ComponentTextRicheditorCustomColorsTest/ComponentTextRicheditorCustomColor0028", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0001", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0002", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0003", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0004", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0005", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0006", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0007", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0008", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0009", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0010", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0011", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0012", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0013", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0014", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0015", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0016", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_157_029", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0017_429_005", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0018", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0019", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0020", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0021", - "testability/pages/ComponentTextRicheditorLongPresstoselectallTest/ComponentTextRicheditorLongPresstoselectall0022", - "testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0001", - "testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0002", - "testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0003", - "testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0004", - "testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0005", - "testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0006", - "testability/pages/ComponentTextRicheditorOnWillChangeTest/ComponentTextRicheditorOnWillChange0007", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0001", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0002", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0003", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0004", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0005", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0006", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0007", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0008", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0009", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0010", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0011", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0012", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0013", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0016", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0017", - "testability/pages/ComponentTextRicheditorCustomkeyBoardAvoidAnceTest/ComponentTextRicheditorCustomkeyBoardAvoidAnce0019", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0014", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0019", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0020", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0021", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0022", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0023", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0024", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0025", - "testability/pages/ComponentTextRicheditorLineHeightLetterSpacing/ComponentTextRicheditorLineHeightLetterSpacing0026", - "testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0001", - "testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0002", - "testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0003", - "testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0004", - "testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0012", - "testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0013", - "testability/pages/ComponentTextRicheditorKeyboardReinForcingTest/ComponentTextRicheditorKeyboardReinForcing0015", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0006", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0007", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0011", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0012", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0013", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0014", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0015", - "testability/pages/ComponentTextRicheditorUxConformanceTest/ComponentTextRicheditorUxConformance0016", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0010", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0020", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0030", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0040", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0050", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0060", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0070", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0080", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0090", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0100", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0110", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0120", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0130", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0140", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0150", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0160", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0170", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0180", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0190", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0200", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0210", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0220", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0230", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0240", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0250", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0260", - "testability/pages/ComponentTextRicheditorAITest/ComponentTextRicheditorAI0270", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0340", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0350", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0360", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0410", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0420", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0430", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0440", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0450", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0460", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0470", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0480", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0490", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0500", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0510", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0520", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0530", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0540", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0550", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0560", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0570", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0580", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0590", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0600", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0610", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0620", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0630", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0640", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0650", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0660", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0670", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0680", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0690", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0700", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0710", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0720", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0730", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0740", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0750", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0760", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0770", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0780", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0790", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0800", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0810", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0820", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0830", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0840", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0850", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0860", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0870", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0880", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0890", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0900", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0910", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0920", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0930", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0940", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0950", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0960", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0970", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0980", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface0990", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1000", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1010", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1020", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1030", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1040", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1050", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1060", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1070", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1080", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1090", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1100", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1110", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1120", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1130", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1140", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1150", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1160", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1170", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1180", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1190", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1200", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1210", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1220", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1230", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1240", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1250", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1260", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1270", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1280", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1290", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1300", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1310", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1320", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1330", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1340", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1350", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1360", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1380", - "testability/pages/ComponentTextRicheditorInterface/ComponentTextRicheditorInterface1400", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0010", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0020", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0030", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0040", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0050", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0060", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0070", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0080", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0090", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0100", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0110", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0120", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0130", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0140", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0150", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0160", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0170", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0180", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0190", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0200", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0210", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0220", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0230", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0240", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0260", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0270", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0280", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0290", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0300", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0310", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0320", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0330", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0340", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0350", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0360", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0370", - "testability/pages/ComponentTextRicheditorShortKcutKeys/ComponentTextRicheditorShortKcutKeys0380", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0001", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0002", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0003", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0004", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0005", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0006", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0007", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0008", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0009", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0010", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0011", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0012", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0013", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0014", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0015", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0016", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0017", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0018", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0019", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0020", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0021", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0022", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0023", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0024", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0025", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0026", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0027", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0028", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0029", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0030", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0031", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0032", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0033", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0034", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0035", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0036", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0037", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0038", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0039", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0040", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0041", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0042", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0043", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0044", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0045", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0046", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0047", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0048", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0049", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0050", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0051", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0052", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0053", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0054", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0055", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0056", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0057", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0058", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0059", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0060", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0061", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0062", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0063", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0064", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0065", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0066", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0067", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0068", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0069", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0070", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0071", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0072", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0073", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0074", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0075", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0076", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0077", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0078", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0079_932", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0080", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0081", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0082", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0083", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0084", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0085", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0086", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0087", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0088", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0089", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0090", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0091", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0092", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0093", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0094", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0095", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0097", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0098", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder0099", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00100", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00101", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00102", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00103_040_934", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00104", - "testability/pages/ComponentTextRicheditorPlaceholderTest/ComponentTextRicheditorPlaceholder00105", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0310", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt001", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt002", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt003", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt004", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0050", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt007", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0080", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt010", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt011", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt012", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt013", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt014", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0150", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0180", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0210", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0240", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt027", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt028", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt030", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt032", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt033", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt034", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt035", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0160", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0190", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0220", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0250", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0170", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0200", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0230", - "testability/pages/UIComponentNavTabsContentAdapt/UIComponentNavTabsContentAdapt0260", - "testability/pages/ArkUITabScrollable/ArkUITabScrollable001", - "testability/pages/ArkUITabScrollable/ArkUITabScrollable002", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont005", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont007", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont008", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont009", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont010", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont011", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont015", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont016", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont020", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont001", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont003", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont004", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont006", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont012", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont013", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont017", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont018", - "testability/pages/ArkUITabsLabelStylefont/ArkUITabsLabelStylefont019", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor001", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor003", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor005", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor007", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor009", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor011", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor013", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor017", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor019", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor027", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor029", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor012", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor015", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor021", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor023", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor024", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor025", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor026", - "testability/pages/ArkUITabsLabelStyleSelectedColor/ArkUITabsLabelStyleSelectedColor028", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor001", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor005", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor008", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor011", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor012", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor017", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor021", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor022", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor025", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor026", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor027", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor028", - "testability/pages/ArkUITabsLabelStyleUnselectedColor/ArkUITabsLabelStyleUnselectedColor024", - "testability/pages/ArkUITabsVertical/ArkUITabsVertical001", - "testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow001806", - "testability/pages/FunctionJichuWaterFlow/FunctionJichuWaterFlow0350", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0080458", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0090321", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0100678", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0110972", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0120725", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0130072", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0140666", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0150827", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0160890", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0170444", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0270011", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0280056", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0290223", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0300414", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0310330", - "testability/pages/UIComponentListAndGridWaterFlowAdd/UIComponentListAndGridWaterFlowAdd0320534", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0370", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0380", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0390", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0400", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0410", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0420", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0500", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0510", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0520", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0530", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0540", - "testability/pages/UIComponentListAndGridWaterSections/UIComponentListAndGridWaterSections0560", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0370", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0380", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0400", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier041", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier043", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier044", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier045", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier046", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier048", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier053", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier056", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier058", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier060", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier063", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier065", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier066", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0770", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0810", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier083", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0840", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0860", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0900", - "testability/pages/UIComponentNavModifier/UIComponentNavModifier0920", - "testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0011", - "testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0012", - "testability/pages/UIComponentNavTabsAction/UIComponentNavTabsAction0030", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0010", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0011", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0012", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0013", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0014", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0015", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0016", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0017", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0029", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0030", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0031", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0032", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0033", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0034", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0035", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0036", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0038", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0039", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0040", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0041", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0042", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0043", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0044", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0045", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0046", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0048", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0049", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0050", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0018", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0019", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0020", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0021", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0022", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0023", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0024", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0025", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0026", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0027", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0028", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0047", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0051", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0052", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0053", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0060", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0080", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0100", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0110", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0160", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0170", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0180", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0190", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0200", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0210", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0220", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0230", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0240", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0250", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0260", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0270", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0280", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0290", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0300", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0310", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0320", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0340", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0350", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0360", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0370", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0380", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0390", - "testability/pages/UIComponentNavTabsBlurStyle/UIComponentNavTabsBlurStyle0400", - "testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount014", - "testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount015", - "testability/pages/UIComponentNavTabsCachedCount/UIComponentNavTabsCachedCount016", - "testability/pages/UIComponentNavTabsHeight/UIComponentNavTabsHeight001", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0010", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0020", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0030", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0040", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0060", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0070", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0080", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0120", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0130", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0140", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0150", - "testability/pages/UIComponentNavTabsImproTrace/UIComponentNavTabsImproTrace0160", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0010", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0030", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0040", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0050", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0060", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0070", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0080", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0090", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0130", - "testability/pages/UIComponentNavTabsInterception/UIComponentNavTabsInterception0150", - "testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface012", - "testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1190", - "testability/pages/UIComponentNavTabsInterface/UIComponentNavTabsInterface1220", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0030", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0070", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0090", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror010", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0110", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0120", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0130", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0140", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0150", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0160", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0250", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror0260", - "testability/pages/UIComponentNavTabsMirror/UIComponentNavTabsMirror080", - "testability/pages/UIComponentNavTabsOnWillShow/UIComponentNavTabsOnWillShow0190", - "testability/pages/UIComponentNavTabsSubTabbarStyle/UIComponentNavTabsSubTabbarStyle0010", - "testability/pages/UIComponentNavTabsWidth/UIComponentNavTabsWidth001", - "testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0040", - "testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0050", - "testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0070", - "testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0080", - "testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0090", - "testability/pages/UIComponentOtherRefreshAbility/UIComponentOtherRefreshAbility0100", - "testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0380", - "testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0390", - "testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0400", - "testability/pages/UIComponentOtherRefreshInterAction/UIComponentOtherRefreshInterAction0410", - "testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0140", - "testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0170", - "testability/pages/UIComponentOtherRefreshInterface/UIComponentOtherRefreshInterface0180", - "testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0040", - "testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0050", - "testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0060", - "testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0100", - "testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0110", - "testability/pages/UIComponentOtherRefreshPromptText/UIComponentOtherRefreshPromptText0120", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0010", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0020", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0030", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0040", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0060", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0070", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0080", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0090", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0110", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0120", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0130", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0140", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0150", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0160", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0170", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0180", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0190", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0230", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabBarSymbol0260", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0050", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0240", - "testability/pages/UIComponentTabTabBarSymbol/UIComponentTabTabbarTabbarsymbol0250", - "testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0230", - "testability/pages/UIComponentNavTabsEdgeeffect/UIComponentNavTabsEdgeeffect0270", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0090", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0010", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0120", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0050", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0080", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0070", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0060", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0040", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0030", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0020", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0100", - "testability/pages/UIComponentNavTabsExpandsafearea/UIComponentNavTabsExpandsafearea0110", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor001", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor004", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor008", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor013", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor014", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor022", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor024", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor025", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor026", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor027", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor028", - "testability/pages/ArkUITabsIconStyleSelectedColor/ArkUITabsIconStyleSelectedColor029", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor002", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor005", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor014", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor016", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor021", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor022", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor024", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor026", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor027", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor028", - "testability/pages/ArkUITabsIconStyleUnselectedColor/ArkUITabsIconStyleUnselectedColor029", - "testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor002", - "testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor005", - "testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor008", - "testability/pages/ArkUITabsSingleSelectedcolor/ArkUITabsSingleSelectedcolor011", - "testability/pages/ArkUITabsSingleUnselectedcolor/ArkUITabsSingleUnselectedcolor003", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0010", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0020", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0030", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0040", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0050", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0060", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0070", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0080", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0090", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0100", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0110", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0120", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0130", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0140", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0150", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0160", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0170", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0180", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0190", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0200", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0210", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0220", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0230", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0240", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0250", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0260", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0270", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0280", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0290", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0300", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0310", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0320", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0330", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0340", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0350", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0360", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0370", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0380", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0390", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0400", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0410", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0420", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0430", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0440", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0450", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0460", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0470", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0480", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0490", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0500", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0510", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0520", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0530", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0540", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0550", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0560", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0570", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0580", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0590", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0600", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0610", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0620", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0630", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0640", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0650", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0660", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0670", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0680", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0690", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0700", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0710", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0720", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0730", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0740", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0750", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0760", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0770", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0790", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0810", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0820", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0830", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0840", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0850", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0860", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0870", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0880", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0890", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0900", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0910", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0920", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0930", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0940", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0950", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0960", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0970", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0980", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout0990", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1000", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1010", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1020", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1040", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1050", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1060", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1080", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1090", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1100", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1110", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1120", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1130", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1140", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1150", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1160", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1170", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1180", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1190", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1200", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1210", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1220", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1230", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1240", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1250", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1270", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1280", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1290", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1300", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1310", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1320", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1330", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1340", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1350", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1360", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1370", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1380", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1390", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1400", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1410", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1420", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1430", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1440", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1450", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1460", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1470", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1480", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1490", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1500", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1510", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1520", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1530", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1540", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1550", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1560", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1570", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1580", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1590", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1600", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1610", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1620", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1630", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1640", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1650", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1660", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1670", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1680", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1690", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1700", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1710", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1720", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1730", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1740", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1750", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1760", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1770", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1780", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1790", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1860", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1870", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1880", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1890", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1900", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1910", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1920", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1930", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1940", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1950", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1960", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1970", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1980", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1990", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2000", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2010", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2020", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2030", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2040", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2050", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1800", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1810", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1820", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1830", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1840", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout1850", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2060", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2070", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2080", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2090", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2100", - "testability/pages/UIComponentScrollSwiperLayout/UIComponentScrollSwiperLayout2110", - "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0520", - "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0010", - "testability/pages/UIComponentScrollSwiperUx/UIComponentScrollSwiperUx0020", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0040", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0820", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0830", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3160", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3300", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3310", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3330", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3340", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3350", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3380", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3430", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3450", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3460", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3500", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3510", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3390", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3520", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3530", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1010", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1030", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1040", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1050", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1180", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1190", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1210", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1220", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1230", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1260", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1270", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2910", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3030", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3040", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3050", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3060", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3070", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3120", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3130", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3140", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3550", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3560", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3570", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3600", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3610", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3700", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2180", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2190", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2200", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2210", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2230", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2330", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2340", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2350", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2460", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2560", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2570", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2720", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2790", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0890", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0960", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0980", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface0990", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3780", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3790", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3810", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface3820", - "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0010", - "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0030", - "testability/pages/UIComponentScrollSwiperAcross/UIComponentScrollSwiperAcross0060", - "testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0070", - "testability/pages/UIComponentScrollSwiperTeace/UIComponentScrollSwiperTeace0080", - "testability/pages/UIComponentScrollSwiperDisplaycount/UIComponentScrollSwiperDisplaycount0140", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0610", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0620", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0630", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0640", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0650", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0660", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0670", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0680", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0690", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0700", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0710", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0720", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0730", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0740", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0750", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0760", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0770", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0780", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0790", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0800", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0010", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0020", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0030", - "testability/pages/UIComponentScrollSwiperArrowHead/UIComponentScrollSwiperArrowHead0040", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1660", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1670", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1680", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1710", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1780", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1860", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1870", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1890", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1900", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface1970", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2050", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2060", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2110", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2160", - "testability/pages/UIComponentScrollSwiperInterface/UIComponentScrollSwiperInterface2370", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent010", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent013", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent014", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent015", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent017", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent018", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent019", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent022", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent023", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent024", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent025", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent026", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent027", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent029", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent030", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent032", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent034", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent035", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent036", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent038", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent039", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent040", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent054", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent056", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent057", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent059", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent060", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent061", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent062", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent063", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent065", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent067", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent071", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent072", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent073", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent074", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent076", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent077", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent078", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent079", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent080", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent081", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent082", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent083", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent094", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent096", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent098", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent099", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent100", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent102", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent103", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent104", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent105", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent108", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent109", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent110", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent111", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent112", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent113", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent115", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent116", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent117", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent118", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent119", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent121", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent122", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent123", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent124", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent125", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent126", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent128", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent129", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent130", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent131", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent132", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent133", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent135", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent136", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent137", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent138", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent139", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent140", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent143", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent144", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent146", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent147", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent149", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent150", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent151", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent152", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent153", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent154", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent156", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent157", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent159", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent160", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent162", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent164", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent166", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent168", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent171", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent172", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent173", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent174", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent175", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent176", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent177", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent178", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent179", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent180", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent181", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent182", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent183", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent184", - "testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange001", - "testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange002", - "testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange003", - "testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange004", - "testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange005", - "testability/pages/UIComponentSpecialComponentsUIExtensionComponentPopupChange/UIComponentSpecialComponentsUIExtensionComponentPopupChange006", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow012", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow013", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow014", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow016", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow017", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow018", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow020", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow021", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow022", - "testability/pages/UIComponentPopupBoxSpecificationsShadow/UIComponentPopupBoxSpecificationsShadow083", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor092", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor093", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor094", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor095", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor096", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor097", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor098", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor099", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor100", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor101", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor102", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor103", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor104", - "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor105", - "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle051", - "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle052", - "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle053", - "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle054", - "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle055", - "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle056", - "testability/pages/UIComponentButtonStyle/UIComponentButtonStyle057", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic004", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic008", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic009", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic013", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic019", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic020", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic022", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic024", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic025", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic027", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic028", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic030", - "testability/pages/UIComponentButtonRadioLConic/UIComponentButtonRadioLConic031", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications058", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications059", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications060", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications061", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications062", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications063", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications064", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications065", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications066", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications067", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications068", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications069", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications070", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications071", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications072", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications073", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications074", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications075", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications076", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications077", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications078", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications079", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications080", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications081", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications082", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications083", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications084", - "testability/pages/UIComponentPopupBoxSpecifications/UIComponentPopupBoxSpecifications085", - "testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface01780", - "testability/pages/ComponentFunctionLAdvancedComponentsPopupInterface/ComponentFunctionLAdvancedComponentsPopupInterface0178", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing001", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing002", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing003", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing004", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing005", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing006", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing007", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing008", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing009", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing010", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing011", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing012", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing013", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing015", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing016", - "testability/pages/UIComponentButtonRadioCustonmizing/UIComponentButtonRadioCustonmizing017", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark001", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark003", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark005", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark006", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark008", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark010", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark011", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark012", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark013", - "testability/pages/UIComponentButtonRadioCheckMark/UIComponentButtonRadioCheckMark014", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute004", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute005", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute006", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute031", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute032", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute033", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute034", - "testability/pages/UIComponentButtonSelectAttribute/UIComponentButtonSelectAttribute035", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent053", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent092", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent142", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent165", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent167", - "testability/pages/UIComponentSpecialComponentsFormComponentTransparent/UIComponentSpecialComponentsFormComponentTransparent169", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0010", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0020", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0030", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0040", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0050", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0060", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0070", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0080", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0090", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0100", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0110", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0120", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0130", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0140", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0150", - "testability/pages/UIComponentButtonSelectDivider/UIComponentButtonSelectDivider0160", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0020", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0030", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0040", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0050", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0060", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0070", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0080", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0090", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0100", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0110", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0120", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0130", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0140", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0150", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0160", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0170", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0180", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0190", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0200", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0210", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0220", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0230", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0240", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0250", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0260", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0270", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0280", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0290", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0300", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0310", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0320", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0330", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0340", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0350", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0360", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0370", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0380", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0390", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0400", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0410", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0420", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0430", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0450", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0470", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0480", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0490", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0500", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0510", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0520", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0530", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0540", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0550", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0560", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0570", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0580", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0590", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0600", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0610", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0620", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0630", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0640", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0650", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0660", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0670", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0680", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0690", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0700", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0710", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0720", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0730", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0740", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0750", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0760", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0770", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0780", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0790", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0800", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0810", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0820", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0830", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0840", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0860", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0880", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0890", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0900", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0910", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0920", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0930", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0940", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0950", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0960", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0970", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0980", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize0990", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1000", - "testability/pages/UIComponentButtonSelectControlSize/UIComponentButtonSelectControlSize1010", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0010", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0020", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0030", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0040", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0050", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0060", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0070", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0090", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0110", - "testability/pages/UIComponentFunctionSelectSymbol/UIComponentFunctionSelectSymbol0120", - "testability/pages/UITestCase/UITestCase001", - "testability/pages/UITestCase/UITestCase002", - "testability/pages/UITestCase/UITestCase003", - "testability/pages/UITestCase/UITestCase004", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K012", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K013", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K014", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K015", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K016", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K017", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K018", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K019", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K020", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K021", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K022", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K023", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K024", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K025", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K026", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K027", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K028", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K029", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K030", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K031", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K032", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K033", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K034", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K035", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K036", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K037", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K038", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K039", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K040", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K041", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K042", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K043", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K044", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K045", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K046", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K047", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K048", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K049", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K050", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K051", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K052", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K053", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K054", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K055", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K056", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K057", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K058", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K059", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K060", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K061", - "testability/pages/FunctionJiChuSR000HUB4K/FunctionJiChuSR000HUB4K062", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0010", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0011", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0012", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0013", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0014", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0015", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0016", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0017", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0018", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0020", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0022", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0023", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0024", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0025", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0026", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0027", - "testability/pages/ComponentButtonSelectMenuItemContentModifier/ComponentButtonSelectMenuItemContentModifier0028", - "testability/pages/UiComponentButtonSelectInterface/UiComponentButtonSelectInterface0240", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0030", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0040", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0050", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0060", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0070", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0080", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0090", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0100", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0110", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0120", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0130", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0140", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0150", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0160", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0170", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0180", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0190", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0220", - "testability/pages/UiComponentButtonSelectEnhancement/UiComponentButtonSelectEnhancement0230", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0010", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0020", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0030", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0040", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0050", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0060", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0070", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0080", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0090", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0100", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0110", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0120", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0130", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0140", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0150", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0160", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0170", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0180", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0190", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0200", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0210", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0220", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0230", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0240", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0250", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0260", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0270", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0280", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0290", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0300", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0310", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0320", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0330", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0340", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0350", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0360", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0370", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0380", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0390", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0400", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0410", - "testability/pages/UiComponentButtonSelectAlign/UiComponentButtonSelectAlign0420", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0010", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0030", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0040", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0050", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0060", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0070", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0090", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0100", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0110", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0120", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0130", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0150", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0160", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0170", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0180", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0190", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0210", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0220", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0230", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0240", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0250", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0260", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0280", - "testability/pages/UiComponentPopupboxZero/UiComponentPopupboxZero0290", - "testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0070", - "testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0250", - "testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0310", - "testability/pages/UIComponentPopupboxCalendarpickerInterface/UIComponentPopupboxCalendarpickerInterface0330", - "testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0050", - "testability/pages/UIComponentPopupboxDatepickerDialogLanguageHabit/UIComponentPopupboxDatepickerDialogLanguageHabit0210", - "testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test124", - "testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test125", - "testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test126", - "testability/pages/TsComponentSR000HRP34Test/TsComponentSR000HRP34Test127", - "testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0010", - "testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0020", - "testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0090", - "testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110", - "testability/pages/UiComponentPopupboxDatePickerDialogScenarios/UiComponentPopupboxDatePickerDialogScenarios0110Page", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0010", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0020", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0030", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0040", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0050", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0060", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0070", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0080", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0090", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0100", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0110", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0120", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0130", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0140", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0150", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0160", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0170", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0180", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0190", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0200", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0210", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0220", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0230", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0240", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0250", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0260", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0270", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0280", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0290", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0300", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0310", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0320", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0330", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0340", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0350", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0360", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0370", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0380", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0390", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0400", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0410", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0420", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0430", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0440", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0450", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0460", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0470", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0480", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0490", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0500", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0510", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0520", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0530", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0540", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0550", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0560", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0570", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0580", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0590", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0600", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0610", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0620", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0630", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0640", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0650", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0660", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0670", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0680", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0690", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0700", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0710", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0720", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0730", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0740", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0750", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0760", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0770", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0780", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0790", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0830", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0840", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0850", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0880", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0890", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0900", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0910", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0920", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0930", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0940", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0950", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface0960", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1000", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1010", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1020", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1030", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1070", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1080", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1090", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1170", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1180", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1450", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1460", - "testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute006", - "testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute011", - "testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute050", - "testability/pages/UIComponentPopupBoxAttribute/UIComponentPopupBoxAttribute051", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence002", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence003", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence004", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence005", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence006", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence007", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence008", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence009", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence014", - "testability/pages/UIComponentPopupBoxPromptToastSequence/UIComponentPopupBoxPromptToastSequence015", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton033", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton034", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton035", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton036", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton037", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton038", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton039", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton040", - "testability/pages/UIComponentButtonCommonButton/UIComponentButtonCommonButton041", - "testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup001", - "testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup002", - "testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup003", - "testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup004", - "testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup005", - "testability/pages/UIComponentPopupBoxSpecificationsPopup/UIComponentPopupBoxSpecificationsPopup006", - "testability/pages/UiComponentPopupboxDatePickerDialogInterface/UiComponentPopupboxDatePickerDialogInterface1470", - "testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface001", - "testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface002", - "testability/pages/UIComponentPopupBoxPopupInterface/UIComponentPopupBoxPopupInterface003", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface001", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface002", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface003", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface004", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface005", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface006", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface007", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface008", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface009", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0010", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0011", - "testability/pages/UIComponentPopupPromptInterface/UIComponentPopupPromptInterface0012", - "testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface001", - "testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface002", - "testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface003", - "testability/pages/UIComponentPopupBoxToastStyleInterface/UIComponentPopupBoxToastStyleInterface004", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface005", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface004", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface003", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface002", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface001", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface006", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface007", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface008", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface009", - "testability/pages/UIComponentPopupBoxFullDialogInterface/UIComponentPopupBoxFullDialogInterface0010" + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage001", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage002", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage003", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage004", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage005", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage006", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage007", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage008", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage009", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage010", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage011", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage012", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage013", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage014", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage015", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage016", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage017", + "testability/pages/UIComponentAttributeImage/UIComponentAttributeImage018", + "testability/pages/StatusManagerBelievable/StatusManagerBelievable0010", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan010", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan011", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan013", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan014", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan017", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan019", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan024", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan050", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan056", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater006", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater007", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater008", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater009", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater010", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater011", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater012", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater014", + "testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText011", + "testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle015", + "testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle016", + "testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle022", + "testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle023", + "testability/pages/UIComponentAttributeStringModifyingStyle/UIComponentAttributeStringModifyingStyle0120", + "testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText023", + "testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0090", + "testability/pages/UIComponentAttributeStringModifyingStyleText/UIComponentAttributeStringModifyingStyleText0100", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan001", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan002", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan004", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan005", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan007", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan008", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan009", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan012", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan015", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan016", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan020", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan021", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan022", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan023", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan027", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan028", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan032", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan033", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan034", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan035", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan036", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan037", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan038", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan039", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan040", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan041", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan042", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan043", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan044", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan045", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan046", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan047", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan048", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan049", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan051", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan052", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan053", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan054", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan055", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0250", + "testability/pages/UIComponentTextCommonCustomDrawingSpan/UIComponentTextCommonCustomDrawingSpan0290", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater001", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater002", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater003", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater004", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater005", + "testability/pages/UIComponentTextCommonItscaAttributeUpdater/UIComponentTextCommonItscaAttributeUpdater013", + "testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt004", + "testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt005", + "testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt006", + "testability/pages/UIComponentTextTextImageSpanAlt/UIComponentTextTextImageSpanAlt007", + "testability/pages/UIComponentTextImagePrivacySensitive/UIComponentTextImagePrivacySensitive001", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable014", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable015", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable016", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable017", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable018", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable019", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable020", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable021", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable022", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable023", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable024", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable025", + "testability/pages/UIComponentTextTextEditable/UIComponentTextTextEditable026", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle001", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle009", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle010", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle011", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle012", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle013", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle014", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle015", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle016", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle017", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle018", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle019", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle020", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle024", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle029", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle030", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle031", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle032", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle033", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle034", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle035", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle036", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle037", + + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0020", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0030", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0040", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0050", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0060", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0070", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0080", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0210", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0220", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0230", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0250", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0260", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0270", + "testability/pages/UIComponentTextTextGestureStyle/UIComponentTextTextGestureStyle0280", + + "testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface029", + "testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface187", + "testability/pages/UIComponentTextTextInterface/UIComponentTextTextInterface202", + "testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress010", + "testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress011", + "testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress012", + "testability/pages/UIComponentTextTextLongPress/UIComponentTextTextLongPress013", + "testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee002", + "testability/pages/UIComponentTextTextMarquee/UIComponentTextTextMarquee005", + "testability/pages/UIComponentTextTextPrivacyMask/UIComponentTextTextPrivacyMask028", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle006", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle007", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle008", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle009", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle010", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle011", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle012", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle013", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle014", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle015", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle016", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle017", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle018", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle019", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle020", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle021", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle022", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle023", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle024", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle025", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle026", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle027", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle028", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle029", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle030", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle031", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle032", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle033", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle034", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle035", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle036", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle037", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle038", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle039", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle040", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle041", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle042", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle043", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle044", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle045", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle046", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle047", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle048", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle049", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle050", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle051", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle052", + "testability/pages/UIComponentTextTextStringParagraphStyle/UIComponentTextTextStringParagraphStyle053", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor204", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor205", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor206", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor207", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor208", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor209", + "testability/pages/UIComponentUISupportColor/UIComponentUISupportColor210", + "testability/pages/UIComponentTextTransparency/UIComponentTextTransparency003", + "testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0040", + "testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0050", + "testability/pages/UIComponentTextTransparency/UIComponentTextTransparency0060", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree032", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree061", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree075", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree090", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree092", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree101", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree103", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree104", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree105", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree106", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree117", + "testability/pages/UIAttributesStateStylesInterfaceEditableTextThree/UIAttributesStateStylesInterfaceEditableTextThree120", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor001", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor002", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor003", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor004", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor006_1", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor006_2", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor006_3", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor007", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor008", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor009", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor011", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0430", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0440", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0450", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0460", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0470", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix0890", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1120", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1140", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1150", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1160", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1170", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1180", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1190", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1200", + "testability/pages/UIComponentScrollSwiperInterfacemix/UIComponentScrollSwiperInterfacemix1220", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0010", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0020", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0030", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0040", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0050", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0060", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0080", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0090", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0100", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0110", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0120", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0130", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0140", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0150", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0160", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0170", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0180", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0190", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0200", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0210", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0220", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0230", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0240", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0250", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0260", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0270", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0280", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0290", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0300", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0310", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0320", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0330", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0340", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0350", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0360", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0370", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0380", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0390", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0400", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0410", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0420", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0430", + + "testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0460", + "testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0220", + "testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0320", + "testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0330", + "testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0340", + "testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0350", + "testability/pages/UIComponentTextAttributeStringConstructs/UIComponentTextAttributeStringConstructs0360", + + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0120", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0130", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0140", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0150", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0160", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0170", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0180", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0200", + "testability/pages/UIComponentCreateColor/UIComponentCreateColor0210", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0010", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0020", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0030", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0040", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0070", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0080", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0090", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0100", + "testability/pages/UIComponentTextTextAreaAction/UIComponentTextTextAreaAction0110", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0010", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0016", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0020", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0030", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0040", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0050", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0060", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0080", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0090", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0100", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0110", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0120", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0130", + "testability/pages/UIComponentTextTextAreaEnterkeyType/UIComponentTextTextAreaEnterkeyType0140", + "testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0130", + "testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0140", + "testability/pages/UIComponentTextTextAreaEvaSaveInputMethod/UIComponentTextTextAreaEvaSaveInputMethod0150", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0010", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0020", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0030", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0040", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0050", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0060", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0070", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0300", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0320", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0330", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0340", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0350", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0360", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0370", + "testability/pages/UIComponentTextTextAreaInterActive/UIComponentTextTextAreaInterActive0380", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0670", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0680", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0690", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0700", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0710", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0720", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0730", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface0740", + "testability/pages/UIComponentTextTextAreaInterface/UIComponentTextTextAreaInterface1020", + "testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0010", + "testability/pages/UIComponentTextTextAreaLayout/UIComponentTextTextAreaLayout0020", + + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0020", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0030", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0040", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0050", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0060", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0070", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0090", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0100", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0110", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0120", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0130", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0140", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0150", + "testability/pages/UIComponentTextTextAreaSelection/UIComponentTextTextAreaSelection0160", + + "testability/pages/UIComponentTextInput/UIComponentTextInput0010", + + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0010", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0020", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0030", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0040", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0050", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0060", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0070", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0080", + "testability/pages/UIComponentTextInputNumberDecimal/UIComponentTextInputNumberDecimal0100", + + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0010", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0020", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0030", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0040", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0050", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0060", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0070", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0080", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0090", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0100", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0110", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0120", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0130", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0140", + "testability/pages/UIComponentTextInputSecurityKeyboardScroll/UIComponentTextInputSecurityKeyboardScroll0150", + + "testability/pages/UIComponentTextTextAreaUxComsistency/UIComponentTextTextAreaUxComsistency0060", + + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0440", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0450", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0460", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0470", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0480", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0490", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0500", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0510", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0520", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0530", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0540", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0550", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0560", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0570", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0600", + "testability/pages/UIComponentTextAttribute/UIComponentTextAttribute0640", + + "testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances0900", + "testability/pages/UIComponentTextTextAreaEnhances/UIComponentTextTextAreaEnhances2500", + + "testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0010", + "testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0030", + "testability/pages/UIComponentTextTextAreaInterAction/UIComponentTextTextAreaInterAction0040", + + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0010", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0020", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0030", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0040", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0050", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0180", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0060", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0070", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0080", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0090", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0100", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0110", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0120", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0130", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0140", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0150", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0160", + "testability/pages/UIComponentTextCommonCopyOptionDraggable/UIComponentTextCommonCopyOptionDraggable0170", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0030", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0170", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0180", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0190", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0200", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0210", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0220", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0230", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0240", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0250", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0260", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0270", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0280", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0290", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0300", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0310", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0320", + "testability/pages/UIComponentTextTextSupportFont/UIComponentTextTransparency0330", + "testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0030", + "testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0040", + "testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0080", + "testability/pages/UIComponentTextHyperlinkInteraction/UIComponentTextHyperlinkInteraction0090", + "testability/pages/UIComponentTextInline/UIComponentTextInline0010", + "testability/pages/UIComponentTextInline/UIComponentTextInline0020", + "testability/pages/UIComponentTextInline/UIComponentTextInline0030", + "testability/pages/UIComponentTextInline/UIComponentTextInline0060", + "testability/pages/UIComponentTextInline/UIComponentTextInline0070", + "testability/pages/UIComponentTextInline/UIComponentTextInline0080", + "testability/pages/UIComponentTextInline/UIComponentTextInline0090", + "testability/pages/UIComponentTextInline/UIComponentTextInline0120", + "testability/pages/UIComponentTextInline/UIComponentTextInline0130", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0200", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0300", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0350", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0480", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0490", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0500", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0510", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0390", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0400", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0410", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0420", + "testability/pages/UIComponentTextReverseAnalysis/UIComponentTextReverseAnalysis0430", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0010", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0020", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0030", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0040", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0050", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0060", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0070", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0080", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0090", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0100", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0110", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0120", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0130", + "testability/pages/UIComponentInputKeyboardAvoidMode/UIComponentInputKeyboardAvoidMode0150", + "testability/pages/UIComponentAttributeUserData/UIComponentAttributeUserData0030", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0150", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0160", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0170", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0180", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0190", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0200", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0210", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0220", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0230", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0240", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0250", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0260", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0270", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0280", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0300", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0310", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0320", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0330", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0340", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0350", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0360", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0370", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0380", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0400", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0410", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0420", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0430", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0440", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0460", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0490", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0500", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0510", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0610", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0620", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0660", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0670", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0710", + "testability/pages/UICustomTextShortCutKeyReplacement/UICustomTextShortCutKeyReplacement0720", + "testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput001", + "testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput002", + "testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput003", + "testability/pages/UIComponentTextTextEvasiveInputMethod/UIComponentTextTextEvasiveInput004", + "testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0100", + "testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0090", + "testability/pages/UIComponentTextTextAreaOnEditChange/UIComponentTextTextAreaOnEditChange0130" ] } diff --git a/function/ui_compare_rh/uicompare/hvigor/hvigor-wrapper.js b/function/ui_compare_rh/uicompare/hvigor/hvigor-wrapper.js new file mode 100644 index 0000000000000000000000000000000000000000..372eae8eb4a124095936f9cd78df5c6756746f3f --- /dev/null +++ b/function/ui_compare_rh/uicompare/hvigor/hvigor-wrapper.js @@ -0,0 +1 @@ +"use strict";var u=require("path"),D=require("os"),e=require("fs"),t=require("crypto"),r=require("child_process"),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i={},C={},F=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(C,"__esModule",{value:!0}),C.maxPathLength=C.isMac=C.isLinux=C.isWindows=void 0;const E=F(D),A="Windows_NT",o="Darwin";function a(){return E.default.type()===A}function c(){return E.default.type()===o}C.isWindows=a,C.isLinux=function(){return"Linux"===E.default.type()},C.isMac=c,C.maxPathLength=function(){return c()?1016:a()?259:4095},function(e){var t=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),r=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),i=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&t(D,u,e);return r(D,u),D};Object.defineProperty(e,"__esModule",{value:!0}),e.WORK_SPACE=e.HVIGOR_PROJECT_WRAPPER_HOME=e.HVIGOR_PROJECT_ROOT_DIR=e.HVIGOR_PROJECT_CACHES_HOME=e.HVIGOR_PNPM_STORE_PATH=e.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=e.PROJECT_CACHES=e.HVIGOR_WRAPPER_TOOLS_HOME=e.HVIGOR_USER_HOME=e.DEFAULT_PACKAGE_JSON=e.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=e.PNPM=e.HVIGOR=e.NPM_TOOL=e.PNPM_TOOL=e.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const F=i(D),E=i(u),A=C;e.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",e.PNPM_TOOL=(0,A.isWindows)()?"pnpm.cmd":"pnpm",e.NPM_TOOL=(0,A.isWindows)()?"npm.cmd":"npm",e.HVIGOR="hvigor",e.PNPM="pnpm",e.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",e.DEFAULT_PACKAGE_JSON="package.json",e.HVIGOR_USER_HOME=E.resolve(F.homedir(),".hvigor"),e.HVIGOR_WRAPPER_TOOLS_HOME=E.resolve(e.HVIGOR_USER_HOME,"wrapper","tools"),e.PROJECT_CACHES="project_caches",e.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH=E.resolve(e.HVIGOR_WRAPPER_TOOLS_HOME,"node_modules",".bin",e.PNPM_TOOL),e.HVIGOR_PNPM_STORE_PATH=E.resolve(e.HVIGOR_USER_HOME,"caches"),e.HVIGOR_PROJECT_CACHES_HOME=E.resolve(e.HVIGOR_USER_HOME,e.PROJECT_CACHES),e.HVIGOR_PROJECT_ROOT_DIR=process.cwd(),e.HVIGOR_PROJECT_WRAPPER_HOME=E.resolve(e.HVIGOR_PROJECT_ROOT_DIR,e.HVIGOR),e.WORK_SPACE="workspace"}(i);var s={},l={};Object.defineProperty(l,"__esModule",{value:!0}),l.logInfoPrintConsole=l.logErrorAndExit=void 0,l.logErrorAndExit=function(u){u instanceof Error?console.error(u.message):console.error(u),process.exit(-1)},l.logInfoPrintConsole=function(u){console.log(u)};var B=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),d=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),f=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&B(D,u,e);return d(D,u),D};Object.defineProperty(s,"__esModule",{value:!0});var _=s.executeBuild=void 0;const p=f(e),O=f(u),h=l;_=s.executeBuild=function(u){const D=O.resolve(u,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const u=p.realpathSync(D);require(u)}catch(e){(0,h.logErrorAndExit)(`Error: ENOENT: no such file ${D},delete ${u} and retry.`)}};var P={},v={};!function(u){var D=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(u,"__esModule",{value:!0}),u.hashFile=u.hash=u.createHash=void 0;const r=D(t),i=D(e);u.createHash=(u="MD5")=>r.default.createHash(u);u.hash=(D,e)=>(0,u.createHash)(e).update(D).digest("hex");u.hashFile=(D,e)=>{if(i.default.existsSync(D))return(0,u.hash)(i.default.readFileSync(D,"utf-8"),e)}}(v);var g={},m={},R={};Object.defineProperty(R,"__esModule",{value:!0}),R.Unicode=void 0;class y{}R.Unicode=y,y.SPACE_SEPARATOR=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,y.ID_START=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,y.ID_CONTINUE=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,Object.defineProperty(m,"__esModule",{value:!0}),m.JudgeUtil=void 0;const I=R;m.JudgeUtil=class{static isIgnoreChar(u){return"string"==typeof u&&("\t"===u||"\v"===u||"\f"===u||" "===u||" "===u||"\ufeff"===u||"\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)}static isSpaceSeparator(u){return"string"==typeof u&&I.Unicode.SPACE_SEPARATOR.test(u)}static isIdStartChar(u){return"string"==typeof u&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||"$"===u||"_"===u||I.Unicode.ID_START.test(u))}static isIdContinueChar(u){return"string"==typeof u&&(u>="a"&&u<="z"||u>="A"&&u<="Z"||u>="0"&&u<="9"||"$"===u||"_"===u||"‌"===u||"‍"===u||I.Unicode.ID_CONTINUE.test(u))}static isDigitWithoutZero(u){return/[1-9]/.test(u)}static isDigit(u){return"string"==typeof u&&/[0-9]/.test(u)}static isHexDigit(u){return"string"==typeof u&&/[0-9A-Fa-f]/.test(u)}};var N=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(g,"__esModule",{value:!0}),g.parseJsonText=g.parseJsonFile=void 0;const b=N(e),S=N(D),w=N(u),H=m;var x;!function(u){u[u.Char=0]="Char",u[u.EOF=1]="EOF",u[u.Identifier=2]="Identifier"}(x||(x={}));let M,T,V,G,j,J,W="start",U=[],L=0,$=1,k=0,K=!1,z="default",q="'",Z=1;function X(u,D=!1){T=String(u),W="start",U=[],L=0,$=1,k=0,G=void 0,K=D;do{M=Q(),nu[W]()}while("eof"!==M.type);return G}function Q(){for(z="default",j="",q="'",Z=1;;){J=Y();const u=Du[z]();if(u)return u}}function Y(){if(T[L])return String.fromCodePoint(T.codePointAt(L))}function uu(){const u=Y();return"\n"===u?($++,k=0):u?k+=u.length:k++,u&&(L+=u.length),u}g.parseJsonFile=function(u,D=!1,e="utf-8"){const t=b.default.readFileSync(w.default.resolve(u),{encoding:e});try{return X(t,D)}catch(D){if(D instanceof SyntaxError){const e=D.message.split("at");if(2===e.length)throw new Error(`${e[0].trim()}${S.default.EOL}\t at ${u}:${e[1].trim()}`)}throw new Error(`${u} is not in valid JSON/JSON5 format.`)}},g.parseJsonText=X;const Du={default(){switch(J){case"/":return uu(),void(z="comment");case void 0:return uu(),eu("eof")}if(!H.JudgeUtil.isIgnoreChar(J)&&!H.JudgeUtil.isSpaceSeparator(J))return Du[W]();uu()},start(){z="value"},beforePropertyName(){switch(J){case"$":case"_":return j=uu(),void(z="identifierName");case"\\":return uu(),void(z="identifierNameStartEscape");case"}":return eu("punctuator",uu());case'"':case"'":return q=J,uu(),void(z="string")}if(H.JudgeUtil.isIdStartChar(J))return j+=uu(),void(z="identifierName");throw Eu(x.Char,uu())},afterPropertyName(){if(":"===J)return eu("punctuator",uu());throw Eu(x.Char,uu())},beforePropertyValue(){z="value"},afterPropertyValue(){switch(J){case",":case"}":return eu("punctuator",uu())}throw Eu(x.Char,uu())},beforeArrayValue(){if("]"===J)return eu("punctuator",uu());z="value"},afterArrayValue(){switch(J){case",":case"]":return eu("punctuator",uu())}throw Eu(x.Char,uu())},end(){throw Eu(x.Char,uu())},comment(){switch(J){case"*":return uu(),void(z="multiLineComment");case"/":return uu(),void(z="singleLineComment")}throw Eu(x.Char,uu())},multiLineComment(){switch(J){case"*":return uu(),void(z="multiLineCommentAsterisk");case void 0:throw Eu(x.Char,uu())}uu()},multiLineCommentAsterisk(){switch(J){case"*":return void uu();case"/":return uu(),void(z="default");case void 0:throw Eu(x.Char,uu())}uu(),z="multiLineComment"},singleLineComment(){switch(J){case"\n":case"\r":case"\u2028":case"\u2029":return uu(),void(z="default");case void 0:return uu(),eu("eof")}uu()},value(){switch(J){case"{":case"[":return eu("punctuator",uu());case"n":return uu(),tu("ull"),eu("null",null);case"t":return uu(),tu("rue"),eu("boolean",!0);case"f":return uu(),tu("alse"),eu("boolean",!1);case"-":case"+":return"-"===uu()&&(Z=-1),void(z="numerical");case".":case"0":case"I":case"N":return void(z="numerical");case'"':case"'":return q=J,uu(),j="",void(z="string")}if(void 0===J||!H.JudgeUtil.isDigitWithoutZero(J))throw Eu(x.Char,uu());z="numerical"},numerical(){switch(J){case".":return j=uu(),void(z="decimalPointLeading");case"0":return j=uu(),void(z="zero");case"I":return uu(),tu("nfinity"),eu("numeric",Z*(1/0));case"N":return uu(),tu("aN"),eu("numeric",NaN)}if(void 0!==J&&H.JudgeUtil.isDigitWithoutZero(J))return j=uu(),void(z="decimalInteger");throw Eu(x.Char,uu())},zero(){switch(J){case".":case"e":case"E":return void(z="decimal");case"x":case"X":return j+=uu(),void(z="hexadecimal")}return eu("numeric",0)},decimalInteger(){switch(J){case".":case"e":case"E":return void(z="decimal")}if(!H.JudgeUtil.isDigit(J))return eu("numeric",Z*Number(j));j+=uu()},decimal(){switch(J){case".":j+=uu(),z="decimalFraction";break;case"e":case"E":j+=uu(),z="decimalExponent"}},decimalPointLeading(){if(H.JudgeUtil.isDigit(J))return j+=uu(),void(z="decimalFraction");throw Eu(x.Char,uu())},decimalFraction(){switch(J){case"e":case"E":return j+=uu(),void(z="decimalExponent")}if(!H.JudgeUtil.isDigit(J))return eu("numeric",Z*Number(j));j+=uu()},decimalExponent(){switch(J){case"+":case"-":return j+=uu(),void(z="decimalExponentSign")}if(H.JudgeUtil.isDigit(J))return j+=uu(),void(z="decimalExponentInteger");throw Eu(x.Char,uu())},decimalExponentSign(){if(H.JudgeUtil.isDigit(J))return j+=uu(),void(z="decimalExponentInteger");throw Eu(x.Char,uu())},decimalExponentInteger(){if(!H.JudgeUtil.isDigit(J))return eu("numeric",Z*Number(j));j+=uu()},hexadecimal(){if(H.JudgeUtil.isHexDigit(J))return j+=uu(),void(z="hexadecimalInteger");throw Eu(x.Char,uu())},hexadecimalInteger(){if(!H.JudgeUtil.isHexDigit(J))return eu("numeric",Z*Number(j));j+=uu()},identifierNameStartEscape(){if("u"!==J)throw Eu(x.Char,uu());uu();const u=ru();switch(u){case"$":case"_":break;default:if(!H.JudgeUtil.isIdStartChar(u))throw Eu(x.Identifier)}j+=u,z="identifierName"},identifierName(){switch(J){case"$":case"_":case"‌":case"‍":return void(j+=uu());case"\\":return uu(),void(z="identifierNameEscape")}if(!H.JudgeUtil.isIdContinueChar(J))return eu("identifier",j);j+=uu()},identifierNameEscape(){if("u"!==J)throw Eu(x.Char,uu());uu();const u=ru();switch(u){case"$":case"_":case"‌":case"‍":break;default:if(!H.JudgeUtil.isIdContinueChar(u))throw Eu(x.Identifier)}j+=u,z="identifierName"},string(){switch(J){case"\\":return uu(),void(j+=function(){const u=Y(),D=function(){switch(Y()){case"b":return uu(),"\b";case"f":return uu(),"\f";case"n":return uu(),"\n";case"r":return uu(),"\r";case"t":return uu(),"\t";case"v":return uu(),"\v"}return}();if(D)return D;switch(u){case"0":if(uu(),H.JudgeUtil.isDigit(Y()))throw Eu(x.Char,uu());return"\0";case"x":return uu(),function(){let u="",D=Y();if(!H.JudgeUtil.isHexDigit(D))throw Eu(x.Char,uu());if(u+=uu(),D=Y(),!H.JudgeUtil.isHexDigit(D))throw Eu(x.Char,uu());return u+=uu(),String.fromCodePoint(parseInt(u,16))}();case"u":return uu(),ru();case"\n":case"\u2028":case"\u2029":return uu(),"";case"\r":return uu(),"\n"===Y()&&uu(),""}if(void 0===u||H.JudgeUtil.isDigitWithoutZero(u))throw Eu(x.Char,uu());return uu()}());case'"':case"'":if(J===q){const u=eu("string",j);return uu(),u}return void(j+=uu());case"\n":case"\r":case void 0:throw Eu(x.Char,uu());case"\u2028":case"\u2029":!function(u){console.warn(`JSON5: '${Fu(u)}' in strings is not valid ECMAScript; consider escaping.`)}(J)}j+=uu()}};function eu(u,D){return{type:u,value:D,line:$,column:k}}function tu(u){for(const D of u){if(Y()!==D)throw Eu(x.Char,uu());uu()}}function ru(){let u="",D=4;for(;D-- >0;){const D=Y();if(!H.JudgeUtil.isHexDigit(D))throw Eu(x.Char,uu());u+=uu()}return String.fromCodePoint(parseInt(u,16))}const nu={start(){if("eof"===M.type)throw Eu(x.EOF);iu()},beforePropertyName(){switch(M.type){case"identifier":case"string":return V=M.value,void(W="afterPropertyName");case"punctuator":return void Cu();case"eof":throw Eu(x.EOF)}},afterPropertyName(){if("eof"===M.type)throw Eu(x.EOF);W="beforePropertyValue"},beforePropertyValue(){if("eof"===M.type)throw Eu(x.EOF);iu()},afterPropertyValue(){if("eof"===M.type)throw Eu(x.EOF);switch(M.value){case",":return void(W="beforePropertyName");case"}":Cu()}},beforeArrayValue(){if("eof"===M.type)throw Eu(x.EOF);"punctuator"!==M.type||"]"!==M.value?iu():Cu()},afterArrayValue(){if("eof"===M.type)throw Eu(x.EOF);switch(M.value){case",":return void(W="beforeArrayValue");case"]":Cu()}},end(){}};function iu(){const u=function(){let u;switch(M.type){case"punctuator":switch(M.value){case"{":u={};break;case"[":u=[]}break;case"null":case"boolean":case"numeric":case"string":u=M.value}return u}();if(K&&"object"==typeof u&&(u._line=$,u._column=k),void 0===G)G=u;else{const D=U[U.length-1];Array.isArray(D)?K&&"object"!=typeof u?D.push({value:u,_line:$,_column:k}):D.push(u):D[V]=K&&"object"!=typeof u?{value:u,_line:$,_column:k}:u}!function(u){if(u&&"object"==typeof u)U.push(u),W=Array.isArray(u)?"beforeArrayValue":"beforePropertyName";else{const u=U[U.length-1];W=u?Array.isArray(u)?"afterArrayValue":"afterPropertyValue":"end"}}(u)}function Cu(){U.pop();const u=U[U.length-1];W=u?Array.isArray(u)?"afterArrayValue":"afterPropertyValue":"end"}function Fu(u){const D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u])return D[u];if(u<" "){const D=u.charCodeAt(0).toString(16);return`\\x${`00${D}`.substring(D.length)}`}return u}function Eu(u,D){let e="";switch(u){case x.Char:e=void 0===D?`JSON5: invalid end of input at ${$}:${k}`:`JSON5: invalid character '${Fu(D)}' at ${$}:${k}`;break;case x.EOF:e=`JSON5: invalid end of input at ${$}:${k}`;break;case x.Identifier:k-=5,e=`JSON5: invalid identifier character at ${$}:${k}`}const t=new Au(e);return t.lineNumber=$,t.columnNumber=k,t}class Au extends SyntaxError{}var ou={},au=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),cu=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),su=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&au(D,u,e);return cu(D,u),D},lu=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(ou,"__esModule",{value:!0}),ou.isFileExists=ou.offlinePluginConversion=ou.executeCommand=ou.getNpmPath=ou.hasNpmPackInPaths=void 0;const Bu=r,du=lu(e),fu=su(u),_u=i,pu=l;ou.hasNpmPackInPaths=function(u,D){try{return require.resolve(u,{paths:[...D]}),!0}catch(u){return!1}},ou.getNpmPath=function(){const u=process.execPath;return fu.join(fu.dirname(u),_u.NPM_TOOL)},ou.executeCommand=function(u,D,e){0!==(0,Bu.spawnSync)(u,D,e).status&&(0,pu.logErrorAndExit)(`Error: ${u} ${D} execute failed.See above for details.`)},ou.offlinePluginConversion=function(u,D){return D.startsWith("file:")||D.endsWith(".tgz")?fu.resolve(u,_u.HVIGOR,D.replace("file:","")):D},ou.isFileExists=function(u){return du.default.existsSync(u)&&du.default.statSync(u).isFile()};var Ou=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),hu=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),Pu=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&Ou(D,u,e);return hu(D,u),D},vu=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(P,"__esModule",{value:!0});var gu=P.initProjectWorkSpace=void 0;const mu=Pu(e),Ru=vu(D),yu=Pu(u),Iu=v,Nu=i,bu=g,Su=l,wu=ou;let Hu,xu,Mu;function Tu(u,D,e){return void 0!==e.dependencies&&(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,D.dependencies[u])===yu.normalize(e.dependencies[u])}function Vu(){const u=yu.join(Mu,Nu.WORK_SPACE);if((0,Su.logInfoPrintConsole)("Hvigor cleaning..."),!mu.existsSync(u))return;const D=mu.readdirSync(u);if(!D||0===D.length)return;const e=yu.resolve(Mu,"node_modules","@ohos","hvigor","bin","hvigor.js");mu.existsSync(e)&&(0,wu.executeCommand)(process.argv[0],[e,"--stop-daemon"],{});try{D.forEach((D=>{mu.rmSync(yu.resolve(u,D),{recursive:!0})}))}catch(D){(0,Su.logErrorAndExit)(`The hvigor build tool cannot be installed. Please manually clear the workspace directory and synchronize the project again.\n\n Workspace Path: ${u}.`)}}gu=P.initProjectWorkSpace=function(){if(Hu=function(){const u=yu.resolve(Nu.HVIGOR_PROJECT_WRAPPER_HOME,Nu.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME);mu.existsSync(u)||(0,Su.logErrorAndExit)(`Error: Hvigor config file ${u} does not exist.`);return(0,bu.parseJsonFile)(u)}(),Mu=function(u){let D;D=function(u){let D=u.hvigorVersion;if(D.startsWith("file:")||D.endsWith(".tgz"))return!1;const e=u.dependencies,t=Object.getOwnPropertyNames(e);for(const u of t){const D=e[u];if(D.startsWith("file:")||D.endsWith(".tgz"))return!1}if(1===t.length&&"@ohos/hvigor-ohos-plugin"===t[0])return D>"2.5.0";return!1}(u)?function(u){let D=`${Nu.HVIGOR_ENGINE_PACKAGE_NAME}@${u.hvigorVersion}`;const e=u.dependencies;if(e){Object.getOwnPropertyNames(e).sort().forEach((u=>{D+=`,${u}@${e[u]}`}))}return(0,Iu.hash)(D)}(u):(0,Iu.hash)(process.cwd());return yu.resolve(Ru.default.homedir(),".hvigor","project_caches",D)}(Hu),xu=function(){const u=yu.resolve(Mu,Nu.WORK_SPACE,Nu.DEFAULT_PACKAGE_JSON);return mu.existsSync(u)?(0,bu.parseJsonFile)(u):{dependencies:{}}}(),!(0,wu.hasNpmPackInPaths)(Nu.HVIGOR_ENGINE_PACKAGE_NAME,[yu.join(Mu,Nu.WORK_SPACE)])||(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,Hu.hvigorVersion)!==xu.dependencies[Nu.HVIGOR_ENGINE_PACKAGE_NAME]||!function(){function u(u){const D=null==u?void 0:u.dependencies;return void 0===D?0:Object.getOwnPropertyNames(D).length}const D=u(Hu),e=u(xu);if(D+1!==e)return!1;for(const u in null==Hu?void 0:Hu.dependencies)if(!(0,wu.hasNpmPackInPaths)(u,[yu.join(Mu,Nu.WORK_SPACE)])||!Tu(u,Hu,xu))return!1;return!0}()){Vu();try{!function(){(0,Su.logInfoPrintConsole)("Hvigor installing...");for(const u in Hu.dependencies)Hu.dependencies[u]&&(Hu.dependencies[u]=(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,Hu.dependencies[u]));const u={dependencies:{...Hu.dependencies}};u.dependencies[Nu.HVIGOR_ENGINE_PACKAGE_NAME]=(0,wu.offlinePluginConversion)(Nu.HVIGOR_PROJECT_ROOT_DIR,Hu.hvigorVersion);const D=yu.join(Mu,Nu.WORK_SPACE);try{mu.mkdirSync(D,{recursive:!0});const e=yu.resolve(D,Nu.DEFAULT_PACKAGE_JSON);mu.writeFileSync(e,JSON.stringify(u))}catch(u){(0,Su.logErrorAndExit)(u)}(function(){const u=["config","set","store-dir",Nu.HVIGOR_PNPM_STORE_PATH],D={cwd:yu.join(Mu,Nu.WORK_SPACE),stdio:["inherit","inherit","inherit"]};(0,wu.executeCommand)(Nu.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,u,D)})(),function(){const u=["install"],D={cwd:yu.join(Mu,Nu.WORK_SPACE),stdio:["inherit","inherit","inherit"]};(0,wu.executeCommand)(Nu.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH,u,D)}(),(0,Su.logInfoPrintConsole)("Hvigor install success.")}()}catch(u){Vu()}}return Mu};var Gu={};!function(t){var C=n&&n.__createBinding||(Object.create?function(u,D,e,t){void 0===t&&(t=e);var r=Object.getOwnPropertyDescriptor(D,e);r&&!("get"in r?!D.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return D[e]}}),Object.defineProperty(u,t,r)}:function(u,D,e,t){void 0===t&&(t=e),u[t]=D[e]}),F=n&&n.__setModuleDefault||(Object.create?function(u,D){Object.defineProperty(u,"default",{enumerable:!0,value:D})}:function(u,D){u.default=D}),E=n&&n.__importStar||function(u){if(u&&u.__esModule)return u;var D={};if(null!=u)for(var e in u)"default"!==e&&Object.prototype.hasOwnProperty.call(u,e)&&C(D,u,e);return F(D,u),D},A=n&&n.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.executeInstallPnpm=t.isPnpmInstalled=t.environmentHandler=t.checkNpmConifg=t.PNPM_VERSION=void 0;const o=r,a=E(e),c=A(D),s=E(u),B=i,d=l,f=ou;t.PNPM_VERSION="7.30.0",t.checkNpmConifg=function(){const u=s.resolve(B.HVIGOR_PROJECT_ROOT_DIR,".npmrc"),D=s.resolve(c.default.homedir(),".npmrc");if((0,f.isFileExists)(u)||(0,f.isFileExists)(D))return;const e=(0,f.getNpmPath)(),t=(0,o.spawnSync)(e,["config","get","prefix"],{cwd:B.HVIGOR_PROJECT_ROOT_DIR});if(0!==t.status||!t.stdout)return void(0,d.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.");const r=s.resolve(`${t.stdout}`.replace(/[\r\n]/gi,""),".npmrc");(0,f.isFileExists)(r)||(0,d.logErrorAndExit)("Error: The hvigor depends on the npmrc file. Configure the npmrc file first.")},t.environmentHandler=function(){process.env["npm_config_update-notifier"]="false"},t.isPnpmInstalled=function(){return!!a.existsSync(B.HVIGOR_WRAPPER_PNPM_SCRIPT_PATH)&&(0,f.hasNpmPackInPaths)("pnpm",[B.HVIGOR_WRAPPER_TOOLS_HOME])},t.executeInstallPnpm=function(){(0,d.logInfoPrintConsole)(`Installing pnpm@${t.PNPM_VERSION}...`);const u=(0,f.getNpmPath)();!function(){const u=s.resolve(B.HVIGOR_WRAPPER_TOOLS_HOME,B.DEFAULT_PACKAGE_JSON);try{a.existsSync(B.HVIGOR_WRAPPER_TOOLS_HOME)||a.mkdirSync(B.HVIGOR_WRAPPER_TOOLS_HOME,{recursive:!0});const D={dependencies:{}};D.dependencies[B.PNPM]=t.PNPM_VERSION,a.writeFileSync(u,JSON.stringify(D))}catch(D){(0,d.logErrorAndExit)(`Error: EPERM: operation not permitted,create ${u} failed.`)}}(),(0,f.executeCommand)(u,["install","pnpm"],{cwd:B.HVIGOR_WRAPPER_TOOLS_HOME,stdio:["inherit","inherit","inherit"],env:process.env}),(0,d.logInfoPrintConsole)("Pnpm install success.")}}(Gu),function(){Gu.checkNpmConifg(),Gu.environmentHandler(),Gu.isPnpmInstalled()||Gu.executeInstallPnpm();const D=gu();_(u.join(D,i.WORK_SPACE))}(); \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/oh-package-lock.json5 b/function/ui_compare_rh/uicompare/oh-package-lock.json5 new file mode 100644 index 0000000000000000000000000000000000000000..1faa6b99d48e66baa345e65d2fa943a546f91182 --- /dev/null +++ b/function/ui_compare_rh/uicompare/oh-package-lock.json5 @@ -0,0 +1,15 @@ +{ + "lockfileVersion": 2, + "ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.", + "specifiers": { + "@ohos/hypium@1.0.6": "@ohos/hypium@1.0.6" + }, + "packages": { + "@ohos/hypium@1.0.6": { + "resolved": "https://repo.harmonyos.com/ohpm/@ohos/hypium/-/hypium-1.0.6.tgz", + "integrity": "sha512-bb3DWeWhYrFqj9mPFV3yZQpkm36kbcK+YYaeY9g292QKSjOdmhEIQR2ULPvyMsgSR4usOBf5nnYrDmaCCXirgQ==", + "registryType": "ohpm", + "shasum": "3f5fed65372633233264b3447705b0831dfe7ea1" + } + } +} \ No newline at end of file diff --git a/function/ui_compare_rh/uicompare/oh-package.json5 b/function/ui_compare_rh/uicompare/oh-package.json5 index e9c1666457f6b9c0b559b1e7098db3085e4a5d9d..1eb49e9badaa866f398be56fbb296951fd992468 100644 --- a/function/ui_compare_rh/uicompare/oh-package.json5 +++ b/function/ui_compare_rh/uicompare/oh-package.json5 @@ -1,13 +1,13 @@ { - "modelVersion": "5.0.0", - "license": "", - "devDependencies": { - "@ohos/hypium": "1.0.16" + modelVersion: "5.0.0", + license: "", + devDependencies: { + "@ohos/hypium": "1.0.16", }, - "author": "", - "name": "uicompare", - "description": "Please describe the basic information.", - "main": "", - "version": "1.0.0", - "dependencies": {} -} \ No newline at end of file + author: "", + name: "uicompare", + description: "Please describe the basic information.", + main: "", + version: "1.0.0", + dependencies: {}, +} diff --git a/function/ui_compare_rh/uicompare_tools/excel/Text.xlsx b/function/ui_compare_rh/uicompare_tools/excel/Text.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..d216d449e61cc703744038a6f427c7e08a3d9cbd Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/Text.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIAttributesStateStylesInterfaceEditableTextThree.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIAttributesStateStylesInterfaceEditableTextThree.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..41d8979ad260d5d492763b03eb5a3797085a3eae Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIAttributesStateStylesInterfaceEditableTextThree.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeImageTest.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeImageTest.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..03b4407b5e9ec4abae19567cbcdf115b034c7212 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeImageTest.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeStringModifyingStyle.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeStringModifyingStyle.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..0c21ea585410902fbd25e395987b61eaa6d434ac Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeStringModifyingStyle.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeStringModifyingStyleText.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeStringModifyingStyleText.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..650f79029c43a34c931b4978b12d31fa1e15916b Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentAttributeStringModifyingStyleText.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentCreateColor.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentCreateColor.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..cb981f49adcd3cece8abab975b76d2d85f584513 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentCreateColor.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentScrollSwiperInterfacemix.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentScrollSwiperInterfacemix.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7668f484cf1a4b0b423cb8ddf50f4f64ecfbcdb4 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentScrollSwiperInterfacemix.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextCommonCustomDrawingSpan.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextCommonCustomDrawingSpan.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..ae81c4990231e0d312529cbc3cf342ad247c69fc Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextCommonCustomDrawingSpan.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextCommonItscaAttributeUpdater.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextCommonItscaAttributeUpdater.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..1f76129145fec632e383798e6094d1b8eab1c7fc Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextCommonItscaAttributeUpdater.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextImagePrivacySensitive.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextImagePrivacySensitive.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..5854a83b4a906eca0b8649976678186b31831fbc Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextImagePrivacySensitive.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextInput0010.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextInput0010.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a205837530f93462f07734027b184b548dbc6b4a Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextInput0010.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaActionTest.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaActionTest.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..fbc917dee54ad1a09b8785c7ed2b3a33ff6f4e8d Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaActionTest.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaEnterkeyTypeTest.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaEnterkeyTypeTest.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a28819f4c320388a3672ec87971809e3b19b89a8 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaEnterkeyTypeTest.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaEvaSaveInputMethodTest.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaEvaSaveInputMethodTest.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..2d818c28d0483533aceab254426191349ef79487 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaEvaSaveInputMethodTest.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaInterActiveTest.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaInterActiveTest.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..a63e1eaaaf5e1afb4c9076d3f5b8426480217ee6 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaInterActiveTest.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaInterfaceTest.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaInterfaceTest.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4dfbc6dc10f5b756da6554dbec6719f340cfaafb Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaInterfaceTest.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaLayoutTest.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaLayoutTest.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..b47e6711bfd5fe43001f65e5ba5015a42549ee42 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextAreaLayoutTest.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextEditable.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextEditable.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..4bcdceb22ac56e7a62ace63d8ac442f42163198b Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextEditable.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextGestureStyle.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextGestureStyle.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..525acaf206dabc1c63685724f4c6e55a95f2242b Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextGestureStyle.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextImageSpanAlt.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextImageSpanAlt.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..5b423bfcbb36c9ed394988d5ffefab2d33853d2d Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextImageSpanAlt.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextInterface.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextInterface.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..7514e7f5802ca89a9ee4cee7bec3a0edfc47e185 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextInterface.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextLongPress.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextLongPress.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..268367a36f0a1a39dd9b81f08f9502fba45e6957 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextLongPress.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextMarquee.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextMarquee.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3cd082ef9192af11b5b39be787e3fefa1b076b8c Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextMarquee.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextPrivacyMask.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextPrivacyMask.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..97f549529a37a4af41b355e4bb8133c5982d9594 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextPrivacyMask.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextStringParagraphStyle.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextStringParagraphStyle.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..f35b7e4726c558934cffb77b67be2a9fdda88868 Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentTextTextStringParagraphStyle.xlsx differ diff --git a/function/ui_compare_rh/uicompare_tools/excel/UIComponentUISupportColor.xlsx b/function/ui_compare_rh/uicompare_tools/excel/UIComponentUISupportColor.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..462b1a49eb750c9053d54efbbd3d34a38545795e Binary files /dev/null and b/function/ui_compare_rh/uicompare_tools/excel/UIComponentUISupportColor.xlsx differ